I wrote it like this:
Code: Select all
*t::
PixelSearch, Px, Py, 10, 175, 850, 450, 0x000000, 1, fast
If (ErrorLevel = 0) {
suspend, on
}
else if (ErrorLevel = 1) {
suspend, off
}
The hotkey suspends the script by itself, is it possible to stop that?