Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
FreeBasic ScreenSaver!
#1
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)

[Image: 11895-r.png]
Reply
#2
Excellent Work...it's now my official screensaver ;-). Way to go Ratttrap ;-)..
hen they say it can't be done, THAT's when they call me ;-).

[Image: kaffee.gif]
[Image: mystikshadows.png]

need hosting: http://www.jc-hosting.net
All about ASCII: http://www.ascii-world.com
Reply
#3
Hey, pretty doggone neat. Source code? Smile Or at least a guide to building a screensaver? Big Grin
Reply
#4
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. Big Grin
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
Reply
#5
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)

[Image: 11895-r.png]
Reply
#6
Could someone host that on FileAnchor? I'm on a college network and downloads are blocked from your site.
Reply
#7
That's odd... but neway:

Download FBSVR.zip

:wink:
Kevin (x.t.r.GRAPHICS)

[Image: 11895-r.png]
Reply
#8
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]
Reply
#9
Hi!

Very nice! Big Grin

I've just one suggestion: Put a
Code:
SLEEP 1
into your loops because otherwise your program will cause 100% CPU operating rate on Windows 2000 and XP.

Sebastian
[Image: f.jpg]
Reply
#10
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... Smile 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)

[Image: 11895-r.png]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)