DuckyIDE supports a robust subset of the Ducky Script 1.0 language, optimized for Android HID injection.
Types a sequence of characters.
STRING Hello World!
STRING https://example.com
Pauses execution for a specific duration in milliseconds.
DELAY 500 REM Wait 0.5 seconds
DELAY 2000 REM Wait 2 seconds
Comments. Lines starting with REM are ignored.
REM This is a comment
Presses a single special key.
ENTERTABESCAPE/ESCBACKSPACESPACECAPSLOCKDELETEINSERTHOME/ENDPAGEUP/PAGEDOWNUP/DOWN/LEFT/RIGHT(Arrow keys)F1-F12PRINTSCREENSCROLLLOCKPAUSE/BREAKMENU/APP
You can combine modifiers with keys or other commands.
GUI/WINDOWS/COMMANDCTRL/CONTROLALTSHIFT
GUI r REM Press Windows+R
CTRL c REM Press Ctrl+C
ALT F4 REM Press Alt+F4
SHIFT a REM Types 'A' (Same as STRING A)
CTRL-ALT DELETE REM Standard Combo
ALT PRINTSCREEN r REM Multi-key: Alt + PrintScreen + r
CTRL-ALTCTRL-SHIFTALT-SHIFTCOMMAND-CTRLCOMMAND-CTRL-SHIFTCOMMAND-OPTION(Mac)COMMAND-OPTION-SHIFT(Mac)
Map a custom key name to a specific HID Modifier and Keycode (in Hex). Useful for mapping non-standard keys or international layouts manually.
Syntax: DEFINE [NAME] [MODIFIER_HEX] [KEY_HEX]
REM Define a custom key "MY_KEY"
REM Mod: 0x00 (None), Key: 0x04 ('a')
DEFINE MY_KEY 0x00 0x04
REM Use it
MY_KEY
REM Open Run Dialog
GUI r
DELAY 500
STRING notepad.exe
ENTER
DELAY 1000
STRING Hello from DuckyIDE!
GUI r
DELAY 500
STRING https://www.youtube.com/watch?v=dQw4w9WgXcQ
ENTER