and it should keep searching until script is toggeled off but i dont have that part yet... can someone guide me in the right direction or fix the script?
Its for a game fishing automation and the hook should be on the colored bar when sending space so i took a snip of it but the hook is moving pretty fast and maybe it doesnt react fast enought?
code:
Code: Select all
image = img.png
If !FileExist(image)
MsgBox, 48, Error, File not found.`n`n%image%
F3::
CoordMode, Pixel
ImageSearch, x, y, 0, 0, A_ScreenWidth, A_ScreenHeight, %image%
If ErrorLevel
Return
Else Send, {space}
Return
[Mod edit: Added [code][/code] tags. Please use them yourself when posting code!]