The ControlKey object defines constants for sending cursor control keys and host commands using the sendKeys method. Constants are available for these host types:
IBM 3270
Table 5-14 IBM 3270
Key word |
Description |
---|---|
ALTVIEW |
Alternate view |
ATTN |
Attention |
BACKSPACE |
Back space |
BACKTAB |
Back tab |
CLEAR |
Clear or clear display |
CURSOR_SELECT |
Cursor select |
DELETE_CHAR |
Delete, delete character |
DELETE_WORD |
Delete word |
DEST_BACK |
Destructive backspace |
DEV_CANCEL |
Device cancel |
DOWN |
Cursor down |
DSPSOSI |
display SO/SI |
DUP |
Duplicate field |
END_FILE |
End of field |
ENTER |
Enter |
ERASE_EOF |
Erase end of field |
ERASE_FIELD |
Erase field |
ERASE_INPUT |
Erase input |
FIELD_MARK |
Field mark |
HOME |
Cursor home |
IDENT |
Ident |
INSERT |
Insert |
LEFT_ARROW |
Cursor left |
LEFT2 |
Left two positions |
NEW_LINE |
New line |
PA1 - PA3 |
PA1 - PA3 |
PF1 - PF24 |
PF1 - PF24 |
PAGE_DOWN |
Page down |
PAGE_UP |
Page up |
RESET |
Reset, reset terminal |
RIGHT2 |
Right 2 positions |
RIGHT_ARROW |
Cursor right, right |
SYSTEM_REQUEST |
System request |
TAB |
Tab key |
UP |
Cursor up |
IBM 5250
Table 5-15 IBM 5250
Key word |
Description |
---|---|
ALTVIEW |
Alternate view |
ATTN |
Attention |
AU1 - AU16 |
AU1 - AU16 |
BACKSPACE |
Back space |
BACKTAB |
Back tab |
BEGIN_FIELD |
Begin field |
CLEAR |
Clear |
DELETE_CHAR |
Delete, delete character |
DEST_BACK |
Destructive backspace |
DOWN |
cursor down |
DSPSOSI |
Display SO/SI |
DUP |
Duplicate field |
END_FILE |
End of field |
ENTER |
Enter |
ERASE_EOF |
Erase end of field |
ERASE_FIELD |
Erase field |
ERASE_INPUT |
Erase input |
FIELD_EXT |
Field exit |
FIELD_MINUS |
Field minus |
FIELD_PLUS |
Field plus |
FIELD_MARK |
Field mark |
HELP |
Help request |
HEXMODE |
Hex mode |
HOME |
cursor home |
INSERT |
Insert |
LEFT_ARROW |
Cursor left |
NEW_LINE |
New line |
PA1 - PA3 |
PA1 - PA3 |
[PF1 - PF24 |
PF1 - PF24 |
[print] |
|
RESET |
Reset, reset terminal |
RIGHT_ARROW |
Cursor right, right |
PAGE_UP |
Page up |
PAGE_DOWN |
Page down |
SYSTEM_REQUEST |
System request |
TAB |
Tab |
UP |
Cursor up |
VT
Table 5-16 VT
Keywords |
Description |
---|---|
BACKSPACE |
Back space |
BREAK |
Break |
CLEAR |
Clear or clear display |
CURSOR_SELECT |
Cursor select |
DELETE_CHAR |
Delete, delete character |
DOWN |
Cursor down |
EK_FIND |
Edit keypad find |
EK_INSERT |
Edit keypad insert |
EK_NEXT |
Edit keypad next |
EK_PREV |
Edit keypad previous |
EK_REMOVE |
Edit keypad remove |
EK_SELECT |
Edit keypad select |
ENTER |
Enter |
END_FILE |
End of field |
F1 - F24 |
F1 - F24 |
HOLD |
Hold |
HOME |
Home |
INSERT |
Insert |
KEYPAD_COMMA |
Keypad comma |
KEYPAD_DOT |
Keypad decimal |
KEYPAD_MINUS |
Keypad minus |
KEYPAD_ENTER |
Keypad enter |
KEYPAD0 - KEYPAD9 |
Keypad 0 - Keypad 9 |
LEFT_ARROW: |
Cursor left |
PF1 - PF20 |
PF1 - PF20 |
PAGE_DOWN |
Page down |
PAGE_UP |
Page up |
RESET |
Reset, reset terminal |
RETURN |
Return, carriage return |
RIGHT_ARROW |
Cursor right, right |
TAB |
Tab key |
UDK16 - UDK20 |
User defined key 6 - User defined key 20 |
UP |
Cursor up |
UTS
Table 5-17 UTS
Key word |
Description |
---|---|
BACKSPACE |
Moves the cursor to the previous tab position on the screen. |
BACKTAB |
Back tab <Shift> <Tab> |
CHAR_ERASE |
Erases character at the cursor and advances the cursor. |
CLEAR_DISPLAY |
Clear display |
CLEAR_EOD |
Clear to end of display |
CLEAR_EOF |
Clear to end of field |
CLEAR_EOL |
Clear to end of line |
CLEAR_FCC |
Clear Field Control Character |
CLEAR_HOME |
Clear display and cursor home |
CONTROL_PAGE |
Toggles the control page |
DELETE_LINE |
Deletes the line containing the cursor and shifts remaining lines up one row |
DOWN |
Moves the cursor down one line. Wraps at bottom. |
DELIN_LINE |
Deletes character under cursor and shifts remaining characters on line to the left. |
DELIN_PAGE |
Deletes character under cursor and shifts remaining characters on page to the left. |
DUP_LINE |
Creates a copy of the current line and overwrites the next line with the duplicate. |
EURO |
Inserts the Euro character |
END_FIELD |
Moves the cursor to the end of the current field. |
END_PAGE |
Moves the cursor to the end of the current page. |
F1 - F22 |
Function keys F1-F22 |
HOME |
Moves the cursor to beginning of current page (row 1, col 1) |
INSERT |
Toggles insert/overwrite mode. |
INSERT_IN_LINE |
Inserts space at cursor position and shifts the remaining characters on the line to the right. The character in the far right column on the line is discarded. |
INSERT_IN_PAGE |
Inserts space at cursor position and shifts the remaining characters on the page to the right. The character in the far right column on each line is discarded. |
INSERT_LINE |
Inserts a new line at the cursor row and shifts the remaining lines down. The last row on the page is discarded. |
LEFT_ARROW |
Moves the cursor one position to the left wrapping if necessary. |
LOCATE_FCC |
Finds the next field control character on the screen. |
MSG_WAIT |
Retrieves messages queued to the terminal. |
RETURN |
Carriage return |
RIGHT_ARROW |
Moves the cursor one position to the right, wrapping if necessary. |
SOE |
Inserts the Start of Entry character |
START_OF_FIELD |
Moves the cursor to the beginning of the field. |
START_OF_LINE |
Moves the cursor to column 1 of current line. |
TAB |
Moves the cursor to the next tab position of the screen. |
TOGGLE_COL_SEP |
Toggles the column separator attribute. |
TOGGLE_STRIKE_THRU |
Toggles the strike-through attribute on the current data cell. |
TOGGLE_UNDERLINE |
Toggles the underline attribute on the current data cell. |
TRANSMIT |
Transmits changed field data to the host. |
UNLOCK |
Sends the UNLOCK key to the host. |
UP |
Moves the cursor up one row, wrapping if necessary. |