Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 269
  • Last Modified:

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
0
Iamien
Asked:
Iamien
  • 3
  • 2
1 Solution
 
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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
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
 
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

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now