Hello everyone,
I need help with a script. There is it:
I need to search an image on screen and click on it than wait for 2 seconds and search another image and click on it.
i try this, but did'nt work
image_name1=1.png
image_name2=2.png
ImageSearch, A1X, A1Y, 0, 0, A_Screenwidth, A_Screenheight, *30 %image_name1% ;search for SAVE.png
MouseClick, Left, %A1X%, %A1Y%
sleep, 1000
ImageSearch, A2X, A2Y, 0, 0, A_Screenwidth, A_Screenheight, *30 %image_name2% ;search for SAVE.png
MouseClick, Left, %A2X%, %A2Y%
Help with image search and click
-
- Posts: 1
- Joined: 26 Jul 2018, 11:32
Re: Help with image search and click
There is a good chance you need to adjust CoordMode to make your script work.
Similar discussion in this thread.
Similar discussion in this thread.