Вы просматриваете старую версию данной страницы. Смотрите текущую версию.

Сравнить с текущим просмотр истории страницы

« Предыдущий Версия 5 Следующий »

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.Booleantrue

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

  1. Assemble a robot scheme with the actions.



  2. 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.



  3. 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).



  4. 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.


 

 

  • Нет меток