Get Keys

I need to make a program that will record all keys typed, even when it does not have the focus.  
I need source code. . . I have do idea where to start.

thx.
LVL 2
winwizAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Erick37Commented:
You need to install a system hook to intercept all keyboard messages for all windows on a system.  VB cannot do this alone, you need a hook procedure located in a standard Windows DLL (not a VB OLE DLL).  This is not a trivial task.

The following site contains information on how to do this along with supporting DLLs:

http://vbaccelerator.com/codelib/hook/vbalhook.htm
0
AnswerTheManCommented:
hehehe...
that link will enable you capturing only keyboard hits in VB application ONLY.
0
winwizAuthor Commented:
I bet you can use those hooks, but that site doesn't explain how to get all keys typed regardless if the window has focus.  If we can use the hooks for it, please give code and you will get the points.
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

AnswerTheManCommented:
if you want - post your email here, and i'll send you within 24 houers  a complete set of HOOK (C written DLL), vb sample of using it, and thc C source files.
0
winwizAuthor Commented:
Allright!!!  I would love it!  As soon as I receive the email I'll award you the points!

my email: jwaters@ideal-edge.com
0
AnswerTheManCommented:
have just sent it.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
winwizAuthor Commented:
GREAT!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.