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 / Screen Savers. Bug or the fact that it was written in dbpro

Author
Message
Terabyte
23
Years of Service
User Offline
Joined: 28th Dec 2002
Location: UK
Posted: 5th Oct 2003 02:25
There’s a bug with screen savers. Lets say you’ve made a screen saver its in the windows directory and listed in the drop down box.

If you select the screen saver you wrote or click ok or click apply. You end up executing the screen saver, also if you have it selected and you decide to change, when you open the screen saver tab you end up executing the screen saver as well... I think this maybe to do with the fact that the screen saver is trying to be previewed in the little monitor in the tab. and maybe it cant be previewed there for some strange reason so its being executed instead. Is there any way of fixing this because it’s really annoying! Hey! have you noticed that this post consists of solid text with no emotions or spelling mistakes.

The following threads and their accompanying sound tracks are protected by copyright and any broadcast public diffusion, copying and edditing are etc... etc.. you may not complain about my Typo's
spooky
23
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 5th Oct 2003 02:37
No bug. It is as you say trying to preview screensaver in little window. The best you can do is detect this and quit screensaver.

Windows simply sends parameters to your .scr file. It's up to you to act on them:



If your mansion house needs haunting, just call Rentaghost!
Thialfi
23
Years of Service
User Offline
Joined: 19th Mar 2003
Location: Asgard
Posted: 5th Oct 2003 02:52
Now this might be a bit strange but if you want a configuration dialog for your screen saver, you might want to write a seperate program for it. Write a simple program in a non-DarkBASIC language like C++, Visual Basic, or Delphi. Have the program that displays the dialog box be the actual screen saver (having the .scr extension). When it's run, have it check for what commands are in the command line. If the command line indicates a need for to configure the screen saver, have it display a dialog box and save the options the user selects to an INI file. If the command line indicates /p or /s, have the program run the DarkBASIC part of the screen saver (execute the DarkBASIC program you wrote). Not a perfect solution but it'd allow you to have configuration options at least.

By Thor's hammer
By the sons of Odin
I shall avenge thee
Terabyte
23
Years of Service
User Offline
Joined: 28th Dec 2002
Location: UK
Posted: 5th Oct 2003 15:48
soz... what the hell are you guys going on about

The following threads and their accompanying sound tracks are protected by copyright and any broadcast public diffusion, copying and edditing are etc... etc.. you may not complain about my Typo's
spooky
23
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 5th Oct 2003 16:51
Screensavers are usually one .scr file

Windows passes different command-line parameters depending on what action you take in screensaver tab in windows. You can then act on this and take approprate action. The command cl$() in DB tells you these hidden parameters.

/p = you clicked on preview screensaver
/c = you clicked settings button
/p 123 = screensaver tries to preview in little window with given hande 123. DB can't do this though.
/s = screensaver running normally
/a = change password (used in some versions of windows)

Your best bet is to write a program that simply outputs cl$() to screen and you can see it in action.

If your mansion house needs haunting, just call Rentaghost!
spooky
23
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 5th Oct 2003 16:55
What Thialfi is going on about is a workaround to stop windows trying to load your big screensaver and trying to preview it in little monitor box.

The idea is to have a dummy control program written in vb or something that is the control program. It only then runs your screensaver in preview mode.

This is how colorarts did it in DB (http://www.colorarts.de/screensaver/)

If your mansion house needs haunting, just call Rentaghost!
Terabyte
23
Years of Service
User Offline
Joined: 28th Dec 2002
Location: UK
Posted: 5th Oct 2003 17:25
oh ok....

The following threads and their accompanying sound tracks are protected by copyright and any broadcast public diffusion, copying and edditing are etc... etc.. you may not complain about my Typo's

Login to post a reply

Server time is: 2026-07-25 09:58:53
Your offset time is: 2026-07-25 09:58:53