Mantis FUNCTION Command
The FUNCTION command creates named, reusable payload subroutines that can be called anywhere in the script using function_name().
Functions are stored once in flash memory regardless of how many times they are invoked, keeping compiled bytecode lightweight.
Syntax & Examples
hello.mantis
1FUNCTION open_terminal()2 GUI r3 DELAY 4004 STRINGLN cmd5 DELAY 8006END_FUNCTION78REM Call function9open_terminal()10STRINGLN echo Running first task...1112open_terminal()13STRINGLN echo Running second task...Related Commands
Last updated on