Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to send <END> key to attachmate?

Status
Not open for further replies.

Sagit

Technical User
Dec 19, 2007
6
GB
Hi Lads,

Here is a problem for me:
I want to send "end" keystroke, and command line suppose to look like that:

Sess0.Screen.Sendkeys("<end>")

but as a result I get on screen in my field:

<end>

"<tab>" works fine, Attachmate moves to another field and "<enter>" execute action, another strings as well, but I have no idea how to send "end".

Does it case sensitive or so?
I tried to use help file, but in section about sending keystrokes syntax is as follow: {end}, {enter} etc.
Does anyone know how to deal with it?


regards, Sagit
 
If you are trying to move the cursor to the end of the current field, try:

Sess0.Screen.Sendkeys("<EndOfField>")

We have our End key set to execute <EraseEOF> which erases to the end of the current field the cursor is located in but use Ctrl + End for <EndOfField>.

Does this help?
 
Hi streetprog,

Your answer close a subject, nothing to add, nothing to take away. Thank you very much, this is a great help.

merry christmas, Sagit
 
A few more from the help file.

Use the table below to identify the mnemonic that represents a particular 3270 function key. When you specify a mnemonic, enclose it in angle brackets ( < > ). For example, in the following statement, the Screen object uses the SendKeys method to transmit a Command 1 function to the host.

Screen.SendKeys <Pf1>

3270 Function Key Mnemonic
Attention Attn
Backspace BackSpace
Backtab (Left Tab) BackTab
Caps Lock CapsLock
Clear Clear
Cursor Down Down
Cursor Left Left
Cursor Left 2 Columns Left2
Cursor Right Right
Cursor Right 2 Columns Right2
Cursor Select CursorSelect
Cursor Up Up
Delete Char Delete
Duplicate Dup
Enter Enter
Erase EOF EraseEOF
Erase Input EraseInput
FieldMark FieldMark
Home Home
Insert Insert
Left Tab (Back Tab) BackTab
New Line NewLine
Pen Select PenSel
Print Print
Reset Reset
Shift ShiftOn
System Request SysReq
Tab (Right Tab) Tab

Copyright 1996 - 2000, Attachmate Corporation. All rights reserved.

[small]Sometimes you gotta leave your zone of safety. You have to manufacture Inspirado. You gotta get out of the apartment. You've got to run with the wolves. You've got to dive into the ocean and fight with the sharks. Or just treat yourself to a delicious hot fudge sundae........ with nuts. - Jack Black[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top