Re: How do I know the screensaver is active?
Re: How do I know the screensaver is active?
- Subject: Re: How do I know the screensaver is active?
- From: Alastair Houghton <email@hidden>
- Date: Sun, 28 Dec 2003 14:08:51 +0000
On 25 Dec 2003, at 09:36, Arthur VIGAN wrote:
>
Hi,
>
>
I would like to know if there is a way to know when the screensaver is
>
launched (maybe a notification?). I have an application that needs
>
lots of CPU, and I would like to launch it only when the user isn't
>
working on his computer, for instance when the screensaver is running.
>
Another way would be to launch the process during idle time. But I do
>
I know when the user last used the mouse of the keyboard?
Why can't you leave it running all the time? Just use setpriority() to
raise the process' priority value... e.g. if you set it to 20, then it
will run whenever there is no other work to do, and not otherwise.
Kind regards,
Alastair.
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.