Modify the Red macro in your Color group by making sure that it executes
the script
ReturnValue "red|25|70"
Then, in your set font color macro, begin with
i=instr(Color_1,"|")
' find the position of the first "|" in Color_1
j=instr(i+1,Color_1,"|")
'find the first "|" after the one we already found
x = Mid$(Color_1, i , j-i-1)
'stuff between |'s is the x coordinate
y = Mid$(Color_1, j )
'stuff after the second | is the y coordinate
SetMousePosition 5, x, y
Another example of this trick is the [<Beginning or End> of <Object or
Selection>] macro in the DragonDictate vocabularies for Word and
WordPad.
Also, in general use better to write macros which use keyboard
equivalents than mouse coordinates, if there are keyboard equivalents
available. Keyboard equivalents are less likely to change depending on
your version of the program, or at what resolution you are running.
David Fox
davidfox@@fas.harvard.edu
http://cfa-www.harvard.edu/~dcfox/index.html
--------------------------------------------------
Well, well! It cannot be helped, and it is difficult not to slip in
talking to a dragon, or so I have always heard.
-- Balin, The Hobbit, J. R. R. Tolkien
![]() |