Disable the "special" keys

Please discuss general Delphi programming topics here.

Disable the "special" keys

Postby Codius » August 10th, 2006, 3:20 am

I'm looking for a way to disable the special keys on a keyboard, such as ALT+F4, ALT+TAB, CTRL+ESC, WindowsKey, AppKey and so on..
I've been told that dWinLock is the best and easiest way to do this, but I don't want to use someone elses DLL file :/
I've been looking a little at keyboard hooking, trying to just recieve the key and don't send it, but it doesn't work :(

Any help/code will be helpful.
Thanks in advance, Codius
I've never let my schooling interfere with my education.
Codius
Active Member
Active Member
 
Posts: 17
Joined: June 6th, 2006, 12:55 pm
Location: Sweden

Postby Johnny_Bit » August 10th, 2006, 8:48 am

you don't need such stuff like extarnal dll's, simply use winapi keyboardhook (more on msdn). it's few lines of code and it's simple like hello world
Johnny_Bit
VIP Member
VIP Member
 
Posts: 455
Joined: June 15th, 2003, 9:56 am


Return to Delphi Programming

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot] and 1 guest

cron