Key press Version 9 (Рython)
Action group: Simulate system
Description
The action simulates hotkeys press. Hotkeys are combinations on a keyboard that follow certain commands.
Action icon
Parameters
Input parameters
"Keys" field - key or combination of keys to press. The key combination is indicated via «+».
"Keyboard language" field - the keyboard layout language in which the specified key or combination of keys will be entered. Supported languages: Russian, English.
"Number" field - number of clicks of the combination from the «Keys» field.
"Delay" field - time between pressing the combination of the field «Keys». Specified in milliseconds.
Settings
Property | Description | Type | Filling example | Mandatory field |
---|---|---|---|---|
Parameters | ||||
Keys | Key or combination of keys to press. The key combination is indicated via «+». | Robin.HotKeys | Yes | |
Number | Number of clicks of the combination from the «Keys» field. | Robin.Numeric | No | |
Delay | Time between pressing the combination of the field «Keys». Specified in milliseconds. | Robin.Numeric | No | |
Keyboard language | The keyboard layout language in which the specified key or combination of keys will be entered. | Robin.String | Yes |
Special conditions of use
- The action is not intended for text input, so its functionality is limited. Use the "Enter Text" action to enter text or required characters.
- The action does not work with the following keys: capslk, break, scrlk, prtsc, win, menu, numlk, fn.
- To add additional key combinations, click on the plus sign. The number of additional combinations is unlimited.
- To delete the additional combinations' parameters click on the trash bin sign.
Example of use
Task
Make a copy of the file using hotkeys.
Solution
Use the "Mouse click", "Key press" actions.
Implementation:
- Assemble a robot scheme with 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 the PickArea button and with the Shift key pressed, specify the coordinates of the folder you want to create a copy of. - Set the parameters for the "Key press" action. Required hotkeys: Ctrl + C, Ctrl + V.
- Click "Start" in the top panel.
Result:
The program robot completed successfully.
A copy of the "Test" folder was created in the workspace.