Hooking Keyboard to detect keystrokes when program not in focus

Could anyone point me to the direction of some Tutorials on how to Hook the keyboard usings the windows API to capture keystrokes,
I would liek to be able to do this while the window is not in focus, to my knowledge his requires creating a DLL and an EXE but i simply have no idea on how to code them.
What i need to be able to do is Hide My window when option is selected in program, which is acomplished easly Via the form1.hide command. and  to show it simply form1.show; but i need to be able to activate Show Via a key combo on the keybord, So if anyone can Lend me a hand you can have my poits hehe :)
Thanks
IamienAsked:
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.

calinutzCommented:
For only 20 pts ???
0
Slick812Commented:
you might look at EE question


http://www.experts-exchange.com/Programming/Programming_Languages/Delphi/Q_20330305.html

which does not use a DLL
ask questions if you need more
0
IamienAuthor Commented:
Ok 50 pointer now.
I would like to know how to do the DLL one. i know its more code and if you need mroe poitns say so but would  love to be able to write on as needed, harder but more power. thanks
0
Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

IamienAuthor Commented:
Sorry let me rephrase that. I'd prefer to  know how make a system keyboard hook, not just a memo keyboard hook :) thanks,
0
Slick812Commented:
?????
The Journal Hook IS A SYSTEM HOOK. . . that Journal hook sends  ANY keyboard activity (asii text only) to your Memo, but it gets other keyboard as well. . . I guess you did not try that code. . . . if you are more interestedin a DLL hook then go to this page


http://www.experts-exchange.com/Programming/Programming_Languages/Delphi/Q_20347433.html
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
IamienAuthor Commented:
Thanks just what i needed. just gotten home compiled and tested :) thanks now to figured it all out. Thanks just what  i needed :) points be yours :)
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
Delphi

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.