I thought this would work, but it doesn't:
Code: Select all
; RightControl as AltGr
RCtrl::Send <^>!
Code: Select all
; RightControl as AltGr
RCtrl::Send <^>!
Code: Select all
RCtrl::
Send {LCtrl down}{RAlt down}
SoundBeep, 1500
Return
<^>!RCtrl Up::
Send {RAlt up}{LCtrl up}
SoundBeep, 1000
Return
2. Without a dedicated sending of "down", the key will be sent down and then up.The characters ^+!# represent the modifier keys Ctrl, Shift, Alt and Win. They affect only the very next key. To send the corresponding modifier key on its own, enclose the key name in braces. To just press (hold down) or release the key, follow the key name with the word "down" or "up" as shown below.
Code: Select all
RCtrl::RAlt
Code: Select all
RCtrl::RAlt
>^Esc::Send \
Custom Combinations
You can define a custom combination of two keys (except joystick buttons) by using " & " between them. In the below example, you would hold down Numpad0 then press the second key to trigger the hotkey:The prefix key loses its native function: In the above example, Numpad0 becomes a prefix key; but this also causes Numpad0 to lose its original/native function when it is pressed by itself.Code: Select all
Numpad0 & Numpad1::MsgBox You pressed Numpad1 while holding down Numpad0. Numpad0 & Numpad2::Run Notepad
...
Fire on release: The presence of one of the above custom combination hotkeys causes the release of Numpad0 to perform the indicated action, but only if you did not press any other keys while Numpad0 was being held down.
Users browsing this forum: No registered users and 106 guests