Code: Select all
#InputLevel 0
*a::
SetKeyDelay -1 ; If the destination key is a mouse button, SetMouseDelay is used instead.
Send {Blind}{b DownR} ; DownR is like Down except that other Send commands in the script won't assume "b" should stay down during their Send.
return
*a up::
SetKeyDelay -1 ; See note below for why press-duration is not specified with either of these SetKeyDelays.
Send {Blind}{b up}
return
• "The input level of a hotkey or non-auto-replace hotstring is also used as the default send level for any keystrokes or button clicks generated by that hotkey or hotstring." and
• "For any event generated by a script to trigger a hook hotkey or hotstring, the send level of the event must be higher than the input level of the hotkey or hotstring."
However, the remapping a::a works too (I'm not actually using that, rather the two hotkeys above with some conditional stuff added). However, when you change the #InputLevel, it doesn't output anything anymore. Even though Key History shows the same regardless of of the level:
Code: Select all
41 01E h d 5.00 a
41 01E i d 0.00 a
41 01E h u 0.05 a
41 01E i u 0.00 a
Code: Select all
InputLevel 1 ;0 works, 1 doesn't
*a::
SetKeyDelay -1 ; If the destination key is a mouse button, SetMouseDelay is used instead.
Send {Blind}{a DownR} ; DownR is like Down except that other Send commands in the script won't assume "b" should stay down during their Send.
return
*a up::
SetKeyDelay -1 ; See note below for why press-duration is not specified with either of these SetKeyDelays.
Send {Blind}{a up}
return