Create a window trigger that starts an automation when a user opens or closes the
predefined application window.
About this task
This procedure is for a scenario where you want to configure a trigger to start a
bot when any user opens a Microsoft Excel document called
Customer_database.xls. Before you configure this window
trigger, ensure that you have opened the Customer_database.xls
document on your system so that you can select this window.
Procedure
-
On the left pane, click Automation.
A list of available and forms is
displayed.
-
Click .
-
Enter a name for the bot.
All the bots are stored in the \Bots
folder. (Optional) Click Browse to change the
folder.
-
Click Create & edit.
-
In the bot builder page, click .
-
Drag Window into Drag a trigger
here.
The Window trigger: Window editing panel appears.
-
Click the Window drop-down menu and select
Customer_database.xls.
Refresh the Window drop-down menu if none of the
available windows are listed.
-
Under the Window title field, click the
String tab to set the entire title of the selected
window.
The Regex tab can be used to select a pattern that
matches the selected window title. For example, if you select the
Regex option in this scenario, the bot is triggered if the user opens any
.xls file.
-
Select Open from the Window action that start
the bot drop-down manu.
- Optional:
Use the Assigned to drop-down menu to assign a
variable.
If you want use the Variables tab to create a variable,
ensure you select the Use as input check box for it to
appear in the Assigned to (optional) drop-down menu.
-
Click Save to save the trigger configuration.
-
Click .
The preset trigger is created, and the bot is triggered
when any user opens the Customer_database.xls document.
What to do next
Configure the required automation using the
Actions, and save the automation. When you click , the automation listens for the configured triggers. When any user opens the
Customer_database.xls document, the automation is
triggered.