Code: Select all
#IfWinActive, Elder Scrolls Online
z::
sleep, 11000
SetTimer, CheckColor, 1000
CheckColor:
CoordMode, Pixel, Screen
PixelSearch, X, Y, 1263, 958, 1371, 965, 0xF0463B, 10
If ErrorLevel = 0
{
Send, {f}
sleep, 5000
Send, {f}
sleep, 100
PixelSearch, X, Y, 1093, 640, 1099, 644, 0x000000, 2
If ErrorLevel = 1
{
sleep, 1000
PixelSearch, X, Y, 1093, 640, 1099, 644, 0x000000, 2
If ErrorLevel = 1
{
MsgBox The Scrip now ends, you can now press z again to start the script again.
Exit
}
}
}
Return
How can I end the script here and do exactly what the message box claims? Using the Exit command does not work. The script is still searching for pixel colors...