Hello all, If one of you good people know how to make a program randomly click different places it would be a great help to me. Sample script as a starting point is below. Thanks for any help or ideas you can give me.
Dialog>Dialog1
Caption=Stuff
Width=285
Height=116
Top=622
Left=-2
Button=Start,8,8,75,25,4
Button=Pause,8,48,75,25,3
EndDialog>Dialog1
Show>Dialog1
Label>ActionLoop
wait>.0005
GetDialogAction>Dialog1,r
if>r=4,Start
if>r=3,Pause
if>r=2,Exit
Goto>ActionLoop
Label>Start
ResetDialogAction>Dialog1
Label>Loop
wait>.0005
GetDialogAction>Dialog1,r
if>r=4,Start
if>r=3,Pause
if>r=2,Exit
//// when color appears jump to "randomclicks"
GetPixelColor>456,789,a
if>%a%=645465
Goto>randomclicks
endif
Goto>Loop
Label>randomclicks
//// randomly click 10 different places here
Goto>Loop
Label>Exit
Random Clicks
Moderators: Dorian (MJT support), JRL
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
How about this:
Modify x_max and y_max to suit your screen dimensions.
Code: Select all
//// randomly click 10 different places here
Let>x_max=1024
Let>y_max=728
Let>k=0
Repeat>k
Random>x_max,x
Random>y_max,y
MouseMove>x,y
LClick
Let>k=k+1
Until>k=10
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
-
- Junior Coder
- Posts: 24
- Joined: Mon Nov 01, 2004 1:30 pm