KEYBINDS¶
mouse¶
- This condition checks if a specified mouse button is currently held down. The game must be in the foreground and no keyboard element should be focused for this to return true.
Parameters¶
button: The mouse button name (e.g., "LBUTTON", "BUTTON4") or index (e.g., 1, 4).
Returns BOOL¶
-
trueif the specified mouse button is held down,falseotherwise.index name VirtualKeyCode String 1 LeftButton "LBUTTON", "BUTTON1" 2 RightButton "RBUTTON", "BUTTON2" 3 MiddleButton "MBUTTON", "BUTTON3" 4 Button4 "XBUTTON1", "BUTTON4" 5 Button5 "XBUTTON2", "BUTTON5"
Example:¶
keybind¶
keybind || keybind.down
- This condition checks if a specified keybind or combination of keybinds is currently pressed. All keys in the comma-separated list must be pressed for this to return true. The game must be in the foreground and no keyboard element should be focused.
Parameters¶
keys: A comma-separated string of keybinds to check (e.g., "SHIFT", "ALT-Q", "F3", "CONTROL,A").
Returns BOOL¶
-
trueif all specified keybinds are pressed,falseotherwise.Modifiers Description SHIFT, LSHIFT, RSHIFT Shift key (any, left, or right) CONTROL, LCONTROL, RCONTROL, CTRL, LCTRL, RCTRL Control key (any, left, or right) ALT, LALT, RALT Alt key (any, left, or right) Other keys can be specified by their names as defined in the
VirtualKeyCodestable (e.g., "A", "1", "F1", "SPACE", "RETURN", "TAB").
Example:¶
keybind.up¶
- This condition checks if a specified keybind or combination of keybinds was just released. It uses a short timer to detect the release event. The game must be in the foreground and no keyboard element should be focused.
Parameters¶
keys: A comma-separated string of keybinds to check for release (e.g., "SHIFT", "ALT-Q", "F3", "CONTROL,A").
Returns BOOL¶
-
trueif all specified keybinds were released within a short time frame,falseotherwise.Modifiers Description SHIFT, LSHIFT, RSHIFT Shift key (any, left, or right) CONTROL, LCONTROL, RCONTROL, CTRL, LCTRL, RCTRL Control key (any, left, or right) ALT, LALT, RALT Alt key (any, left, or right) Other keys can be specified by their names as defined in the
VirtualKeyCodestable (e.g., "A", "1", "F1", "SPACE", "RETURN", "TAB").