Screensaver closing issue!!
Posted on 2003-03-18
We have created a screensaver, which upon mouse move shows some options to the user and launches a URL in the available browser based on user selection. Once the browser is opened, the screensaver should close leaving browser open.
This was created in visual basic using ShellExecute to open browser.
When I run the screensaver manually (by double clicking the scr file), the above interaction works perfectly.
However, when I allow the screensaver to comeup by itself after its due wait time specified, the following happens:
- Screensaver is launched
- Upon mousemove, the user is shown URL options
- User selects a specific URL
- Browser is opened with the given URL. SO FAR SO GOOD
However, when screensaver closes and along with it the BROWSER IS CLOSED AS WELL.
The hunch is that whenever the windows screensaver process is launched by windows, all applications within it (in our case the screensaver and potentially the browser instance that we opened) become its children. When the application is closed, it tells windows to close its screensaver process. When Windows fires the close screensaver, our browser also gets close.
Please confirm if my above theory makes sense. If yes, what could be a good workaround. Is there a way to tell screensaver process to not bother closing itself since we are taking care of it??
This is a very high priority project for us, please help.