You better write a screen server - there are plenty of recipes, including for 
Delphi.
Alternatively, try to find out what events a screen server captures.
(A screen server is just an EXE with the SRC extension, obeying kind of 
Windows' protocol, so Windows can install it and play from the 
Screen/Properties pop-up.)

Horia 

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of 
Michal Wozniak
Sent: Wednesday, January 04, 2006 5:48 PM
To: [email protected]
Subject: Re: [delphi-en] Windows Inactive?

Dnia œroda, 4 stycznia 2006 23:07, Lennie De Villiers napisa³:
>  Hi,

>  How can I check if MS Windows as been inactive for a period of time?
> Similar to the way the screensaver check.

>  Can I capture an event?

>  Using Delphi 6 EE

>  Kind Regards,

>  Lennie De Villiers

No, you can't capture an event - but you can install a hook. Search for "hook" 
on http://delphi.about.com
Of course, you will have to install two hooks: for the keyboard and for the 
mouse.
You can get some code to get yourself started from 
http://sourceforge.net/projects/mikebrother - just download the sourcecode for 
Hooks.dll

Cheers
Mike



-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to