diff --git a/Scripting.md b/Scripting.md index 71e5993..6fa1cee 100644 --- a/Scripting.md +++ b/Scripting.md @@ -9,6 +9,9 @@ One can also place the script anywhere on the SD (or any other drive, for that m GodMode9 script resembles shell script. Comments are denoted by `#` and work anywhere. Variable are in the format `$[VAR]` where `VAR` is the name of the variable. (i.e. $[HAX]). Surround an argument with `"` if it must contain whitespaces. Any redundant whitespaces outside of `"` will be treated as a single whitespace. An unknown command will lead to script abort. +#### `-o` and `-s` Switches +You can use `-o` and/or `-s` switches on any command, or `--optional` / `--silent` respectively. `-o` Continues on failures of a command, and `-s` will try to suppress all error messages. +Example: `ask -o -s "Perform this operation (I will completely ignore your response)?"` ### Commands @@ -17,6 +20,8 @@ A short description of every command. Click on the command to go to a more detai **echo** command - Outputs data to the screen. Syntax: `echo ""` Example: `echo "Hello There!"` +**qr** command - Does the same as echo but also displays a QR on the top screen. Syntax: `qr ` Example: `qr "Scan for cool stuff! ;)" "https://github.com/d0k3/GodMode9"` + **chk** command - Checks two values against each other. Syntax: `chk ` Example: `chk $[HAX] a9lh` [more to come ofc]