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 a screen saver

Author
Message
Cros Jovil
21
Years of Service
User Offline
Joined: 27th Jan 2004
Location:
Posted: 28th Jan 2004 03:06
I'm a novice programmer and I want to turn a program that changes colours and makes circles and stuff like that can i turn that into a screen saver and how.
Dave J
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Feb 2003
Location: Secret Military Pub, Down Under
Posted: 28th Jan 2004 04:41
Rename the .exe extension to .src, then you can right click it and use "Install Screensaver" and it will become your default screensaver!


"Computers are useless they can only give you answers."
Krush
21
Years of Service
User Offline
Joined: 22nd Dec 2003
Location: New York City
Posted: 28th Jan 2004 09:24
He means .scr. not .src...
Dave J
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Feb 2003
Location: Secret Military Pub, Down Under
Posted: 28th Jan 2004 09:53
'Twas a typo.


"Computers are useless they can only give you answers."
Genesis Rage
21
Years of Service
User Offline
Joined: 5th Oct 2003
Location:
Posted: 28th Jan 2004 10:08
take a look in the codebase... i remember seeing some snipet in there that you can actually set up the little preview window that shows in the display properties... and also can set it up if there is any configurations...

havent tried it myself yet... but the code looks fairly straight-forward and easy to understand what is going on

here is the link... it is for DBC... but should be able to convert it over to DBP commands fairly easy
http://developer.thegamecreators.com/?m=codebase_view&i=f77a47ddb2281f7c30b2145cfc95730b

zircher
22
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 28th Jan 2004 17:53 Edited at: 28th Jan 2004 17:55
Quote: "
"


The example mentioned has a similar problem that I ran into when I created my screen saver shell. What to do with the preview window pointer? The code base entry does essentially nothing with the /P parameter. In mine, I create a stand alone preview window. Does anyone know how to use this pointer in DBP to create a real preview mode?
--
TAZ

CloseToPerfect
22
Years of Service
User Offline
Joined: 20th Dec 2002
Location: United States
Posted: 28th Jan 2004 19:42
I never have been able to get a dbp program to work as a screen saver with the preview.

RGT may be gone but the best DBP forum is still alive and kicking, check it out.
http://www.dannywartnaby.co.uk/rgt/
zircher
22
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 28th Jan 2004 20:27 Edited at: 29th Jan 2004 02:26
Faking a preview mode is easy enough, I just create a 160x120 window and run the screen saver in it. Taking that handle and doing something meaningful like assigning a bitmap to it is just over the horizon of my ability. Sounds like a job for a DLL to make that connection. Any takers?
--
TAZ

[edit for typos]

Cros Jovil
21
Years of Service
User Offline
Joined: 27th Jan 2004
Location:
Posted: 29th Jan 2004 01:46
Only problem with changing the .exe to .scr you cant do it in xp it just becomes name.scr.exe
zircher
22
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 29th Jan 2004 02:28
I'll refute that on several levels. I change the name in the DBP editor and it works just fine. I also have my explorer set so that extensions are not hidden and I can easily change them via rename.
--
TAZ

Wik
22
Years of Service
User Offline
Joined: 21st May 2003
Location: CT, United States
Posted: 29th Jan 2004 04:05
open explorer go under tools and click folder options, go under the second tab and uncheck "hide extentions" just below the show hidden folders thing which has sub options so its easy to find.


Dave J
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Feb 2003
Location: Secret Military Pub, Down Under
Posted: 29th Jan 2004 08:10
Ditto.


"Computers are useless they can only give you answers."
Kangaroo2 BETA2
21
Years of Service
User Offline
Joined: 23rd Aug 2003
Location: Somerset / UK
Posted: 30th Jan 2004 20:58
or open a DOS prompt and type

REN c:\yourdirectory\yourfile.exe c:\yourdirectory\yourfile.scr

Yay MS-DOS

Quikly Studio Pro. Soon. Honest.

Login to post a reply

Server time is: 2025-05-29 03:57:20
Your offset time is: 2025-05-29 03:57:20