1. Find first image
2. Left click
3. Find a second image (this is where the problem is, the code does not continue after the first "Left click")
4. Left click
Code: Select all
^3::
ImageSearch,,,912, 31, 1326, 767, C:\Users\Kami\Desktop\script\homescreen.png
if ErrorLevel = 2homescreen.png
MsgBox error with finding homescreen.png
else if ErrorLevel = 1
Loop {
ImageSearch,,, 912, 31, 1326, 767, C:\Users\Kami\Desktop\script\homescreen.png
} Until ErrorLevel = 0
Click, 208, 610
ImageSearch,,, 912, 31, 1326, 767, C:\Users\Kami\Desktop\script\pickmode.png
if ErrorLevel = 2
MsgBox error with finding pickquest.png
else if ErrorLevel = 1
Loop {
ImageSearch,,, 912, 31, 1326, 767, C:\Users\Kami\Desktop\script\pickmode.png
} Until ErrorLevel = 0
Click 213, 363
Return
However, the script does not execute the second ImageSearch and the script just stops
Please help me, Thank You