The sendKeys method sends characters and function keys to a host. Function keys, such as Transmit, are represented with codes called mnemonics.
You can send keys using either the brace style or the @ sign style. (The @ style mnemonics are case-sensitive.
The following sections provide the mnemonics that represent the function keys for 3270, 5250, and VT.
The following table provides the mnemonics that represent the function keys for a 3270 session.
3270 Function Key | Mnemonic (Brace Style) | Mnemonic (@ Style) |
---|---|---|
@ symbol | N/A | @@ |
Attention | {ATTN} | @A@Q |
Backspace | {Backspace} | @< |
Clear | {Clear} | @C |
Cursor down | {CursorDown} | @V |
Cursor left | {CursorLeft} | @L |
Cursor right | {CursorRight} | @Z |
Cursor select | {CursorSelect} | @A@J |
Cursor up | {CursorUp} | @U |
Delete | {Delete} | @D |
Enter | {Enter} or {Transmit} | @E |
Erase EOF | {ClearToEndOfField} | @F |
Erase input | {EraseInput} | @A@F |
F1 | {F1} or {PF1} | @1 |
F2 | {F2} or {PF2} | @2 |
F3 | {F3} or {PF3} | @3 |
F4 | {F4} or {PF4} | @4 |
F5 | {F5} or {PF5} | @5 |
F6 | {F6} or {PF6} | @6 |
F7 | {F7} or {PF7} | @7 |
F8 | {F8} or {PF8} | @8 |
F9 | {F9} or {PF9} | @9 |
F10 | {F10} or {PF10} | @a |
F11 | {F11} or {PF11} | @b |
F12 | {F12} or {PF12} | @c |
F13 | {F13} or {PF13} | @d |
F14 | {F14} or {PF14} | @e |
F15 | {F15} or {PF15} | @f |
F16 | {F16} or {PF16} | @g |
F17 | {F17} or {PF17} | @h |
F18 | {F18} or {PF18} | @I |
F19 | {F19} or {PF19} | @j |
F20 | {F20} or {PF20} | @k |
F21 | {F21} or {PF21} | @l |
F22 | {F22} or {PF22} | @m |
F23 | {F23} or {PF23} | @n |
F24 | {F24} or {PF24} | @o |
Home | {Home} | @0 (zero) |
Insert | {InsertToggle} | @A@I |
New line | {NewLine} | @N |
Reset | {Reset} | @R |
Tab | {Tab} | @T |
Tab back | {Backtab} | @B |
The following table provides the mnemonics that represent the function keys for a 5250 session.
5250 Function Key | Mnemonic (Brace Style) | Mnemonic (@ Style) |
---|---|---|
@ symbol | N/A | @@ |
Attention | {ATTN} | @A@Q |
Backspace | {Backspace} | @< |
Clear | {Clear} | @C |
Cursor down | {CursorDown} | @V |
Cursor left | {CursorLeft} | @L |
Cursor right | {CursorRight} | @Z |
Cursor select | {CursorSelect} | @A@J |
Cursor up | {CursorUp} | @U |
Delete | {Delete} | @D |
Enter | {Enter} or {Transmit} | @E |
Erase EOF | {ClearToEndOfField} | @F |
Erase input | {EraseInput} | @A@F |
F1 | {F1} or {PF1} | @1 |
F2 | {F2} or {PF2} | @2 |
F3 | {F3} or {PF3} | @3 |
F4 | {F4} or {PF4} | @4 |
F5 | {F5} or {PF5} | @5 |
F6 | {F6} or {PF6} | @6 |
F7 | {F7} or {PF7} | @7 |
F8 | {F8} or {PF8} | @8 |
F9 | {F9} or {PF9} | @9 |
F10 | {F10} or {PF10} | @a |
F11 | {F11} or {PF11} | @b |
F12 | {F12} or {PF12} | @c |
F13 | {F13} or {PF13} | @d |
F14 | {F14} or {PF14} | @e |
F15 | {F15} or {PF15} | @f |
F16 | {F16} or {PF16} | @g |
F17 | {F17} or {PF17} | @h |
F18 | {F18} or {PF18} | @I |
F19 | {F19} or {PF19} | @j |
F20 | {F20} or {PF20} | @k |
F21 | {F21} or {PF21} | @l |
F22 | {F22} or {PF22} | @m |
F23 | {F23} or {PF23} | @n |
F24 | {F24} or {PF24} | @o |
Field exit | {FieldExit} | @A@E |
Field minus | {FieldMinus} | @A@- |
Field plus | {FieldPlus} | @A@+ |
Home | {Home} | @0 (zero) |
Insert | {InsertToggle} | @A@I |
New line | {NewLine} | @N |
Page up | {PageUp} | @u |
Page down | {PageDown} | @v |
Reset | {Reset} | @R |
System request | {SystemRequest} | @A@H |
Tab | {Tab} | @T |
Tab back | {Backtab} | @B |
Test request | {TestRequest} | @A@C |
The following table provides the mnemonics that represent the function keys for a VT session.
VT Function Key | Mnemonic (Brace Style) | Mnemonic (@ Style) |
---|---|---|
@ symbol | N/A | @@ |
Backspace | {Backspace} | @< |
Break | {Break} | @A@Q |
Ctrl+a...Ctrl+z | {CTRL A}...{CTRL Z} | N/A |
Cursor down | {CursorDown} | @V |
Cursor left | {CursorLeft} | @L |
Cursor right | {CursorRight} | @Z |
Cursor up | {CursorUp} | @U |
Do | {Do} | @g |
Enter | {Enter} or {Transmit} | @E |
F1 | {F1} or {PF1} | @1 |
F2 | {F2} or {PF2} | @2 |
F3 | {F3} or {PF3} | @3 |
F4 | {F4} or {PF4} | @4 |
F6 | {F6} | @6 |
F7 | {F7} | @7 |
F8 | {F8} | @8 |
F9 | {F9} | @9 |
F10 | {F10} | @a |
F11 | {F11} | @b |
F12 | {F12} | @c |
F13 | {F13} | @d |
F14 | {F14} | @e |
F17 | {F17} | @h |
F18 | {F18} | @i |
F19 | {F19} | @j |
F20 | {F20} | @k |
Help | {Help} | @f |
Home | {Home} | @0 (zero) |
Next line | {Next} | @v |
Previous line | {Prev} | @u |
Remove | {Remv} | @D |
Viewer API, Overview | |
OIA Data | |
Field Attributes | |
IScreenAPI Interface |