?
Solved

Screensaver Problem

Posted on 2003-03-29
10
Medium Priority
?
204 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
10 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
Independent Software Vendors: 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

801 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