Hello world
Here’s the shortest useful Mantis script. It sets a human-like typing pace and types a greeting:
hello.mantis
1REM My first Mantis script2SET_SPEED $Human3STRINGLN Hello from Mantis!Line by line:
REM— a comment. The compiler ignores everything after it on that line.SET_SPEED $Human— paces every keystroke that follows so it looks like natural typing rather than an instant paste.STRINGLN Hello from Mantis!— types the text exactly as written, then presses Enter.
Save the file, hit Compile (Ctrl+B) in Karvi Studio, pick your device’s COM port, and hit Upload (Ctrl+U). Plug Mantis in without holding the Upload button, and it types the line above on whatever has focus.
Last updated on