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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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
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
ASKER
It's ok, I've been working on another project.
Anyway, It works perfectly! Thanx!
Anyway, It works perfectly! Thanx!
ASKER
[Error] TheHook.dpr(209): Undeclared identifer: 'StartKeyBoardHook'
[Error] TheHook.dpr(210): Undeclared identifer: 'StopKeyBoardHook'
And I really don't understand why.