INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

keysend

keysend

(OP)
Hello,

Keysend(chr(0)+chr(60)) correspond to F1 wich key code is -1. I would like to know why. Is there some logical formula to go from chr(0)+chr(60) to -1 ?

Regards,

mathmax

RE: keysend

mathmax,

Actually F1 = 28 and F2 = -1.  Not sure where the "0" & "60" are coming into play.  Norton Guides will have the break down on the keys and there values if you want to check them out.

Jim C.
 

RE: keysend

(OP)
I cannot see any explanation in the Norton Guides. In which .ng file should I look ?

RE: keysend

mathmax,

Sorry I thought it was in there.  I have a few books and it's an appendix in the back of the books.   I thought that the Guides had all of that stuff as well.

The normal value for F1 is 28 as I mentioned and F2 is -1.  But these can be reset within your program.  So they could actually be any value for you're purpose.

Jim C.
 

RE: keysend

KeySend is a CA-Tools 3 function, that is based on Windows Keyboard Scancodes, not on the terrible Nantucket-designed table of Keyboard codes, which have never been very complete or comprehensible in the first place.

The scancodes you can use with KeySend are documented in ctscan.ch, (in your Clipper include directory) and keyscan also has an extra optional parameter lAdditiveMode, allowing to put several keystrokes into the buffer when true. The boolean returnvalue of this function indicates success or failure when putting the character into the buffer.

If you had added #include 'ctscan.ch' to your code you could have written KeySend(KS_F2) (KS_F2 is defined as chr(0)+chr(60) )

HTH
TonHu

RE: keysend

Tonhu,

Thanks for the info., never used Scancodes.

Jim C.
 

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close