Mouse & Keyboard
On this page
Simulates a keyboard button press. Might not work in games that have anti-cheat protection.
Box Name | Type | Description |
---|---|---|
Button | Dropdown | Button to press |
Ctrl/Alt/Shift | Checkbox | Whether you want to add any modifiers, i.e. press Ctrl + K |
Hold Duration | Number | For how long to hold the button |
Checks if a specific button is currently pressed.
Box Name | Type | Description |
---|---|---|
Variable | String | Variable to save the result into. 0 = not pressed, 1 = pressed |
Pauses a button execution and waits until a specific button is pressed/unpressed to continue with the rest of the commands.
Box Name | Type | Description |
---|---|---|
Button | Dropdown | Which button to wait for |
Press | Checkbox | Checked = wait until the button is pressed, Unchecked = wait until the button is not pressed |
Timeout | Number | How long to wait until resuming normal command flow |
Simulates a mouse click. Might not work in games that have anti-cheat protection.
Box Name | Type | Description |
---|---|---|
Mouse Button | Dropdown | Which mouse button to click |
Duration | Number | Duration of the click |
Changes the position of your mouse according to your screen.
You can retrieve your current mouse coordinates by using permanent global variables:
global.mouse_x
for mouse X positionglobal.mouse_y
for mouse Y position
Box Name | Type | Description |
---|---|---|
Screen X position | New X position for your mouse | |
Screen Y position | New Y position for your mouse |