Troubleshooting
Problem
Is Robot able to output special keys to the application under test.
Resolving The Problem
QUESTION:
Is Robot able to output special keys to the application under test?
ANSWER:
Below are values that can be included in the InputKey statements of SQABasic Scripts to output special keystrokes and characters, including characters normally used by SQABasic.
Keytext value Keyboard equivalent
{Alt} Default Alt key (either left or right).
Default is left if there are no preceding {LKeys} or {RKeys}.
{Apps} Applications key.
{LeftAlt} Left Alt.
{RightAlt} Right Alt.
{BackSpace} or {BS} or {BkSp} Backspace.
{Break} Break or Pause.
{CapsLock} Caps Lock.
{Clear} Clear.
{Ctrl} Default Control key (either left or right).
Default is left if there are no preceding {LKeys} or {RKeys}.
{LeftCtrl} Left Control.
{RightCtrl} Right Control.
{Delete} or {Del} or {NumDelete} or {ExtDelete} Delete.
{Down} or {NumDown} or {ExtDown} Down Arrow.
{End} or {NumEnd} or {ExtEnd} End.
{Enter} or ~ or {NumEnter} or {Num~} Enter.
{Escape} or {Esc} Escape.
{Help} Help.
{Home} or {NumHome} or {ExtHome} Home.
{Insert} or {NumInsert} or {ExtInsert} Insert.
{Left} or {NumLeft} or {ExtLeft} Left Arrow.
{LKeys} Sets the default for {Alt}, {Ctrl}, {Shift}, and {Win} entries as left Alt, Control, Shift, and Windows keys.
{NumLock} Num Lock.
{PgDn} or {NumPgDn} or {ExtPgDn} Page Down.
{PgUp} or {NumPgUp} or {ExtPgUp} Page Up.
{PrtSc} Print Screen.
{RKeys} Sets the default for {Alt}, {Ctrl}, {Shift}, and {Win} entries as right Alt, Control, Shift, and Windows keys.
{Right} or {NumRight} or {ExtRight} Right Arrow.
{ScrollLock} Scroll Lock.
{Shift} Default Shift key (either left or right).
Default is left if there are no preceding {LKeys} or {RKeys}.
{LeftShift} Left Shift.
{RightShift} Right Shift.
{Tab} Tab.
{Up} or {NumUp} or {ExtUp} Up Arrow.
{Win} Default Windows key (either left or right).
Default is left if there are no preceding {LKeys} or {RKeys}.
{LeftWin} Left Windows.
{RightWin} Right Windows.
{Numn}, where n is a number from 0 through 9 Example: {Num5} 0-9 (numeric keypad).
{Num.} or . . (period, decimal).
{Num-} or - - (dash, subtraction sign).
{Num*} or * * (asterisk, multiplication sign).
{Num/} or / / (slash, division sign).
{Num+} or {+} + (addition sign).
{^} ^ (caret character).
{%} % (percent character).
{~} ~ (tilde character).
{(} ( (left parenthesis character).
) or {)} ) (right parenthesis character).
{{} { (left brace character).
} or {}} } (right brace character).
[ [ (left bracket character).
] ] (right bracket character).
{F#} Example: {F6} F# (function keys 1-12).
+ Example: +{F6} Shift (used while pressing down another key).
^ Example: ^{F6} Control (used while pressing down another key).
% Example: %{F6} Alt (used while pressing down another key).
{key n}, where key is any key, and n is the number of times that key is pressed. Example: {a 10} Repeats the key press n number of times.
{key KeyDn}, where key is any key. Example: {a KeyDn} Presses and holds down key, and generates continuous WM_KEYDOWN events, until {key KeyUp} appears in InputKeys, or until the end of the InputKeys statement.
{key KeyUp}, where key is any key.Example: {a KeyUp} Generates a WM_KEYUP event for key.
Historical Number
159720405
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21132571