Показать сообщение отдельно
  #5  
Старый 27.11.2009, 03:29
lmikle lmikle вне форума
Модератор
 
Регистрация: 17.04.2008
Сообщения: 8,096
Версия Delphi: 7, XE3, 10.2
Репутация: 49089
По умолчанию

Еще туда же:

Цитата:
If you insert next lines at unit and get
function KeyboardProc free from any text your's program will not answer to keyboard...
initialization
begin
CurrKeyEater:=nil;
myhook:= SetWindowsHookEx(WH_KEYBOARD,@KeyboardProc,0,GetCu rrentThreadId);
end;
finalization
begin
UnhookWindowsHookEx(myhook);
CurrKeyEater:=nil;
end;

If you need to block ALL applications - use next format
SetWindowsHookEx(WH_KEYBOARD,@KeyboardProc,0,0);
but function KeyboardProc OUGHT be at DLL!!!

So Only Mouse will work...
Ответить с цитированием