Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

Get text from property Version 16 (Net)

Группа действийAction group: Windows

Описание действия

Действие возвращает значение выбранного свойства элемента.

...

Description

The action returns the selected element property value

Action icon

...

Параметры

Входные параметры

  1. Элемент – Ресурс который хранит данные о выбранном элементе приложения.

  2. Имя свойства.

  3. Тайм-аут – Время в миллисекундах, в течении которого будет происходить поиск нужного окна.

  4. Номер окна – Если найдено несколько окон, то действие взаимодействует с окном под указанным номером.

Выходные параметры

В результате получаем строку со значением выбранного свойства элемента.

Настройки

Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
ElementResource with data of selected element in applicationRobin.WinElement
Yes
Property name
СвойствоОписаниеТипПример заполненияОбязательность заполнения поляПараметрыЭлементРесурс который хранит данные о выбранном элементе приложенияRobin.WinElement ДаИмя свойстваИмя свойства.

Robin.String
 

No
НетТайм
Time-
аутВремя в миллисекундах, в течении которого будет происходить поиск нужного окна
outTime in milliseconds to find required window.Robin.Numeric
 

No
НетНомер окнаЕсли найдено несколько окон, то действие взаимодействует с окном под указанным номером
Window orderWhen found more than one window, action would interact with window defined by orderRobin.Numeric
 

No
Нет
Results
РезультатыРезультатЗначение выбранного свойства элемента.
ResultThe value of the selected property of the elementRobin.String
  

Особые условия использования

Не требуется предварительная активация окна, содержащего элемент.

Группа не работает с панелью задач, проводником и рабочим столом.

Пример использования 

Задача



Special conditions of use

Preliminary activation of the window with the element is not needed.

The group does not work with taskbar, explorer, and workspace.

Example of use

Task

There is an open "Parameters" window. Get text from property Открыто окно "Параметры" , необходимо получить свойство элемента  = IsPasswordProperty

...

Solution

Воспользоваться действием "Получить свойство элемента". 

Реализация

...

Use the "Get text from property" actions.

Implementation

  1. Move the "Get text from property" action to the workspace.
    Image Added
  2. Set the "Get text from property" action parameters. Get the element with the WinSpy tool. Working with WinSpy is described in section Get Win-element
    Setting a timeout does not, in general, increase the execution time of an action beyond the time it takes for the item we are using in the action to become visible and accessible. During the set timeout, the action tries to access the element it is working with. As soon as the item is available, the waiting timeout expires.
    More about element properties you can find here.
    Image Added
  3. Click "Start" in the top panel.

Result

The program robot completed successfully.

Image Added

Element property = IsPasswordProperty was obtained

...

Результат

Программный робот отработал успешно.

Image Removed

Свойство элемента = IsPasswordProperty  получено.