Skip to contentSkip to Content

Strings

Mantis has four ways to type text, each suited to a different situation:

CommandBehavior
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_STRINGTypes 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 speed
2SET_SPEED $Human
3
4REM Type out a command without pressing enter
5STRING notepad.exe

STRINGLN

The STRINGLN command types out text and automatically presses the ENTER key at the end.

Important: Do not manually add an ENTER command after a STRINGLN. It already presses Enter for you!
stringln.mantis
1REM Set natural typing speed
2SET_SPEED $Human
3
4REM Type out a command and execute it immediately
5STRINGLN calc.exe

FAST_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 performance
2SET_SPEED $Machine
3
4REM Inject a payload instantly
5FAST_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 speed
2SET_SPEED $Human
3
4REM Type a long continuous line without line breaks
5STRING_BLOCK
6This block spans three source lines
7but types as one continuous line
8with no Enter presses.
9END_STRING
Last updated on