A1VBCode Forums

Hooking Keyboard ViA Windows API in Delphi


http://www.a1vbcode.com/vbforums/Topic28291.aspx

By hossain - 10/15/2009

Hi guys



Could anyone point me to the direction of some Tutorials on how to Hook the keyboard usings the windows PAI to capture keystrokes,

I want to enable my App to Bring itself too top if certain key combo is pressed, mainly because i want to give the option for my application to hide when user click Hide button. But i have no real way of havign it charm Form1.hide;

to

Form1.show; unless i can moniter all Keyboard strokes.

I know its posible and have been told not too hard. and i know that it wil lrequire building a DLL, buti just dont know how to code it Thanks











































































































-----------------

définition de développement durable
By vb5prgrmr - 10/15/2009

Time to use your friends (yahoo, google, ask, answers, bing) as there are several examples out there on hooking the keyboard.

 

 

 

Good Luck