I think i have simple question but i can't find the answer yet.
This is the script:
Code: Select all
Numpad4::
Click, 131, 190
Sleep 400
Click, 222, 832
Sleep 200
Click, 1429, 1015
var := WaitPixelColor(0xE1FE7F,806,291,1000)
If ( var = 0 )
Click, 1671, 741
Sleep 100
Click, 1044, 666
return
Numpad5::
Click, 131, 190
Sleep 400
Click, 986, 830
Sleep 200
Click, 1429, 1015
var := WaitPixelColor(0xE1FE7F,806,291,1000)
If ( var = 0 )
Click, 1671, 741
Sleep 100
Click, 1044, 666
return
I just want to know if it's possible to abort the current running action when i press a new hotkey.
For example:
1. I press Numpad4
2. The function performs a few clicks and than waits for 1 second if a certain pixelcolor appears at XY
3. I don't want to wait the full 1 second and want to perform Numpad5
Is that possible?