This is the code we use. We have not run into any issues.
Sub FunctionKey(skey As String)
Select Case UCase(skey)
Case Is = "F1"
Key Chr(27) & "[11{~}"
Case Is = "F2"
Key Chr(27) & "[12{~}"
Case Is = "F3"
Key Chr(27) & "[13{~}"
Case Is = "F4"
Key Chr(27) & "[14{~}"
Case Is = "F5"
Key Chr(27) & "[15{~}"
Case Is = "F6"
Key Chr(27) & "[17{~}"
Case Is = "F7"
Key Chr(27) & "[18{~}"
Case Is = "F8"
Key Chr(27) & "[19{~}"
Case Is = "F9"
Key Chr(27) & "[20{~}"
Case Is = "F10"
Key Chr(27) & "[21{~}"
Case Is = "DOWN"
Key Chr(27) & "[B"
Case Is = "LEFT"
Key Chr(27) & "[D"
Case Is = "ESC"
Key Chr(27)
End Select
End Sub
From: [email protected] [mailto:[email protected]]
Sent: Monday, November 02, 2009 11:21 AM
To: [email protected]
Subject: [talkbws] Sending Arrow Keys to Emulator Window (IDXTerm) Issue
Good Morning, All - I've ran into an issue in trying to send arrow keys to an
Emulator window, specifically the IDXTerm emulator. When I key in {Up} or
{Down} while connected to the IDXTerm Server, it keys that exact text ("{Up}")
into the field instead of actually moving the cursor up. This was happening
with the function keys as well ("{F7"), so to fix the function key issue,
whenever I needed to send those, I connected to the emulator through a windows
connection, sent the function key, and then reconnected to the IDXTerm server
connection. This work-around works fine for the function keys, however, it
still doesn't work with the up and down arrows. When sending {Up} through a
windows connection, it just keys in the number 8 (the keypad # corresponding to
the up arrow), and sending {Down} keys in the number 2 (again, the keypad #
corresponding to the down arrow). I tried programmatically turning off the num
locks key, but that didn't help.
Has anyone else run into this issue and found a workaround? Any suggestions
even if you haven't seen this?
Appreciate your time, and enjoy your day.
Ryan Rush * OBS Development Specialist * Providence Health & Services
Providence Office Park * (503) 215-4441
________________________________
This message is intended for the sole use of the addressee, and may contain
information that is privileged, confidential and exempt from disclosure under
applicable law. If you are not the addressee you are hereby notified that you
may not use, copy, disclose, or distribute to anyone the message or any
information contained in the message. If you have received this message in
error, please immediately advise the sender by reply email and delete this
message.
---
To post a message to this list, send mail to: [email protected]
You are currently subscribed as: [email protected]
Unsubscribe in the customer center on our website:
http://www.bostonworkstation.com/customer_center/virtual_user_group_talk.aspx
________________________________
"CONFIDENTIALITY NOTICE: If you have received this e-mail in error, please
immediately notify the sender by e-mail at the address shown. This e-mail
transmission may contain confidential information. The information is intended
only for the use of the individual(s) or entity to whom it is addressed. Any
disclosure, distribution, copying or use of the information by others is
strictly prohibited. Please delete it from your files if you are not the
intended recipient. Thank you for your compliance"
---
To post a message to this list, send mail to: [email protected]
You are currently subscribed as: [email protected]
Unsubscribe in the customer center on our website:
http://www.bostonworkstation.com/customer_center/virtual_user_group_talk.aspx