all i want inside this loop, if not found up to 2 seconds, return. Is that even possible?
Code: Select all
Loop
{
CoordMode, Pixel, Window
ImageSearch, FoundX, FoundY, 165, 390, 361, 488, C:\Users\Profile\AppData\Roaming\Pvp\Images\Weapon1.png
Sleep, 5
}
Until ErrorLevel = 0
If ErrorLevel = 0
SendRaw,
(LTrim
%f3%
)
sleep, 30
[Mod edit: Added [code][/code] tags. Please use them yourself when posting code.]