ControlSend works alone but next to imagesearch would not have any way to solve this?
Code: Select all
EX:
loop
{
ImageSearch, X, Y, A_ScreenWidth - 368, 0, A_ScreenWidth, A_ScreenHeight + 470, %image%
if ErrorLevel = 0
{
ControlSend, , {esc}, ahk_id %id%
sleep, 5000
}
}
return
[Mod edits: Removed excess white space and applied code tags to entire script instead of just one line.]