Launch a program

Launch another program with a given set of parameters.

Arguments

executable — Program

The program to launch. Must be a file on disk. Environment variables are supported.

arguments — Arguments

Any arguments to pass to the program.

waitForInputIdle — Wait for program to be ready

Waits for the program to start its message loop, indicating that the program is ready.

waitForWindow — Window to wait for

Wait until a window exists that matches this query. Note that the window does not have to be from the started process, unless you limit that yourself using the process name. Find windows by searching for the process name, window class and window title. All parts support wildcards or regular expressions. When setting up this command in the user interface, a nice editor is provided for the separate parts. When searching from the command line, the syntax is: \[process name]\[window class]\[window title]. All parts are optional, meaning you can use "\\\Untitled - Notepad" to find the window with that title. Wildcards are supported for each part. You can use regular expressions by surrounding the part with forwards slashes: "\\\/.* - Notepad/" will find any Notepad window, and is equivalent to "\\\* - Notepad".

waitForExit — Wait for program to exit

Wait for the program to finish executing before continuing.

skipIfAlreadyRunning — Do not launch if process is already running

Set this flag if you do not want to run a second instance of this process. If you set this flag, MaxTo will first check to see if the process is already running, and only launch a new process if no existing process can be found. Note that MaxTo will use the full path of the executable to check if the process is running.

bringToFront — Bring to front

Force the window to be the foreground window. May be useful when used in combination with other commands.

timeout — Timeout in seconds

How long to wait when waiting for program to be ready or for it to exit. Note that if you specify both to wait for the program to be ready and for it to exit, the total wait time can be two times the timeout value.