Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Technical question: Screensavers

Author
Message
Andy Igoe
23
Years of Service
User Offline
Joined: 6th Oct 2002
Location: United Kingdom
Posted: 14th Jan 2003 22:09
I don't know if anyone else has encountered a problem similiar to this but i've just written my first screen saver, it executes fine as a program but when windows launches it as the system screen saver the program is loaded repeatedly.

Is there a way to prevent this or a .dll call to detect if another copy of the program is already running?

I'd be grateful for the help as i'm stuck.
Pneumatic of Xev@EQ
God made the world in 7 days, but we're still waiting for the patch.
Net Commander
23
Years of Service
User Offline
Joined: 12th Sep 2002
Location: United Kingdom
Posted: 14th Jan 2003 23:09
You could take a look at the screen saver code I wrote:
http://www.darkbasicpro.com/apollo/view.php?t=421&b=6

The comments should explain it all.

DJ

Real programmers don't document. If it was hard to write, it should be hard to understand.
The Wendigo
23
Years of Service
User Offline
Joined: 13th Sep 2002
Location: A hole near the base of a tree in the US
Posted: 15th Jan 2003 05:49
That should do it! I've also been thinking of making a universal screensaver program in Visual BASIC 6.0 (which has an app instance checker). That might get rid of any possable screen flickering that might result from DB.

1.00 GHZ processor, 256 MB RAM, GeForce 3 64MB, SB Live!, 8 cans of soda per day
Andy Igoe
23
Years of Service
User Offline
Joined: 6th Oct 2002
Location: United Kingdom
Posted: 15th Jan 2003 09:45
Thankyou DoomJudge

Pneumatic of Xev@EQ
God made the world in 7 days, but we're still waiting for the patch.

Login to post a reply

Server time is: 2026-06-11 20:57:40
Your offset time is: 2026-06-11 20:57:40