hi i have no idea where to start or how to do this but basically what i would like todo is have a script where if a number pops up on the screen or webpage like if number 35 pops up click on it then wait like 15 seconds then wait for number to pop up
again and repeat i have looked it up and cant find other forums explaining how to autoclick certain part of screen when a number pops up or just click in general wherever that number pops up any help is appreciated
click part of screen when number pops up
Re: click part of screen when number pops up
Well I would think of it like this; you have a detection part, and an action part
Detecting the number probably accomplished by something like ImageSearch; lets do it in a loop so it tries over and over
Then what you wanna do is the action; Click in this case
put them together:
Detecting the number probably accomplished by something like ImageSearch; lets do it in a loop so it tries over and over
Code: Select all
while (true) {
ImageSearch, OutputVarX, OutputVarY, X1, Y1, X2, Y2, ImageFile
if (OutputVarX) {
; do something
}
}
Then what you wanna do is the action; Click in this case
Code: Select all
MouseClick, WhichButton, X, Y
put them together:
Code: Select all
while (true) {
ImageSearch, OutputVarX, OutputVarY, X1, Y1, X2, Y2, ImageFile
if (OutputVarX) {
MouseClick, WhichButton, X, Y
; wait 15 seconds
sleep, % 15 * 1000
}
}