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

  • Thread starter NotASmurf
  • Start date
  • #1
146
2

Main Question or Discussion Point

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.
 

Answers and Replies

  • #2
DavidSnider
Gold Member
487
131
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?
 
  • #3
146
2
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.
 

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

Replies
8
Views
3K
Replies
1
Views
1K
  • Last Post
Replies
1
Views
939
  • Last Post
Replies
1
Views
6K
Replies
4
Views
4K
Replies
4
Views
6K
Replies
3
Views
471
Replies
1
Views
1K
Replies
1
Views
1K
Replies
4
Views
3K
Top