Help with image search and click

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
diegonleal
Posts: 1
Joined: 26 Jul 2018, 11:32

Help with image search and click

26 Jul 2018, 11:37

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%
egocarib
Posts: 100
Joined: 21 May 2015, 18:21

Re: Help with image search and click

26 Jul 2018, 12:49

There is a good chance you need to adjust CoordMode to make your script work.

Similar discussion in this thread.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: filipemb, Rohwedder and 313 guests