Helgef wrote:Put the commands inside the hotkeyroutine. And, you have realise that after the #if expression has been evaluated, the execution is not continued on the line immediately beneath it, the execution will continue in the hotkey routine, if the #if expression evaluated to true. If it was false, the execution will continue where it was when the hotkey was pressed, or if there are other variants of the hotkey, it will continue there. Also, the line beneath the return isn't executed either.
you mean like this right?
Code: Select all
#IfWinActive, ahk_exe Explorer.EXE
CapsLock & d::
SetKeyDelay, 2000, 2000
KeyWait capslock
Send +{Delete}
return
Helgef wrote:Put the commands inside the hotkeyroutine
what douse hotkeyroutine means? you mean execution from a hotkey to another?
Helgef wrote:Also, the line beneath the return isn't executed either.
yeah that makes sense with what I previously read somewhere, but according to doc the next lines will execute with the default setkeydelay, right? (I don't have setkeydelay in my auto-execute) because the evilC said I should use it this way (his second comment in this thread), or I got him wrong, idk.