Get checkbox value Version 11 (Net)
Action group: Windows
Description
The action checks element parameters and returns values: true or false.
Action icon
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Element | Resource with data of selected element in application | Robin.WinElement | Yes | |
Time-out | Time in milliseconds to find required element. | Robin.Numeric | No | |
Window order | When found more than one window, action would interact with window defined by order | Robin.Numeric | No | |
Results | ||||
Result | Checkbox value. | Robin.Boolean | true |
Special conditions of use
None.
Example of use
Task
There is an open Notepad++ parameters settings window. Get "Transparency" checkbox value. Display the result true/false in the dialogue window.
Solution
Use the "Get checkbox value", "Show message" actions.
Implementation
Assemble a robot scheme with the actions.
Set the "Get checkbox value" action parameters. Get the element using the WinSpy tool. Find more on how to work with WinSpy in section Get Win-element.
Set the "Show message" action parameters. In the "Message text" field specify the "Get checkbox value" action result. This way the robot will display a message with the result of the checkbox value (true or false).
Click "Start" in the top panel to start the robot.
Result
The program robot completed successfully.
The checkbox is checked. The value "true" is displayed in the dialogue box.