Posts: 2,404
Threads: 153
Joined: Jan 2005
I been forgetting about this too long (made this yesterday)... anyway here is the link to my first screen saver coded in FreeBasic. Thanks to dumbledore and some code he shared on the topic. :wink:
http://members.aol.com/rattrapmax6/download/FBSVR.zip
Contents go in the Windows folder, the screen saver wizard in display properties will find it there.. :wink:
Kevin (
x.t.r.GRAPHICS)
Posts: 525
Threads: 23
Joined: Oct 2004
Excellent Work...it's now my official screensaver ;-). Way to go Ratttrap ;-)..
Posts: 1,439
Threads: 15
Joined: Apr 2003
Hey, pretty doggone neat. Source code?
Or at least a guide to building a screensaver?
Posts: 489
Threads: 34
Joined: Jan 2005
it's really easy, someone posted a while ago on how to do it, but here's the basics:
add something like
Code:
if left$( command$, 2 ) = "/c" then end
if left$( command$, 2 ) = "/p" then end
to the beginning of your program (so it doesn't kill the windoze screensaver dialog), make sure you can exit using the mouse, compile, and rename the exe to a .scr and you're done.
ttp://m0n573r.afraid.org/
Quote:quote: "<+whtiger> you... you don't know which way the earth spins?" ... see... stupidity leads to reverence, reverence to shakiness, shakiness to... the dark side
...phear
Posts: 2,404
Threads: 153
Joined: Jan 2005
lol,.. thanks.. :wink:
I got to expermenting with those parses, you can add this to them like I did so when ppl hit settings it will give them a message,.. or you can make actual settings..:
Code:
if left$( command$, 2 ) = "/c" then
SCREEN 13
PRINT "Sorry, No settings avaliable..."
PRINT
PRINT "Screen Saver Made by Kevin(Rattrapmax6)"
PRINT
PRINT "Press any key to end..."
SLEEP
end
END IF
if left$( command$, 2 ) = "/p" then END
:wink:
Kevin (
x.t.r.GRAPHICS)
Posts: 24
Threads: 3
Joined: Mar 2005
Could someone host that on FileAnchor? I'm on a college network and downloads are blocked from your site.
Posts: 2,404
Threads: 153
Joined: Jan 2005
That's odd... but neway:
Download FBSVR.zip
:wink:
Kevin (
x.t.r.GRAPHICS)
Posts: 1,080
Threads: 87
Joined: Feb 2002
So... to make a screensaver one would just have to
watch out for command$ and rename the exe to scr?
I saw some allegro example some time ago that included winapi
stuff, but maybe that was only to fetch the parameters and communicate
with the preview window...
I'll have to check this out!
/post]
Posts: 73
Threads: 6
Joined: Dec 2004
Hi!
Very nice!
I've just one suggestion: Put a
into your loops because otherwise your program will cause 100% CPU operating rate on Windows 2000 and XP.
Sebastian
Posts: 2,404
Threads: 153
Joined: Jan 2005
Um.. I was under the impression SLEEP was a power robber,. or something to do with memory... not sure, but I knoe to avoid it as much as I can...
I use:
Code:
DO
T! = TIMER
'Code
DO: LOOP UNTIL (TIMER - T!) >= 0.01
LOOP UNTIL INKEY$ <> ""
Much better delay... :wink:
Edit: :oops: I hit Submit by accedent.. code repiared... :roll: :wink:
Kevin (
x.t.r.GRAPHICS)