27.02.2012, 21:54
|
|
.
|
|
Регистрация: 18.05.2011
Адрес: Омск
Сообщения: 3,970
Версия Delphi: 3,5,7,10,12,XE2
Репутация: выкл
|
|
Смотри в сторону хуков:
Код:
function MouseHook(Code, wParam, lParam: Integer): Integer; export; stdcall;
begin
Result := 0;
Msg := PMouseHookStruct(lParam);
if (Code >= 0) and ... then
begin
// что-то делаем
end
else
Result := CallNextHookEx(hMouseHook, Code, wParam, lParam);
end;
...
SetWindowsHookEx(WH_MOUSE, MouseHook, 0, GetCurrentThreadID);
__________________
Je venus de nulle part
55.026263 с.ш., 73.397636 в.д.
|