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 / How to make screensaver tab to work ?

Author
Message
Mikko
23
Years of Service
User Offline
Joined: 25th Sep 2002
Location: Finland
Posted: 17th May 2003 00:53
I know how to make screensaver.

But how can I preview the screensaver in
that monitor in the "Display-properties screensaver-TAB"

When i use cl$="/P" switch ,the program doesn't go to
right place .

Should the resolution/depth be exact something
or what is the matter?

Can anyone help?
Kale
23
Years of Service
User Offline
Joined: 8th Sep 2002
Location: United Kingdom
Posted: 17th May 2003 03:19
when the preview command line is passed to your .exe it also contains the handle of the preview window, like this:

/P:165468

you must parse this and use the number after the ':' as a handle to use as a parent for your .exe's child window (preview) (you can't do this in DBPro)

Also to correctly handle a screensaver you should check for multiple instances of your app running and deny others from starting using a mutex. (you can't do this in DBPro)

psuedo code:


Its alot more complicated than simply renaming your .exe to .src

What the flame does not consume, consumes the flame.
------------------------------------------------------------------------
AMD XP2100+, Geforce4Ti 4400, 512Mb DDR, Abit KX7, WinXP Home
Mikko
23
Years of Service
User Offline
Joined: 25th Sep 2002
Location: Finland
Posted: 17th May 2003 13:06
Ok!
So, maybe they should replace the:

"Create stunning 3D screensavers"
to
"Allmost create stunning 3D screensavers"

Maybe someone could make little external program with C
,that we could execute from the screensaver
and pass that handle to it.

That program then would appear in the child window.
Program could for example show one picture that we could
define.

Mikko
David T
Retired Moderator
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 17th May 2003 13:21 Edited at: 17th May 2003 13:21
You can create stunning screensavers, just not the config screens

You are the th person to view this signature.
Programmers don't die, they just Gosub without return....
Mikko
23
Years of Service
User Offline
Joined: 25th Sep 2002
Location: Finland
Posted: 17th May 2003 13:38
Yes! I did that old Amiga Boing -demo as a screensaver and It would have been fine to have it "correct".
Mikko

Login to post a reply

Server time is: 2026-07-11 12:03:18
Your offset time is: 2026-07-11 12:03:18