Key press and hold Version 4 (Рython)
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
Parameters
Input parameters
Key - name of the key. If more than one key is specified, the first one will be selected
Settings
Property | Description | Type | Filling example | Mandatory field |
---|---|---|---|---|
Parameters | ||||
Key | Name 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 "Mouse click", "Key press and hold", "Keyboard input", "Release key", "Key press" actions.
Implementation
- Assemble a robot scheme with the actions:
- Set the "Mouse click" action parameters.
To fill in the "Coordinates" field click on the three dots button, then on the button, in the opened window click on the PickArea button and with the Shift key pressed, specify the coordinates of the element to click. - Set the "Key press and hold" action parameters.
- Set the "Keyboard input" action parameters.
- Set the "Release key" action parameters.
- Set the "Key press" action parameters.
- Click the "Start" button in the top panel.
Result
The program robot completed successfully.
The required value is written in the Notepad.
Обзор
Инструменты контента