I am trying to do the script for the following remap:
I press space, autohotkey sends it to quick succession of Ctrl + Shift + w + x,
and if I hold space it holds w+x.
Just to illustrate:
Space ----> Ctrl, Shift, w, x
If I hold Space it continues to hold w and x only, releasing Shift and Ctrl.
My attempt:
Code: Select all
Space::
Send, {Ctrl down}{Shift down}{w down}
sleep 10
Send,{x down}
KeyWait, Space
Send, {Ctrl up}{Shift up}{w up}{x up}
return
[Mod edit: Moved topic from AHK v2 help since this is v1 code.]