SENDKEY Command
[SENDKEY(token,token)]Sends keystrokes to Personal Communications, where:
token = text string|command|macro macroname
Note:
- Text strings are enclosed in double quotation marks.
- Macros are prefixed with “macro”.
- The argument string for SENDKEY must be 255 characters or less.
- The following commands are supported.
| Command Name | Token | PC/3270 | PC400 |
|---|---|---|---|
| Alternate Cursor | alt cursor | Yes | Yes |
| Alternate Viewing Mode | alt view | Yes | Yes |
| Attention | sys attn | Yes | Yes |
| Backspace | backspace | Yes | Yes |
| Back Tab | backtab | Yes | Yes |
| Backtab Word | backtab word | Yes | Yes |
| Character Advance | character advance | No | Yes |
| Character Backspace | backspace valid | No | Yes |
| Clear Screen | clear | Yes | Yes |
| Clicker | click | Yes | Yes |
| Color Blue | blue | Yes | No |
| Color Field Inherit | field color | Yes | No |
| Color Green | green | Yes | No |
| Color Pink | pink | Yes | No |
| Color Red | red | Yes | No |
| Color Turquoise | turquoise | Yes | No |
| Color White | white | Yes | No |
| Color Yellow | yellow | Yes | No |
| Cursor Blink | cursor blink | Yes | Yes |
| Cursor Down | down | Yes | Yes |
| Cursor Left | left | Yes | Yes |
| Cursor Right | right | Yes | Yes |
| Cursor Select | cursor select | Yes | Yes |
| Cursor Up | up | Yes | Yes |
| Delete Character | delete char | Yes | Yes |
| Delete Word | delete word | Yes | Yes |
| Device Cancel | device cancel | Yes | Yes |
| Dup Field | dup | Yes | Yes |
| Edit Clear | edit-clear | Yes | Yes |
| Edit Copy | edit-copy | Yes | Yes |
| Edit Cut | edit-cut | Yes | Yes |
| Edit Paste | edit-paste | Yes | Yes |
| Edit Undo | edit-undo | Yes | Yes |
| End Field | end field | Yes | Yes |
| Enter | enter | Yes | Yes |
| Erase EOF | erase eof | Yes | Yes |
| Erase Field | erase field | Yes | No |
| Erase Input | erase input | Yes | Yes |
| Fast Cursor Down | fast down | Yes | Yes |
| Fast Cursor Left | fast left | Yes | Yes |
| Fast Cursor Right | fast right | Yes | Yes |
| Fast Cursor Up | fast up | Yes | Yes |
| Field Exit | field exit | No | Yes |
| Field Mark | field mark | Yes | Yes |
| Field + | field + | No | Yes |
| Field - | field - | No | Yes |
| Graphic Cursor | +cr | Yes | No |
| Help | help | Yes | Yes |
| Highlighting Field Inherit | field hilight | Yes | No |
| Highlighting Reverse | reverse | Yes | No |
| Highlighting Underscore | underscore | Yes | No |
| Home | home | Yes | Yes |
| Host Print | host print | Yes | No |
| Input | input | Yes | Yes |
| Input nondisplay | input nd | Yes | Yes |
| Insert Toggle | insert | Yes | Yes |
| Lower case | to lower | Yes | No |
| Mark Down | mark down | Yes | Yes |
| Mark Left | mark left | Yes | Yes |
| Mark Right | mark right | Yes | Yes |
| Mark Up | mark up | Yes | Yes |
| Move Mark Down | move down | Yes | Yes |
| Move Mark Left | move left | Yes | Yes |
| Move Mark Right | move right | Yes | Yes |
| Move Mark Up | move up | Yes | Yes |
| New Line | newline | Yes | Yes |
| Next Page | page down | No | Yes |
| Pause 1 second | pause | Yes | Yes |
| Previous Page | page up | No | Yes |
| Print Screen | local copy | Yes | Yes |
| Program Attention Key 1 | pa1 | Yes | No |
| Program Attention Key 2 | pa2 | Yes | No |
| Program Attention Key 3 | pa3 | Yes | No |
| Program Function Key 1 ⋮ Program Function Key 24 | pf1 ⋮ pf24 | Yes ⋮ X | Yes ⋮ X |
| Quit | quit | Yes | Yes |
| Reset | reset | Yes | Yes |
| Response Time Monitor | rtm | Yes | No |
| Roll Down | roll down | No | Yes |
| Roll Up | roll up | No | Yes |
| Rubout | rubout | Yes | Yes |
| Rule | rule | Yes | Yes |
| SO/SI Display | so si | Yes | Yes |
| SO/SI Generate | so si generate | No | Yes |
| System Request | sys req | Yes | Yes |
| Tab Field | tab field | Yes | Yes |
| Tab Word | tab word | Yes | Yes |
| Test | test request | No | Yes |
| Unmark | unmark | Yes | Yes |
| Upper case | to upper | Yes | No |
| Upper/Lower Change | to other | Yes | No |
| Wait for bind | wait app | Yes | Yes |
| Wait for System | wait sys | Yes | Yes |
| Wait transition | wait trn | Yes | Yes |
| Wait while input inh. | wait inp inh | Yes | Yes |
| Window Relocation 1 ⋮ Window Relocation 8 | view 1 ⋮ view 8 | Yes ⋮ X | Yes ⋮ X |
Examples:
- To logon
[SENDKEY("Logon")] - To get reader list
[SENDKEY("RDRL", enter)]