JoyAxes: The number of axes supported by the joystick. JoyButtons: The number of buttons supported by the joystick (not always accurate). JoyName: The name of the joystick or its driver. JoyU and JoyV: The 5th and 6th axes of the joystick. JoyR: The rudder or 4th axis of the joystick. JoyX, JoyY, and JoyZ: The X (horizontal), Y (vertical), and Z (altitude/depth) axes of the joystick. Also note that the pressing of joystick buttons always "passes through" to the active window if that window is designed to detect the pressing of joystick buttons.Īlthough the following Joystick control names cannot be used as hotkeys, they can be used with GetKeyState: Note that hotkey prefix symbols such as ^ (control) and + (shift) are not supported (though GetKeyState can be used as a substitute). To help determine the button numbers for your joystick, use this test script. Joy1 through Jo圓2: The buttons of the joystick. For example, vk1Bsc001:: raises an error in v1.1.27+, but sc001 was ignored (had no effect) in previous versions. : The presence of an invalid suffix prevents VKnn from being recognized. Warning: Only Send, GetKeyName, GetKeyVK and GetKeySC support combining VKnn and SCnnn. NumpadHome but not Home).įor more information about the VKnn method, see Special Keys.
Known limitation: VK hotkeys that are forced to use the keyboard hook, such as *VK24 or ~VK24, will fire for only one of the keys, not both (e.g. For example, the following hotkey does not use the keyboard hook, but as a side-effect it is triggered by pressing either Home or NumpadHome: ^VK24::MsgBox You pressed Home or NumpadHome while holding down Control. This rarely-used method also prevents certain types of hotkeys from requiring the keyboard hook.
Specify for nn the hexadecimal virtual key code of a key. Recognizes unusual keys not mentioned above. Note that the sleep key on some keyboards might not work with this. This probably doesn't exist on most keyboards. Since this is synonymous with Pause, use ^CtrlBreak in hotkeys instead of ^Pause or ^Break. This is the key that invokes the right-click context menu.īreak key.
This table shows the default function of each key on most versions of Windows.
The function assigned to each of the keys listed below can be overridden by modifying the Windows registry. In addition, LControl & RAlt:: would make AltGr itself into a hotkey. Note: If your keyboard layout has AltGr instead of RAlt, you can probably use it as a hotkey prefix via ! as described here. As a hotkey ( Shift::) it fires upon release unless it has the tilde prefix.
As a hotkey ( Alt::) it fires upon release unless it has the tilde prefix. Corresponds to the ^ hotkey prefix.Īlt key. As a hotkey ( Control::) it fires upon release unless it has the tilde prefix. However, hotkeys with the # modifier can be triggered by either Win key.Ĭontrol key. Note: Unlike Control/Alt/Shift, there is no generic/neutral "Win" key because the OS does not support it. The 12 or more function keys at the top of most keyboards. If NumLock is OFF but Shift is pressed, the system temporarily releases Shift and acts as though NumLock is ON. General keys CapsLockĭue to system behavior, the following keys seperated by a slash are identified differently depending on whether NumLock is ON or OFF. : The letters a-z or A-Z can be used to refer to the corresponding virtual keycodes (usually vk41-vk5A) even if they are not included in the current keyboard layout. Additionally, some special characters may need to be escaped or enclosed in braces, depending on the context. For example: b is the "b" key and 5 is the "5" key.Īlthough any single character can be used as a key name, its meaning (scan code or virtual keycode) depends on the current keyboard layout.
Note: The names of the letter and number keys are the same as that single letter or digit. Regardless of the particular mouse, Send and Click can be used to scroll horizontally in programs which support it.
In some cases, software bundled with the mouse must instead be used to control this feature. These can be used as hotkeys with some (but not all) mice which have a second wheel or support tilting the wheel to either side. Typically performs the same function as Browser_Forward. Typically performs the same function as Browser_Back.ĥth mouse button. Previous page next page List of Keys, Mouse Buttons, and Joystick Controls Mouse General buttons LButtonĤth mouse button.