Code: Select all
Hotkey("*a", "Off")
Hotkey("*a up", "Off")
Code: Select all
Hotkey("*b", (hk) => (SetKeyDelay(-1), Send("{Blind}{a DownR}")) )
Hotkey("*b up", (hk) => (SetKeyDelay(-1), Send("{Blind}{a Up}")) )
Code: Select all
*b::
{
SetKeyDelay -1
Send "{Blind}{a DownR}" ; DownR is like Down except that other Send functions in the script won't assume "b" should stay down during their Send.
}
*b up::
{
SetKeyDelay -1
Send "{Blind}{a Up}"
}
(But perhaps there's no natural way to do this. The 2nd parameter of Hotkey function can take a hotkey name, but that doesn't create a remapping. Perhaps an option for remapping can be added in the 3rd paramter (e.g. Hotkey("a","b","R") establishes a remapping of a to b), but it doesn't seem very satisfactory either ...)