Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Any way to restrict Mouse movement to set of coordinates
#1
Hi,
I have a macro where images need to be clicked. I want the user to stay within a certain portion of the screen for this time.
Any way I can set up a region say 100 100 to 300 555
Thanks!

Stuart
#2
Code:
Copy      Help
RECT r
r.left=200
r.top=200
r.right=400
r.bottom=400
;GetWindowRect win &r

atend ClipCursor 0
ClipCursor &r
10
#3
rather than for a set period of time
I want the user to select on some various image icons within a specific part of the screen (th rectangle) but after each time they select the image, it is rearranged to another part of the screen) - since this requires breaking out of the rectangle, i need to temporarily turn it on and off.
Thanks!
Stuart
#4
You can turn on and off at any place. Atend is used to free cursor after unexpected end.

ClipCursor &r ;;on
wait 0 ML
ClipCursor 0 ;;off
...
#5
Thanks...!
Stuart


Forum Jump:


Users browsing this thread: 1 Guest(s)