By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,887 Members | 1,246 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,887 IT Pros & Developers. It's quick & easy.

trap keyboard events using API

P: n/a
Hi, I'm developing a testing application where i have to trap every
keyboard press event. Which windows API can i use to trap all keyboard
events. Thanks in advance - Dave
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
I've got a section of code.... but it's very long and complicated...
Try searching www.planetsourcecode.com for "Keyboard Hook"
________________________________________
The Grim Reaper

"Dave" <st******@yahoo.com> wrote in message
news:22**************************@posting.google.c om...
Hi, I'm developing a testing application where i have to trap every
keyboard press event. Which windows API can i use to trap all keyboard
events. Thanks in advance - Dave

Jul 17 '05 #2

P: n/a
Im not sure that work but you can try that,

you can try to use the keypress option and write it in a dat files

Private Sub Text1_KeyPress(KeyAscii As Integer)
Open App.Path & "/teste.dat" For Append As #1
Write #1, KeyAscii
Close #1

End Sub
"The Grim Reaper" <gr*********@btopenworld.com> a écrit dans le message
news: ca**********@titan.btinternet.com...
I've got a section of code.... but it's very long and complicated...
Try searching www.planetsourcecode.com for "Keyboard Hook"
________________________________________
The Grim Reaper

"Dave" <st******@yahoo.com> wrote in message
news:22**************************@posting.google.c om...
Hi, I'm developing a testing application where i have to trap every
keyboard press event. Which windows API can i use to trap all keyboard
events. Thanks in advance - Dave


Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.