Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting keys pressed..

Status
Not open for further replies.

Sulik

Programmer
Joined
Dec 3, 2001
Messages
9
Location
RU
I want my application to realize which keys have been pressed, before the system gets it.
A very confusing phrase, eh? That's because I don't know English.. ;)
I mean when the user presses, for example, alt+Tab or ctrl+alt+del, my application has to execute the specified handler for these keys, before the system will do it, or let the system execute the default handler.
 
I do not know if it is such simple to catch the CTRL-ALT-DEL key, because this key Combination is handled by a special interuppt.
If you really want to trap this key, iam afraid you have to write an own keyboard driver and include it into your OS.
hnd
hasso55@yahoo.com

 
Hmm... allright.. even if I won't be able to catch the ctrl+alt+del, how can I get the others? :)
 
Greetinx!

Try to use HOOKing engine to trap keypressings before the system seen it.
Happy programming!))
 
This link might be a starting place: . It tells you how to catch the arrow and tab keys. James P. Cottingham

I am the Unknown lead by the Unknowing.
I have done so much with so little
for so long that I am now qualified
to do anything with nothing.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top