Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
coordinates
#6
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.

Code:
Copy      Help
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


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)