5250 Function Keys

The SendKeys method sends characters and function keys to the host session. Function keys, such as the Field Exit key, are represented with codes called mnemonics. Use the table below to identify the mnemonic that represents a particular 5250 function key.

While there are different ways to send keys, for example the brace style ({BackSpace}) or the @ sign style (@<); Task Builder only supports the brace style. @ sign style (HLLAPI) mnemonics are not supported in Task Builder and you must convert them to the brace style when using Task Builder. They are, however, used when using Attachmate's server-side API to write custom steps.

There are two ways you can send keys: using the brace style or the @ sign style. When you specify a mnemonic, enclose it in quotation marks. For example, in the following statement, the Screen object uses the SendKeys method to transmit a Backspace function to the host. Screen.SendKeys "{BackSpace}"

5250 Function Key Brace Style Mnemonics
(used with Task Builder)
@ Sign Style Mnemonics
(used with custom steps)
Attention {Attn} @A@Q
AU01 (Application Use) {AU01} @}@1
AU02 {AU02} @}@2
AU03 {AU03} @}@3
AU04 {AU04} @}@4
AU05 {AU05} @}@5
AU06 {AU06} @}@6
AU07 {AU07} @}@7
AU08 {AU08} @}@8
AU09 {AU09} @}@9
AU10 {AU10} @}@a
AU11 {AU11} @}@b
AU12 {AU12} @}@c
AU13 {AU13} @}@d
AU14 {AU14} @}@e
AU15 {AU15} @}@f
AU16 {AU16} @}@g
Backspace {BackSpace} @<
Clear {Clear} @C
Cursor Down {CursorDown} @V
Cursor Down 2 Rows {CursorDownFast} @A@V
Cursor Left {CursorLeft} @L
Cursor Left 2 Columns {CursorLeftFast} @A@L
Cursor Right {CursorRight} @Z
Cursor Right 2 Columns {CursorRightFast} @A@Z
Cursor Select {CursorSelect} @A@J
Cursor Up {CursorUp} @U
Cursor Up 2 Rows {CursorUpFast} @A@U
Delete {Delete} @D
Destructive Backspace {DestructiveBackspace} @{@Z
Duplicate {Dup} @S@x
Erase End (Erend) {EraseEnd} @F
Erase Input (Erinp) {EraseInput} @A@F
Ext Graphics {ExtGraphics} @}@G
F1 {PF1} @1
F2 {PF2} @2
F3 {PF3} @3
F4 {PF4} @4
F5 {PF5} @5
F6 {PF6} @6
F7 {PF7} @7
F8 {PF8} @8
F9 {PF9} @9
F10 {PF10} @a
F11 {PF11} @b
F12 {PF12} @c
F13 {PF13} @d
F14 {PF14} @e
F15 {PF15} @f
F16 {PF16} @g
F17 {PF17} @h
F18 {PF18} @I
F19 {PF19} @j
F20 {PF20} @k
F21 {PF21} @l
F22 {PF22} @m
F23 {PF23} @n
F24 {PF24} @o
Field Advance {FieldAdvance} @}@A
Field Backspace {FieldBackspace} @}@B
Field Exit {FieldExit} @A@E
Field Minus {FieldMinus} @A@-
Field Plus {FieldPlus} @A@+
Help {Help} @H
Hex {Hex} @A@X
Home {Home} @O
Insert {Insert} @I
New Line {NewLine} @N
PA1 {PA1} @x
PA2 {PA2} @y
PA3 {PA3} @z
Page Down {Page Down} @v
Page Up {Page Up} @u
Plus Cr {PlusCr} @}@C
Plus Cr Minus {PlusCrMinus} @{@U
Print {Print} @P
Plus Cr Toggle {PlusCrToggle} @{@V
Reset {Reset} @R
Right Tab (Tab) {Tab} @T
Roll Left {RollLeft} @}@L
Roll Right {RollRight} @}@R
Slp {Slp} @}@S
System Request {SystemRequest} @A@H
Tab (Right tab) {Tab} @T
Test {Test} @A@C
Related Topics
Bullet Synapta Services Builder, Overview
Bullet Connecting to 5250 Hosts
Bullet 5250 Keystrokes