Strings
Mantis has four ways to type text, each suited to a different situation:
| Command | Behavior |
|---|---|
STRING <text> | Types the text exactly as written. No newline afterward. |
STRINGLN <text> | Types the text, then presses Enter. |
FAST_STRING <text> (Pro) | Types text using batched HID key codes instead of the standard path — a Pro-tier feature for very high WPM injection. |
STRING_BLOCK … END_STRING | Types several source lines as one continuous line. |
STRING
The STRING command types out text exactly as written, but it does not press the ENTER key at the end. This is useful when you want to type part of a command and then wait, or append more text later.
string.mantis
1REM Set natural typing speed2SET_SPEED $Human34REM Type out a command without pressing enter5STRING notepad.exeSTRINGLN
The STRINGLN command types out text and automatically presses the ENTER key at the end.
Important: Do not manually add anENTERcommand after aSTRINGLN. It already presses Enter for you!
stringln.mantis
1REM Set natural typing speed2SET_SPEED $Human34REM Type out a command and execute it immediately5STRINGLN calc.exeFAST_STRING (Pro Feature)
FAST_STRING bypasses the standard typing delays to inject text at incredibly high speeds (high WPM).
Warning: Do not use FAST_STRING on slow systems, older operating systems, or inside BIOS/UEFI menus. The target system might drop keystrokes if it cannot keep up.
fast_string.mantis
1REM Set machine speed for max performance2SET_SPEED $Machine34REM Inject a payload instantly5FAST_STRING powershell.exe -windowstyle hidden -Command "echo 'Done'"STRING_BLOCK
STRING_BLOCK lets you write a very long string across multiple lines in your script so it is easy to read. When the script runs, it ignores the line breaks and types it all out as one single continuous line.
string_block.mantis
1REM Set natural typing speed2SET_SPEED $Human34REM Type a long continuous line without line breaks5STRING_BLOCK6This block spans three source lines7but types as one continuous line8with no Enter presses.9END_STRINGLast updated on