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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Virtual Key not working????

Status
Not open for further replies.

sci72

Technical User
May 29, 2004
28
US
I have a script I am trying to develop to do work in Meridian Mail where I use the down arrow to navigate. However when I use the vkey 0x28 which is suppose to be the down arrow it doesn't work. Is it possible that my Dell laptop has different addresses for the arrow keys? If so how do I find out what it should be?
I did a little test where I use the key mapping editor to assign the same value that appears on the down arrow to the F12 key, I then had my script use the F12 key and I got my desired result and it worked. The thing is I don't want to have to have everyone who uses the script need to change their key mapping.

Any ideas?
 
I take it when you press the down arrow the escape sequence is sent correctly? If so, are you pressing the down arrow on the numeric keypad, or the separate arrow keys, usually just right of the space bar?


 
Hey knob, man this forum would be lost without you. When I manually press the down arrow key to the right of my space bar the function works correctly, and it works when I press the remapped F12 key. So obviously the command string for the key value functions correctly it's just that the 0x28 is not accessing the correct key. Can you think of any way to capture a key press and see what value it should be?
 
I played around with this a little bit last night and what I think is happening is that the key code for the down arrow is being sent, instead of the key mapping assigned to the down arrow. Instead of using sendkey or sendvkey, try using transmit "value", where value is replaced by what the down arrow is currently mapped to in Procomm.


 
I'll give that a try and let you know, thanks for the effort.
 
I have run into my arrow keys sending an escape sequence. In my case I discovered it was related to the text pace settings. Some of the meridian scripts people have written have "set txpace=XX". When the script is done running your TX pace settings stay changed.

If you go to Options>system options>system options> check "set Transmit pacing". If you find the value greater then 0 this will more then likely be your fix your problem.

Ron
 
wasn't in the office today to test, however I did check my options settings, thanks for the idea M1PBXtech, although mine is set to 0. I'll be in the office tomorrow and can try to transmit the the down arrow key value.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top