Skip to main content

General Windows events

Suggest edit Updated on November 10, 2021
Pega Robot Studio v21 Preview

Use General Windows events to define actions in your automation.

EventDescription
ClickOccurs when the control is clicked.
ClickingOccurs when the control is in the process of clicking.
Copy

Occurs when the text in the control has been copied by either the Ctrl+C keystroke sequence or when selected as a menu option. This event is also triggered when the Cut event occurs. When the Cut command is used (Ctrl+X or menu option), the Copy event fires and then the Cut event fires. Click the drop-down arrow on the event connection block to expose a Text parameter which outputs the text that was Copied.

Copy Event

Note: This event is not available for all application types. For more information, see Supported Application Technologies.

CreatedOccurs when the control is matched. For more information, see Wait For Create.

Occurs when the text in the control has been cut by either the Ctrl+X keystroke sequence or when selected as a menu option. When the Cut command is used (Ctrl+X or from menu option), the Copy event fires and then the Cut event fires. Click the drop-down arrow on the event connection block to expose a Text parameter which outputs the text that was Cut.

Cut event

Note: This event is not available for all application types. For more information, see Supported Application Technologies.

DestroyedOccurs when the control is unmatched.
DisposedEvent included for as part of system references, however, it is not used in automations.
DoubleClickOccurs when the control is double-clicked.
DoubleClickingOccurs when the control is in the process of double clicking.
EnabledChangedOccurs when the control is enabled or disabled.
GotFocusOccurs when the control receives focus.
HiddenOccurs after a control has been hidden.
KeyDownOccurs when a key is pressed while the control has focus.
KeyPressOccurs when a key is pressed while the control has focus.
KeyUpOccurs when a key is released while the control has focus.
LostFocusOccurs when the control loses focus.
MouseDownOccurs when the mouse pointer is over the control and a mouse button is pressed.
MouseUpOccurs when the mouse pointer is over the control and a mouse button is released.
Paste

Occurs when the text in the control has been pasted from the Windows Clipboard by either the Ctrl+V keystroke sequence or when selected as a menu option. Click the drop-down arrow on the event connection block to expose a Text parameter which outputs the text that was Pasted.

Paste event

Note: This event is not available for all application types. For more information, see Supported Application Technologies.

RightClickOccurs when the control is right-clicked.
RightClickingOccurs when the control is being right-clicked. This is a cancelable event.
ShownOccurs after a control has been shown.
TextChangedOccurs when the text in the control is changed.
VisibleChangedOccurs when the visibility the control is changed.

Did you find this content helpful? YesNo

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us