Posts: 1,006
Threads: 330
Joined: Mar 2007
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
Posts: 12,142
Threads: 143
Joined: Dec 2002
RECT r
r.left=200
r.top=200
r.right=400
r.bottom=400
;GetWindowRect win &r
atend ClipCursor 0
ClipCursor &r
10
Posts: 1,006
Threads: 330
Joined: Mar 2007
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
Posts: 12,142
Threads: 143
Joined: Dec 2002
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
...
Posts: 1,006
Threads: 330
Joined: Mar 2007