Win32 globalhook keylogger, why are the number keys not consecutive?

  • Thread starter NotASmurf
  • Start date
I'm using a globalhook into the keyboard for key capture, if I look up the ascii values for the keys 1-9, I see 48-57.
Now the actual logger shows

480
491
502
513
524
535
546
557
568

Sure, maybe it's ascii, maybe its because they're not numpad keys, but regardless, why are the numbers not consecutive?

Any help appreciated.
 

DavidSnider

Gold Member
454
107
Are you sure you're printing them out right? Is it possible you're printing out the value concatenated with the array index or something?
 
nope, if I type a, it prints 65, so that's fine (although it's weird that it uses uppercase notation for lowercase charecters), although left and right shift are `160 and 161 respectively. When it should be 15 in ascii.
 

Want to reply to this thread?

"Win32 globalhook keylogger, why are the number keys not consecutive?" You must log in or register to reply here.

Related Threads for: Win32 globalhook keylogger, why are the number keys not consecutive?

Replies
8
Views
3K
Replies
1
Views
1K
  • Posted
Replies
1
Views
804
  • Posted
Replies
1
Views
6K
Replies
4
Views
3K

Physics Forums Values

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving
Top