Run script command line, shortcut, schedule, shell menu
Other programs can launch scripts in two ways.
Let the editor program launch the script. More info. Command line examples:
Au.Editor.exe Script5.csAu.Editor.exe \Folder\Script5.csAu.Editor.exe "Script name.cs" /argument1 "argument 2"Au.Editor.exe *Script5.csWith * the program can wait until the script ends and capture text written with script.writeResult.
To create a command line string to run current script, use menu TT > Script launchers. Also there you'll find tools to create Windows Task Scheduler tasks (triggers: date/time, event log, startup, session connect/disconnect/lock/unlock, idle), shortcuts and shell context menu items.
Run the script without the editor. For it need to create .exe program from the script. Then launch it like any other program. Example:
C:\Test\Script5.exeNote: the ifRunning and uac options then aren't applied. To ensure single running instance, use script.single.