Get checkbox value Version 9 (Net)
Action group: Windows
Description
The action checks element parameters and returns values: true or false.
Action icon
Settings of parameters
Свойство | Описание | Тип | Пример заполнения | Обязательность заполнения поля |
Параметры | ||||
Элемент | Ресурс который хранит данные о выбранном элементе приложения. | Robin.WinElement | Да | |
Тайм-аут | Время в миллисекундах, в течение которого будет происходить поиск нужного элемента. | Robin.Numeric | Нет | |
Номер окна | Если найдено несколько окон, то действие взаимодействует с окном под указанным номером | Robin.Numeric | Нет | |
Результаты | ||||
Результат | Значение чекбокса. | 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. "True" value is displayed in the dialogue box.