Hello all, I am fairly new and was wondering if someone can help me fix my script.
Overall, I want this entire script to loop, but I don't want it repeatedly inputting E until after it finds the pixel. After it finds the pixel and completes the ErrorLevel = 0, I want it to start from the top again with the Sleep/Send {E}. Hope that makes sense, the pixel is being found I just want it to restart from the very top.Quote:
CoordMode, Mouse, Screen
F11::
Loop
{
Sleep 6000
Send {E}
Loop
{
PixelSearch, FoundX, FoundY, 213, 235, 1569, 918, 0xeaba6f, 10, RGB Fast
if (ErrorLevel = 0){
Send {E}
Break
}
}
}
*ESC::ExitApp