Command Reference - mharjac/bad_ducky GitHub Wiki
Special commands:
DELAY
It creates pause in script execution (value is in milliseconds).
Example:
DELAY 200
STRING
Prints alphanumeric and special characters.
Example:
STRING Hello World!
REM
Used just for commenting inside of a script.
Example:
REM Tested on Windows 10 x64
DEFAULT_DELAY or DEFAULTDELAY
It creates a pause after executing every command (in milliseconds) and it can be changed multiple time in a script.
Exmple:
DEFAULTDELAY 250
REPEAT
It repeats the previous command n times.
Example:
DOWN
REPEAT 5
Following commands can be repeated:
- GUI
- DELAY
- ENTER
- MENU
- DOWN, UP, LEFT, RIGHT
- BREAK
- CAPSLOCK
- DELETE
- END
- ESC
- HOME
- INSERT
- NUMLOCK, SCROLLLOCK
- PAGEUP, PAGEDOWN
- PRINTSCREEN
- SPACE
- TAB
- CTRL, ALT, SHIFT
- F1 to F12
Combo-key commands:
- GUI or WINDOWS
- CTRL or CONTROL
- ALT
- SHIFT
They can be used in a combination with:
- GUI
- ENTER
- MENU
- DOWN, UP, LEFT, RIGHT
- BREAK
- CAPSLOCK
- DELETE
- END
- ESC
- HOME
- INSERT
- NUMLOCK, SCROLLLOCK
- PAGEUP, PAGEDOWN
- PRINTSCREEN
- SPACE
- TAB
- CTRL, ALT, SHIFT
- F1 to F12
- all other characters
Example:
ALT F4
Keyboard commands:
They work just like a normal keystrokes.
- GUI
- ENTER
- MENU or APP
- DOWN or DOWNARROW
- UP or UPARROW
- LEFT or LEFTARROW
- RIGHT or RIGHTARROW
- BREAK or PAUSE
- CAPSLOCK
- DELETE
- END
- ESC or ESCAPE
- HOME
- INSERT
- NUMLOCK
- PAGEUP
- PAGEDOWN
- PRINTSCREEN
- SCROLLLOCK
- SPACE
- TAB
- F1, F2, F3...F12