Hi,
I'm trying to make the following script work:
Code: Select all
SendMode Input
#InputLevel 1
z::y
y::z
::szia::hi
The first line causes this to fail. The website suggests that SendMode Input is used for new scripts. Any suggestions are welcome.
Code: Select all
SendMode Input
#InputLevel 1
z::y
y::z
::szia::hi
@gregster andraaspar reported those bugs.SendInput is affected by SendLevel, but the script's own hook hotkeys cannot be activated while a SendInput is in progress, since it temporarily deactivates the hook. However, when Send or SendInput reverts to SendEvent, it is able to activate the script's own hotkeys.
Just don't use SendInput if you want to trigger hotkeys/hotstrings.... the presence of an external hook disables all of SendInput's advantages, making it inferior to both SendPlay and SendEvent.
Code: Select all
SendMode Input
#InputLevel 1
*z::
SetKeyDelay -1
SendEvent {Blind}{y DownR}
return
*z up::
SetKeyDelay -1
SendEvent {Blind}{y up}
return
*y::
SetKeyDelay -1
SendEvent {Blind}{z DownR}
return
*y up::
SetKeyDelay -1
SendEvent {Blind}{z up}
return
::szia::hi