I have written a screensaver that will access a website. To simply exit the screensaver you would hit any key or click the left mouse button. To exit the screensaver and go to the website you need to click the right mouse button.
Here is the situation:
When the right mouse button is clicked I ShellExecute to the web address. Once the default browser starts the screensaver unloads.
Here is the problem:
On Win Me and earlier - this works great.
On Win XP - when the screensaver unloads so does the browser, so you never get to the website.
Here is my exit code:
Dim strURL As String
Dim Success As Long
If bWebFlag Then 'Right mouse button was clicked
strURL = " Success = ShellExecute(0&, vbNullString, strURL, vbNullString, "C:\", SW_SHOWNORMAL)
End If
Unload frmSaver
I guess my question is - what do I need to change so the screensaver can close but the browser will remain active under Win XP? Any suggestions would be greatly appreciated.
Here is the situation:
When the right mouse button is clicked I ShellExecute to the web address. Once the default browser starts the screensaver unloads.
Here is the problem:
On Win Me and earlier - this works great.
On Win XP - when the screensaver unloads so does the browser, so you never get to the website.
Here is my exit code:
Dim strURL As String
Dim Success As Long
If bWebFlag Then 'Right mouse button was clicked
strURL = " Success = ShellExecute(0&, vbNullString, strURL, vbNullString, "C:\", SW_SHOWNORMAL)
End If
Unload frmSaver
I guess my question is - what do I need to change so the screensaver can close but the browser will remain active under Win XP? Any suggestions would be greatly appreciated.