?
Solved

Screensaver Problem

Posted on 2003-03-29
10
Medium Priority
?
205 Views
Last Modified: 2010-04-03
My screensaver runs an external application, then closes.
On WinXP the external app closes also, immediately after the scr closes!
This does not happen if you click on the scr file directly, or from the
"Display Properties" box, but only when it comes up normally, when it is the default scr.
Doesn't matter what the other app is.
Why? And how can I get around it?
0
Comment
Question by:Klooge
9 Comments
 
LVL 3

Expert Comment

by:LukA_YJK
ID: 8232989
Hey, are you doing something bad ;) How your screensaver calls this external application?
0
 

Author Comment

by:Klooge
ID: 8234473

LukA_YJK:
"Hey, are you doing something bad ;) How your screensaver calls this external application?"

When the scr ends, a "Nagbox" pops up with a link button that brings up my website by calling ShellExecute.
0
 

Author Comment

by:Klooge
ID: 8242409
I said in my last comment:
"When the scr ends, a "Nagbox" pops up with a link button that brings up my website by calling ShellExecute."

Like so:
ShellExecute(Handle, 'Open', sMyUrl, '', '', 3;

And, as I said, when you click on it, (unless the browser was already running), when you close the Nagbox, the browser closes too!

 
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 2

Expert Comment

by:udosoft
ID: 8666721
I think, the problem is, that windows close the screensever your ap too.
try use winexec
Winexec('C:\Program Files\Internet Explorer\iexplore.exe "urltoopen"',1);
limitations....the Ie must be there
0
 
LVL 2

Expert Comment

by:udosoft
ID: 8666751
Or your must start the browser before Nagbox!
I think Your app closes before can start browser.
0
 

Author Comment

by:Klooge
ID: 8670890
udusoft:
  Thanx for the input, but WinExec doesn't work either.
Also, it doesn't matter if i start the browser before or after the nagbox, when the user
closes the nagbox, the browser closes also.
I have solved the problem after a fashion by running the browser INSIDE the nagbox.
But i'll leave the question open for a while in case someone can come up with a more
elegant solution.
0
 
LVL 3

Expert Comment

by:MrMidi
ID: 9172091
Have you tried using 0 for Handle, so the app doesn't have a parent process? Like this:

ShellExecute(0, 'Open', sMyUrl, '', '', 3);
0
 

Author Comment

by:Klooge
ID: 9178346
Hi MrMidi:
Yes.
No luck.
Thanx
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 10800722
PAQed, with points refunded (500)

modulo
Community Support Moderator
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

579 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question