forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Making a screensaver
Goto page 1, 2  Next
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Miscellaneous
View previous topic :: View next topic  
Author Message
GeoTrail
Valued Contributor
Valued Contributor


Joined: 18 Feb 2003
Posts: 572
Location: Bergen, Norway

PostPosted: Wed Jun 11, 2003 4:43 pm    Post subject: Making a screensaver Reply with quote

I don't know if this is known, but I just found out how to add configuration to a screensaver.

When running a screensaver the command /s is passed to the screensaver.

When clicking on Configuration for a screensaver, /c:XXXXX is passed to the screensaver. Where the X's are, is a random number. I guess this can be parsed out so you can use @equal to check for the /c command.

Hope someone will have use for this Smile

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Wed Jun 11, 2003 4:48 pm    Post subject: Reply with quote

There are a few VDS screensavers in the VDS 3 Source Code section by Mac and NodNarb you might want to check out.
_________________
-Sheep
My pockets hurt...
Back to top
View user's profile Send private message Send e-mail
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Wed Jun 11, 2003 7:06 pm    Post subject: Reply with quote

And never mind about Garrett's GT-GradioSpheres screeen saver example
for VDS 4.x Sad

Preview:
http://www.vdsworld.com/vdsscript.php?url=downloads/script/GT-GradioSpheres.dsc

Download:
http://www.vdsworld.com/index.php?page=download&fileid=263


-Garrett

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1566

PostPosted: Wed Jun 11, 2003 7:38 pm    Post subject: Reply with quote

I'm going to bite this imposter penguin here soon and give him monkeypox.
Back to top
View user's profile Send private message
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Wed Jun 11, 2003 7:41 pm    Post subject: Reply with quote

Yeah, I need to find a new spokes-penguin soon. Your penguin is getting
tired of hovering over the bottles to drool. Time to let him get back to
biting people in the forums.

-Garrett

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
GeoTrail
Valued Contributor
Valued Contributor


Joined: 18 Feb 2003
Posts: 572
Location: Bergen, Norway

PostPosted: Wed Jun 11, 2003 7:55 pm    Post subject: Reply with quote

Laughing
_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1566

PostPosted: Wed Jun 11, 2003 8:00 pm    Post subject: Reply with quote

If I remember correctly the XXXX numbers you are refering to is a Window Handle that is being passed back. This allows you to paint a preview window into the Windows Screensaver dialog by sending the picture via Windows Api to the window handle. You can take a look at the vdssave.dll, as it provides a working example of a screensaver and handles password protection, configuration and ability to put an image into the preview screen of Windows screen saver dialog.
Back to top
View user's profile Send private message
GeoTrail
Valued Contributor
Valued Contributor


Joined: 18 Feb 2003
Posts: 572
Location: Bergen, Norway

PostPosted: Wed Jun 11, 2003 8:02 pm    Post subject: Reply with quote

Cool, thanks for the tip PGWARE Smile
_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Wed Jun 11, 2003 8:11 pm    Post subject: Reply with quote

If you take a look at the gradiospheres example, you'll find something
new that had not been posted before with any screen saver examples...
How to put an active preview of your saver on the display
properties > screen saver window.

But as usual, I didn't make any comments Sad

-Garrett

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Wed Jun 11, 2003 8:15 pm    Post subject: Reply with quote

Garrett's GradioSpheres example puts the preview in without an API I think.

Anyway it's a pretty good screensaver and I am using it currently as
my screensaver. Wink

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Wed Jun 11, 2003 8:16 pm    Post subject: Reply with quote

Whoops. Took too long to post about the preview. Garrett's script does
this like he said.

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Wed Jun 11, 2003 8:43 pm    Post subject: Reply with quote

Yeah, no api's for the preview. Just smoke and mirrors basically.. Grab
the win id of the display properties window, then travel down the
structure of the children until you find the right part of the window to
display on... then open your little preview window over that area and
keep track of the area's coordinates and move your preview along with
it if the user moves the display properties.

BTW, new spokes-penguin is now working for the Penguin Drool Co.

Smile

-Garrett

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1566

PostPosted: Wed Jun 11, 2003 8:59 pm    Post subject: Reply with quote

The preview window doesnt work for me on Windows XP Home with Garrett's example which is why I mentioned the vdssave.dll
Back to top
View user's profile Send private message
GeoTrail
Valued Contributor
Valued Contributor


Joined: 18 Feb 2003
Posts: 572
Location: Bergen, Norway

PostPosted: Wed Jun 11, 2003 9:49 pm    Post subject: Reply with quote

Garrett, yeah, that's where I got the idea on finding the config command to the screensaver from.

And the preview don't work here either. XP Pro SP1a.

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Wed Jun 11, 2003 9:57 pm    Post subject: Reply with quote

I do believe I noted that it wasn't tested on other systems. Maybe
try grabbing that id coming from windows to your .scr and see if you
can use that instead.

-Garrett

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Miscellaneous All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group