The Press Key building block presses and holds a keyboard key (or key combination) until it is released. This is useful when you need to keep a modifier key pressed during another action, such as holding CTRL while dragging the mouse. The block is typically used together with the Release Key block.
See the Press and hold a key lesson for an example of how this works.
Fully expanded, the Press key block shows the following properties:
Quick-start
-
Drag Press Key onto the canvas.
-
Connect the block in the flow and optionally specify the basic parameters required for this block to operate: Keys (use Capture) and, if needed, Await no movement.
-
Run the flow when it’s ready.
Building block parameters
Resources
|
Topic |
Description |
|---|---|
|
Common questions about creating, running, and managing flows in Leapwork. |
|
|
Guidelines and solutions for identifying and fixing issues that occur when building or running flows in Leapwork. |