Link to home
Start Free TrialLog in
Avatar of Fraction
Fraction

asked on

Global KeyDown MouseMove Events

Hi all!

I'm trying to make a application that will start working if the user is idle for some time (pretty much as a screensaver works (thogh it's not a screensaver I'm making)).

I'm trying to catch messages for KeyDown and MouseMove, and I even tried to install a hook, witch works greate as long as I work on my application form, but what I want is to catch global events.
ASKER CERTIFIED SOLUTION
Avatar of inthe
inthe

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Fraction
Fraction

ASKER

I've tried to compil this library (TheHook) but I got error messages:

[Error] TheHook.dpr(209): Undeclared identifer: 'StartKeyBoardHook'
[Error] TheHook.dpr(210): Undeclared identifer: 'StopKeyBoardHook'

And I really don't understand why.
The lines are in the exports part.
hi,
sorry for late reply i been away for a week .

try removing the stdcall in procedures.
ie:
procedure StartKeyBoardHook;
instead of
procedure StartKeyBoardHook stdcall;

and same for stopkeyboardhook procedure
It's ok, I've been working on another project.
Anyway, It works perfectly! Thanx!