SendKeys
Sends the specified keystrokes to the active window. The active window could be a graphic display or another application.
Syntax
SendKeys <"
keystring
">
where
<"keystring">
is a list of keystrokes. The quotes must be included.Remarks
The following syntax rules apply:
- Use the curly brackets{ }to enclose special keys such as PgUp, Enter or a function. For example,"{F10}"sends F10.
- Use^to send a control key. For example,"^{F3}"to send Ctrl-F3.
- Use+to send a shift key. For example,"+{F2}"to send Shift-F2.
- Use % to send an alt key. For example,"%{A}"to send Alt A.
You can use F1 to F12 and the following (in upper and/or lower case letters) to represent the special keys on the keyboard:
- BackSpace, Bksp, Bs
- End
- Enter
- Escape, Esc
- Delete, Del
- Down, Up
- Home
- Insert
- Left, Right
- PgDn
- PgUp
- PrtSc
- Tab
This command is run on the currently active display on the
FactoryTalk View SE
Client or FactoryTalk View Studio
that issued the command. It will be ignored when it is issued from an HMI Server or if no display is active.Provide Feedback