All templates
Desktop AutomationBeginner
Run an Application
Robomotion•Updated 11 months ago

Overview
Starts a desktop application by executable path — the simplest form of process orchestration in Robomotion.
Run an Application
Before automating any tasks on your desktop, you have to launch the appropriate application that will perform them. Robomotion allows you to launch virtually any application or file using the "Run Application" action.
What Run an Application can do
- Build Desktop Path (
Core.Programming.Function) — setsmsg.desktop_folder_pathto<$Home$>\Desktop. - Input Dialog titled
Run an application, messageSelect the app you would like to run.., defaultnotepad.exe→msg.selected_file. - Run App (
Core.Process.StartProcess,optBackground: true,continueOnError: true) —inFilePath: msg.selected_file→msg.app_process_id, thenCore.Flow.Stop.
Behind the scenes
- There's no cancel guard — if the dialog returns an empty path,
Core.Process.StartProcesswill fail, butcontinueOnError: truelets the flow still reachCore.Flow.Stopcleanly. optBackground: truedetaches the launched process, so closing Robomotion doesn't kill the application;msg.app_process_idis captured for any downstream automation that wants to attach to it.msg.desktop_folder_pathis computed but unused by the launch itself — it's a convenience value that can be surfaced in future variants (e.g. as the dialog's starting folder).
More desktop automation templates
See all 17 →- Every customer from a CSVThe Windows Recorder's customer task run for every row of a CSV file, each typed value replaced by the row's field, with a Catch that logs a row the app will not take and goes on with the next.
- Putting it togetherOne flow over three systems. Headless Chrome reads today's web orders from Acme ERP Web, the finance system is asked about each customer over Remote Desktop, and the orders with nothing overdue are entered into Acme ERP for Windows, line by line, with a report at the end.
- Reading from a Java applicationA flow that signs in to Acme ERP (Java Edition), reads a customer's credit limit and the fasteners in the product table, works out how many boxes of each the limit covers, and writes the answer to a CSV file.
- Reading over Remote DesktopA flow that logs on to Acme ERP over Remote Desktop, reads the outstanding and overdue totals off the Invoices screen with OCR, each anchored to its label, and writes the overdue share to a CSV file.
- Slow sessionsA flow recorded on a good Remote Desktop session that logs on and updates a customer's email, phone and notes in Acme ERP, and still gets every value right on a slow session that loses keystrokes.
- Windows dialogs and gridsA flow that signs in to Acme ERP for Windows, waits for its orders grid, reads it with Get Table Data, exports the orders on hold through the Save As dialog, and closes the app answering its "Save changes?" question.