TShiftKey

Applies to TestComplete 14.10, last modified on June 5, 2019

TShiftKey is an enumerated type that indicates whether the Shift, Ctrl or Alt key is pressed while executing a Click, DblClick or Drag action over a control. TShiftKey defines the following constants for shift keys:

Constant Description
skShift The Shift key is pressed.
skAlt The Alt key is pressed.
skCtrl The Ctrl key is pressed.
skNoShift Neither Ctrl, Shift nor Alt pressed.

TShiftKey values are additive. To specify that several keys are pressed at once, combine the needed constants using the bitwise logical OR operator. For example:

JavaScript, JScript

MyObject.Click (10, 10, skCtrl | skShift);

Python

MyObject.Click(10, 10, skCtrl | skShift)

VBScript

Call MyObject.Click (10, 10, skCtrl Or skShift)

DelphiScript

MyObject.Click (10, 10, skCtrl or skShift);

C++Script, C#Script

MyObject["Click"](10, 10, skCtrl | skShift);

See Also

Simulating Mouse Wheel Rotation
Simulating Selection of Items and Nodes
Click Action
ClickM Action
ClickR Action
DblClick Action
DblClickM Action
DblClickR Action
Drag Action
DragM Action
DragR Action

Highlight search results