Skip to content
Download

Command Mode

After you start Cursor Crane, it enters Command Mode by default. In this mode, you can hold Space to enter Mouse Control Mode if that setting is enabled, or trigger specific actions by entering command sequences.

If you want to type text, you can either enter Input Mode or exit Cursor Crane.

Press Control + Esc to exit Command Mode. To close the whole claw machine from Command Mode, press Shift + Control + Esc .

Command sequences are usually composed of letters and are case-sensitive. For example, if one command sequence is c c , entering c twice in a row will trigger it.

A command sequence cannot be the prefix of another command sequence, so once you finish a full sequence, its command will be triggered automatically.

Some commands accept a number before their command sequence. Type the number and the full sequence first, then select a target in the mode that opens. The number is not part of the target’s hint.

For example, if you assign f to command.moveCursorToElementAndLeftClick:

InputAction after selecting a target
fMove to the target and left-click once
2fMove to the target and double-click
3fMove to the target and click three times
0fMove the pointer to the target without clicking

f is an example custom assignment; use your configured sequence. Enter the number with the sequence in Command Mode, rather than after a standalone keyboard shortcut.

These commands accept a click count of up to 50. Without a number, single-click commands click once and double-click commands click twice. An explicit number replaces that default count.

CommandsSupported click actions
command.moveCursorToElementAndLeftClick, command.moveCursorToElementAndDoubleLeftClick, command.moveCursorToElementAndMiddleClick, command.moveCursorToElementAndRightClickLeft, double-left, middle, or right click after moving to an element
command.moveCursorToTextAndLeftClick, command.moveCursorToTextAndRightClickLeft or right click after moving to text
command.enterGridModeAndLeftClick, command.enterGridModeAndDoubleLeftClick, command.enterGridModeAndMiddleClick, command.enterGridModeAndRightClickLeft, double-left, middle, or right click at a selected grid location

A count of 0 skips clicking and only performs the pointer movement supported by the target. For targets that only support an Accessibility action without pointer movement, that action is also skipped.

Arrow-key commands trigger.up, trigger.down, trigger.left, and trigger.right also accept a repeat count, up to 50. For example, if you assign j to trigger.down, 5j sends five Down Arrow presses. You can keep typing while the repetitions run.

For trigger.scrollUp, trigger.scrollDown, trigger.scrollLeft, and trigger.scrollRight, the number sets the scroll distance in units of 50 pixels. For example, if you assign s to trigger.scrollDown, 3s scrolls down 150 pixels.

Interacting with the System and Foreground Apps

Section titled “Interacting with the System and Foreground Apps”

When holding Command , Control , or Option , letter input will not be captured as command sequences, but will be passed as part of a key combination to the system or foreground applications, so you can still use shortcuts like Command + C to copy text or Command + W to close a window.

At the same time, the system can still recognize other keys, such as arrow keys, Enter , Tab , etc., so you can continue using those keys to interact with foreground applications.

The Space key is a bit special. If you want to send a Space key event while staying in Command Mode, press \ .

Command identifiers use the command.* or trigger.* format. You can customize their command sequences or keyboard shortcuts in Settings.

CommandIdentifierAction
command.revertCursorLocationRevert cursor location
command.moveCursorToElementMove cursor to element
command.moveCursorToElementAndLeftClickMove cursor to element and left click
command.moveCursorToElementAndDoubleLeftClickMove cursor to element and double left click
command.moveCursorToElementAndMiddleClickMove cursor to element and middle click
command.moveCursorToElementAndRightClickMove cursor to element and right click
command.dragCursorToElementDrag from the current cursor position to an element
command.moveCursorToTextMove cursor to text
command.moveCursorToTextAndLeftClickMove cursor to text and left click
command.moveCursorToTextAndRightClickMove cursor to text and right click
command.dragCursorToTextDrag from the current cursor position to text
command.toggleDragToggle drag
command.enterGridModeAndLeftClickEnter Grid Mode and left click
command.enterGridModeAndDoubleLeftClickEnter Grid Mode and double left click
command.enterGridModeAndMiddleClickEnter Grid Mode and middle click
command.enterGridModeAndRightClickEnter Grid Mode and right click
command.enterGridModeAndMoveCursorEnter Grid Mode and move cursor
command.enterGridModeAndDragCursorEnter Grid Mode and drag from the current cursor position
command.moveAndFocusToWindowMove and focus to window
command.moveAndFocusToPreviousWindowMove and focus to previous window
command.enterMoveStageEnter Mouse Control Mode
command.enterTextModeEnter Input Mode
command.enterRawInputModeEnter Raw Input Mode
command.enterScrollModeEnter scroll mode
command.enterElementMenuModeForFocusedWindowEnter element menu for focused window
command.enterElementMenuModeForElementBelowCursorEnter element menu for element below cursor
command.createTextAreaPortalEdit focused text area in external editor
CommandIdentifierAction
trigger.upPress Up Arrow
trigger.downPress Down Arrow
trigger.leftPress Left Arrow
trigger.rightPress Right Arrow
trigger.leftClickLeft click
trigger.rightClickRight click
trigger.middleClickMiddle click
trigger.scrollDownScroll down
trigger.scrollUpScroll up
trigger.scrollLeftScroll left
trigger.scrollRightScroll right
trigger.scrollTopScroll to top
trigger.scrollBottomScroll to bottom
trigger.zoomInZoom in
trigger.zoomOutZoom out
trigger.rotateClockwiseRotate clockwise
trigger.rotateCounterClockwiseRotate counter-clockwise
trigger.smartZoomSmart zoom
trigger.forceClickForce click