Re: How to launch a random screensaver from a randomizer screensaver?
From: Severian (severian_at_chlamydia-is-not-a-flower.com)
Date: 02/22/05
- Next message: Stewart Gordon: "Talking to the Find/Replace common dialogs - portable?"
- Previous message: Kevin Cochran: "Re: Sound Schemes"
- In reply to: WeiserWare: "How to launch a random screensaver from a randomizer screensaver?"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 22 Feb 2005 04:54:33 GMT
On 18 Feb 2005 21:12:32 -0800, weiserware@yahoo.com (WeiserWare)
wrote:
>Hi,
>
>I want to write a screensaver that when it launches, runs a randomly
>selected screensaver (ie. a randomizer). I have got such a
>screensaver working which works fine when run manually, but when the
>screensaver is invoked by Windows after a period of inactivity, the
>random screensaver is not shown (on Windows XP). I have read lots of
>stuff about secure desktops and jobs that terminate their child
>processes when they terminate, but haven't found an answer to this
>problem.
>
>I am using CreateProcess to launch the screensaver (when I receive a
>WM_CREATE message), then terminating the launcher screensaver with
>PostQuitMessage(0). If I don't terminate the launcher screensaver,
>then the random screensaver doesn't appear, even if run manually.
>
>I have tried different creation flags in CreateProcess but none make
>any difference.
>
>I know this is possible, becuase there are screensaver randomizer
>products out there that work. Does anybody know the trick to writing a
>screensaver randomizer?
My guess would be to let your randomizer keep running, but repost all
SS messages to the other screen saver. There may be other gotchas,
though.
-- Sev -- Sev
- Next message: Stewart Gordon: "Talking to the Find/Replace common dialogs - portable?"
- Previous message: Kevin Cochran: "Re: Sound Schemes"
- In reply to: WeiserWare: "How to launch a random screensaver from a randomizer screensaver?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|