A
A
Anton2018-12-20 00:00:34
autohotkey
Anton, 2018-12-20 00:00:34

How to interrupt script execution by pressing shift?

Hello.
I made this script:

#NoEnv
#Warn
#IfWinActive, Path of Exile
SetTitleMatchMode, 3
waitTime    := 10
return
~*RButton::
    while GetKeyState("RButton", "P")
        if (A_TimeSinceThisHotkey > waitTime){
send {SC012}
sleep, 200
send {SC012}
sleep, 200
send {SC012}
sleep, 420
send {SC012}
        }
return

When the RMB is pressed for more than 10ms, a series of pressing the E key starts to work (200 200 420ms). How to disable script execution when LShift is pressed?
Tried to do through labels - does not work. Help =)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
hazestalker, 2018-12-30
@hazestalker

Pre: via thread

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question