Windows
This step helps you work with a Windows desktop and run Windows applications.
Properties
Specify the following properties to run an application.
- Device
- Select the device where you want to open an application.
- Action
- Select the action to perform.
- Executable
-
-
Specify the path to the application to execute. You can use local drive path or network path.
-
For the built-in Windows applications, you can specify the process name, such as calc.
The following example provides several ways to start the Calculator application.
- calc
- calc.exe
- C:\\Windows\\System32\\calc.exe
- C:\Windows\System32\calc
- C:/Windows/System32/calc
- C://Windows//System32//calc.exe
Specify the network path as follows:
\\MyServer\shared\reportform.exe
-
- Working Directory (optional)
- Specify the path to the application's working directory. For example, you can use this path if you have applications with the same name located in different folders.
- Arguments (optional)
- Specify any arguments for the application if necessary. For example, if you specify "kofax" for a web browser application, the browser opens the https://www.kofax.com website.
- Interactive (optional)
- Select this option to make sure the program started by the robot is not started as a background application and the robot can interact with this program. This option is helpful if Windows treats Kofax RPA Desktop Automation Service as a background application, thus starting some applications in the background preventing the robot to interact with them.
- Start maximized (optional)
- Starts a program in a maximized window.
If you upgrade your Kofax RPA installation to version 11.2, the following options are added to all existing robots with this step automatically: Interactive (not selected by default) and Start maximized (selected by default).
Step example
The following example shows Windows step properties that help you open the text.txt file located in C:\Temp using the Notepad application.
-
Action: Execute
-
Executable: notepad.exe
-
Working Directory: C:\Temp
-
Arguments: text.txt
Application actions
When working with Internet Explorer, you can use the following actions on the Application Action menu that is available when you right-click the Internet Explorer tab in the Recorder View. These actions are available only if the computer that the Desktop Automation Service is running on has Internet Explorer opened, and are applied to the entire application.
The display scaling for Internet Explorer opened on the computer running the Desktop Automation Service is automatically set to 100% and cannot be changed.
Action | Description |
---|---|
Close Window | Adds a step to close an opened Internet Explorer tab. |
Execute JavaScript | Adds a step to execute JavaScript on the current Internet Explorer page.
|
Component actions
When working with Internet Explorer, you can use the following actions on the Component Action menu. These actions are available only if the computer that the Desktop Automation Service is running on has Internet Explorer opened.
The display scaling for Internet Explorer opened on the computer running the Desktop Automation Service is automatically set to 100% and cannot be changed.
Action |
Description |
---|---|
Set Keyboard Focus |
Sets keyboard focus on the selected component to use keyboard input. |
Select Option |
Select Option requires Internet Explorer version 8.0 or later. The compatibility mode must be disabled for a given website. If the website is an intranet website, make sure that "Display intranet sites in Compatibility View" is not checked. These settings are configured in Internet Explorer > Tools > Compatibility View settings.
|
Step update
If the background information used by the Windows step has changed, such as, the device information has been updated, a warning appears indicating that something has changed. You can update the Windows step with the new information by clicking Update step from the context menu.