but I didnt find success on making it work (search) with multiple (same) images (buttons).
I found some codes, that contain "loop" (or maybe required something else), but they didn't work for me.
Here's the code
Code: Select all
CoordMode, Pixel, Window
x::
ImageSearch,ix,iy,0, 0,a_screenWidth,a_screenHeight,%A_ScriptDir%\Test.png
MouseClick, left, ix, iy
I need something like:
ImageSearch,ix,iy,0, 0,a_screenWidth,a_screenHeight,%A_ScriptDir%\Test.png
MouseClick, left, ix, iy
ImageSearch,ix,iy,0, 0,a_screenWidth,a_screenHeight,%A_ScriptDir%\Test.png (should the same image file have another name to be found?).
If (next same) image exists, click it and search for next image.
If (next same) image doesn't exist, return.
Etc about 5 times.
What is correct way to loop it?