For those that don't know how the minigame is:

you have to press SPACE so the red pointer get inside the orange area until the timer run out. So you gotta press SPACE several times and release it if the redbar is above.
Problem is: my code recognizes the orange bar (made a movemouse to see) and the redbar( same, and it updates the positions super fine), but it is not pressing SPACE at all.
Before i was doing the if's, it was only a
Code:
if (redbary = orangebary) { Controlsend, , {SPACE}, ahk_exe LOSTARK.exe }
Code:
f1:: ;minigame player loop, { ;search for orangebar Imagesearch, orangebarx, orangebary, 247, 301, 263, 515, *0 orangebarfishingminigame.bmp ;search for red bar Imagesearch, redbarx, redbary, 263, 301, 270, 515, *70 redbarfishingminigame.bmp ;if redbar is above the green region, just wait if (redbary < orangebary){ sleep, 50 } ; if the redbar is under the orange region, press space if (redbary > orangebary){ sleep, 50 ControlSend, , {SPACE}, ahk_exe LOSTARK.exe } } Exit