![]() ![]() If blank or omitted, the mode will default to that which retrieves the logical state of the key. This parameter is ignored when retrieving controller status. Known limitation: This function cannot differentiate between two keys which share the same virtual key code, such as Left and NumpadLeft. The virtual key code of such a key can be determined by following the steps at the bottom of the key list page. This is useful in the rare case where a key has no name. Examples: B, 5, LWin, RControl, Alt, Enter, Escape, LButton, MButton, Joy1.Īlternatively, an explicit virtual key code such as vkFF may be specified. This can be just about any single character from the keyboard or one of the key names from the key list, such as a mouse/controller button. KeyIsDown := GetKeyState(KeyName, Mode) Parameters KeyName Returns 1 (true) or 0 (false) depending on whether the specified keyboard key or mouse/controller button is down or up. The difference is that the function can be used in an expression and returns 1 (true) for down or 0 (false) for up, while the command stores D for down or U for up in a variable. Both check whether a keyboard key or mouse/controller button is down or up, and also retrieve controller status. GetKeyState can be used as a function or command, although the former is recommended for new scripts. GetKeyState - Syntax & Usage | AutoHotkey GetKeyState
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |