diff --git a/docs/control/actions/README.md b/docs/control/actions/README.md index c2bd4ff..241a31e 100644 --- a/docs/control/actions/README.md +++ b/docs/control/actions/README.md @@ -98,15 +98,28 @@ Any four character code can be used for store other information. You can also st ## Macro support (since March, '24) +Added support for macros, or crude scripting subroutines. This expands the potential complexity for QR scripting, as the entire script is no longer limited to 255 characters. +It would be possible to run scripts nearing ~1.2KB. Note: recursion is supported, macros can call other macros, and can call themselves. + +Macros are saved in string FourCCs: * **$**fourcc**="custom Labs commands"** (temporary) * **\***fourcc**="custom Labs commands"** (permanent) Example: This macro calculates the Light Value and stores the result in variable **E**
**\*LVAL=**"=Ii=Ss=I/100=S/I=E6.25=E*S=E#2" + e.g. *SUBA="mVr4p60'60p'!S!2E!1N" Note: Use single quotes for text within double quotes. + In a separate QR Code will call LVAL and display the result
**^LVAL**"Current LV $E" +Note: for Macros that print output use single quotes for text within. +**\*DPLV=**"^LVAL'current LV $E'" + + + + + ## Reset Actions ## * **!RESET** - erase all your permanent metadata (anything that used !Mxxxx command.) (requires user confirmation.)