12-18-2005, 08:45 PM
Glad it works for you, however you should change it to a function if you plan to use it while running other macros. Open the macro, go to file, properties, and on the "None" tab change type to function. Here's a better version. It keeps the coordinates on the screen at the edges and stops the function if you go all the way to the bottom right corner.
str MouCoor
int mx my omx omy sy sx
sy=ScreenHeight
sx=ScreenWidth
rep
,mx=xm
,my=ym
,if(mx+100 > sx)
,,omx=mx-50
,else
,,omx=mx+20
,if(my+30 > sy)
,,omy=my-20
,else
,,omy=my+2
,if((xm=sx-1 && ym=sy-1 ))
,,end
,MouCoor.from("(" mx "," my ")")
,OnScreenDisplay(MouCoor 0.2 (omx) omy "" 7 )
,OnScreenDisplay(MouCoor 0.2 (omx+1) omy+1 "" 7 0x000001)
,0.15
Matt B