RunProg
[RunProg#]
- This command tells the Terminal app to run one of the program scripts.
- The # character must be a valid number from 1 to 9, or it can be a question mark (?) to open a named file or force an Open File dialog to be displayed.
- The program scripts 1 to 9 are the same as if you pressed the CTRL-F1 to CTRL-F9 keys.
- When the # character is a question mark (?), there are two options.
- No text after the command forces an Open File dialog to be displayed.
- You can also use the following syntax to define a "custom" program by adding a custom program name macro after the command
- [RUNPROG?]mycustomname
- The custom program filename macro must be alpha-numeric characters only.
See Run ASCII program for more details.
Example: [RunProg3] 'run program script number 3
[RunProg?] 'force an Open File dialog to be displayed so user can select which program script to run
[RunProg?]mycustomname 'run program script test99mycustomname.prg
- With V2.55 the RunProg command can pass memory variables to the called ASCII program. No changes are required to the AutoControl script, but @# must be added to the called ASCII program where the memory variable is to be used.
- The # character must be a valid number from 1 to 9.
- At run-time of the ASCII script, the @# is replaced by the corresponding memory variable.
- @1 is (V1) - Variable #1, @9 is (V9) - Variable #9 and so on, which are set by the [VarInput] or [VarSet] command in the calling AutoControl script.