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

Ключ

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

...

Send text Version 13 (Net)

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

Описание

Действие отправляет текст указанному win-элементу.

Иконка

Image Removed

Параметры

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

  1. Поле "Элемент- Ресурс, который хранит данные о выбранном элементе приложения.
  2. Поле "Тайм-аут- Время в миллисекундах, в течении которого будет происходить поиск нужного окна.
  3. Поле "Текст" - Объект, текстовое представление которого необходимо ввести.
  4. Поле "Очистить" - Очистить поле перед вводом
  5. Поле "Номер окна" - Если найдено несколько окон, то действие взаимодействует с окном под указанным номером.
  6. Поле "Посимвольный ввод" - Если значение "false", то текст будет вставлен целиком. Способ работает для большинства приложений. Если значение "true", то текст будет напечатан посимвольно. Такой способ рекомендуется использовать в тех случаях, когда первый не работает корректно.

Настройки

...

Description

The action sends a text to a specified win-element

Action icon

Image Added

Settings of parameters

ParameterDescription
ElementA resource that stores data about the selected application element.
Time-outThe time in milliseconds during which the search for the desired window will take place.
TextThe object whose text representation needs to be entered.
ClearClear the field before input.
Window orderIf multiple windows are found, the action interacts with the window with the specified number.
Input by symbolsIf the value is "false", the entire text will be inserted. The method works for most applications. If the value is "true", the text will be printed character by character. It is recommended to use this method in cases where the first one does not work correctly.

Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
ElementResource with data of selected element in applicationRobin.WinElement
Yes
Time-outTime in milliseconds to find required window.Robin.Numeric
No
TextObject to send as stringRobin.Object
No
ClearClear before sending

Свойство

Описание

Тип

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

Обязательность заполнения поля

Параметры

Элемент

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

Robin.WinElement

Да

Тайм-аут

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

Robin.Numeric

Нет

Текст

Объект, текстовое представление которого необходимо ввести

Robin.Object

Нет

Очистить

Очистить поле перед вводом
Robin.Booleantrue
Нет
No

Номер окна

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

Нет

Посимвольный вводЕсли значение "false", то текст будет вставлен целиком. Способ работает для большинства приложений. Если значение "true", то текст будет напечатан посимвольно. Такой способ рекомендуется использовать в тех случаях, когда первый не работает корректно

No
Input by symbolsIf the value is «false», the text will be pasted at once. It works correctly for most applications. If the value is «true», the text will be entered character by character. It Is recommended when first approach works incorrectly.Robin.Booleantrue
Нет

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

При работе данного действия в 1С может возникнуть ошибка. 

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

1. В действии "Ввести текст" (группа Windows) указано поле в 1С
 и текст, который нужно ввести.
2. В действии "Фокус на элементе" указана кнопка "Записать".
3. Робот запущен. 

Результат: действие вводит в поле указанный текст, но при клике на "Записать" отображается ошибка, что поле пустое, в результате робот не отрабатывает, запись не создается. 

Image Removed

Временное решение до устранения проблемы: 

В случае с 1С необходимо отправить "Нажатие клавиш" из группы "Имитация устройств"  и указать Backspace после действия "Ввести текст".

Image Removed

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

Задача

Открыто окно с названием "Mail". Необходимо ввести в поле для ввода значение "Test". 

Решение

Воспользоваться действием "Ввести текст". 

Реализация

...

No

Special conditions of use

An error may occur when this action is running in 1C.

For example, there is a robot algorithm, as a result of which the robot must enter text in a field and click on a button.

1. In the "Send text" action ("Windows" action group) a field in 1C and the text for input are specified.
2. In the "Window focus element" action the "Record" button is specified.
3. The robot is active.

Result: the action enters the specified text into the field, but when you click on "Record", an error is displayed that the field is empty, as a result, the robot does not perform, the record is not created.

Image Added

A temporary solution until the problem is fixed:

In the case of 1C, you need to send a "Key press" from the "Simulate system" group and specify the Backspace after the "Send text" action.

Image Added

Example of use

Task

There is an open window "Mail". In the input field specify value "Test".

Solution

Use the "Send text" action.

Implementation

  1. Move the "Send text" action to the workspace.
    Image Added
  2. Set the "Send text" action parameters. Obtain the element with the WinSpy tool. More about working with WinSpy - Working with Win-elements

    Setting a timeout, in general, does not lead to an increase in the execution time of the action beyond the time it will take for the element that we use 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 element is accessed, the waiting timeout ends.
    Image Added
  3. Click "Start" in the top panel.

Result

The program robot completed successfully.

Image Added

The desired text is entered in the input field of the dialog box.

Image Added

 

...

Результат

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

Image Removed

Требуемый текст введен в поле ввода диалогового окна. 

Image Removed