Logo

💻 HID MODE

Quote Types

StyleExampleBest For
"double"writeLn "multi word text"Standard text/phrases
'single'writeLn 'another value'Alternative text quoting
`back`writeLn `special$chars` Code/commands with symbols

Keyboard Commands

Description: Prints the provided text as keyboard input.

Syntax:

write '<text>'

Example:

write 'Hello, World!'

Mouse Commands

Description: Moves the mouse cursor by a specified number of pixels.

Max X, Y Value: 127 to -128 (use 100 to -100 for Stable Movement)

Syntax:

mouseMove <x> <y>

Example:

mouseMove 50 -30

Miscellaneous Commands

Description: Pauses execution for a specified amount of milliseconds.

Syntax:

delay '<milliseconds>'

Example:

delay '1000'

Automation Commands

Description: Monitors a specific keyboard state (CapsLock, NumLock, or ScrollLock) and waits for it to change. The function will break out of the loop when the desired state change is detected.

Supported Keys:

  • capslock, numlock, scrolllock

Syntax:

stateChange <key>

Example:

stateChange 'capslock'

Mode Configuration Commands

Description: Enables Mass Storage Controller (MSC) mode, making the device appear as a USB storage device.

Parameters:

  • volumeName: The name that will appear for the storage device
  • productId: Manufacturer product ID string
  • vendorId: Manufacturer vendor ID string

Syntax:

storageMode '<volumeName>' '<productId>' '<vendorId>'

Example:

storageMode 'USB_DRIVE' '1234' 'ACME'

This command initializes MSC mode. Use attackMode MSC false to disable it.

Valid Command Usage

writeLn 'Welcome to HID Mode'
mouseMove 50 -30
keyboardLayout 'German'
ledColor 0 255 0

Invalid Command Usage

writeLn Welcome to HID Mode  # Missing quotes for multi-word argument
mouseMove 50 - 30            # Space between - and 30 makes invalid syntax
key 'escape'                 # 'escape' is not a valid key name (should be 'esc')

Always verify your command syntax. When in doubt, enclose arguments in quotes.

On this page