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

Ключ

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

...

Key press and hold Version 4 (Рython)

Группа действий: Имитация устройств 

Описание

Действие имитирует нажатие на клавишу, например, на клавишу-модификатор - CTRL или Shift, и удерживает ее до выполнения действия «Отпустить клавишу».

Иконка

Image Removed

Настройки

...

Свойство

...

Описание

...

Тип

...

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

...

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

...

Параметры

...

Клавиша

...

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

...

Robin.HotKeys

...

Да

Action group: Simulate system

...

Description

The action simulates key press, for example a CTRL or Shift modifier key, and holds it until the "Release key" action is completed

Action icon

Image Added

Parameters

Input parameters

Key - name of the key. If more than one key is specified, the first one will be selected

Settings

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
KeyName of the key. If multiple keys are specified, only the first one will be selected.Robin.HotKeys
Yes

Special conditions of use

None. 

Example of use

Task

You have a text variable with value = test. Open Notepad and paste the value of this variable there, but in capital letters. Then, press Enter to move the cursor to a new string. 

Solution

Use the 

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

Отсутствуют 

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

Задача: имеется текстовая переменная с значением = тест. Необходимо открыть блокнот и вставить туда значение данной переменной, но большими буквами. Далее, выполнить нажатие клавиши Enter для перехода курсора на новую строку. 

Решение: воспользоваться действиями "Mouse click", "Key press and hold", "Keyboard input", "Release key", "Key press" actions

Реализация:

Implementation

  1. Assemble a robot scheme with the actionsСобрать схему робота, состоящего из действий:  
  2. Настроить параметры для действия "Клик мышью"Set the "Mouse click" action parameters
    Untitled 1.jpg
    Для заполнения поля "Координаты" необходимо нажать на кнопку в виде трех точек, далее на кнопку Image Removed,  в появившемся окне необходимо нажать на кнопку PickArea и с зажатой клавишей Shift указать координаты элемента по которому необходимо кликнуть.
    Untitled Diagram.jpgImage Removed
  3. Настроить параметры для действия "Нажать клавишу и удерживать". 
    Image Removed
  4. Настроить параметры для действия "Ввод текста". 
    Image Removed
  5. Настроить параметры для действия "Отпустить клавишу". 
    Image Removed
  6. Настроить параметры для действия "Нажатие клавиш". 
    Image Removed
  7. Нажать на кнопку "Старт" в верхней панели. 

Результат: 

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

Image Removed

Требуемое значение записано в блокнот. 

  1. To fill in the "Coordinates" field click on the three dots button, then on the Image Added button,  in the opened window click on the PickArea button and with the Shift key pressed, specify the coordinates of the element to click.
    Untitled Diagram.jpgImage Added
  2. Set the "Key press and hold" action parameters.  
    Image Added
  3. Set the "Keyboard input" action parameters. 
    Image Added
  4. Set the "Release key" action parameters.  
    Image Added
  5. Set the "Key press" action parameters. 
    Image Added
  6. Click the "Start" button in the top panel. 

Result

The program robot completed successfully.

Image Added

The required value is written in the Notepad. 

Image AddedImage Removed