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

Transmitting an "Up Arrow" and "F1" values?

Status
Not open for further replies.

shibby

Programmer
Oct 17, 2002
9
US
Hello all.

Once again I find myself writing an Aspect script, this is becoming a recurring theme, it seems!

Anyway, I have looked through the Procomm documentation and I have not found a way to transmit the values for an up arrrow or function 1 keys.

I am assuming this is possible using some kind of escape sequence. Anyone know?

Thanks!

John
 
Hello,

The UP ARROW is 0x26
The F1 Key is 0x70

You'll want to use the Sendkey command to send these values.

Hank camphm@bellsouth.net
 
Hi Hank, thanks for the swift reply.

I have tried to put

sendkey 0x26

and...

sendkey 0x70

into my script, but it chokes... I have also tried with single quotes, double quotes, etc, and it still doesn't know what to make of it. Any ideas?
 
Hello

You will want to look at the Sendkey in the Help Pages for an Example. I don't use this in my applications but it should work. Look at some of the examples at:


There should be some examples there. You may have to use the ALT parameter in the Sendkey Command: Sendkey ALT 0x70

Hank camphm@bellsouth.net
 
For the up arrow, try using sendvkey 2086 instead of sendvkey 0x26. I ran into a problem with the values Procomm was transmitting for the function keys. has the correct values for the other arrow keys if you ever use those keys in the future.

0x70 is the correct value to use for the F1 key, but you will need to use the sendvkey command as Hank mentioned.
aspect@aspectscripting.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top