| View previous topic :: View next topic |
| Author |
Message |
GeoTrail Valued Contributor


Joined: 18 Feb 2003 Posts: 572 Location: Bergen, Norway
|
Posted: Wed Jun 11, 2003 4:43 pm Post subject: Making a screensaver |
|
|
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  _________________
 |
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Wed Jun 11, 2003 4:48 pm Post subject: |
|
|
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 |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1566
|
Posted: Wed Jun 11, 2003 7:38 pm Post subject: |
|
|
| I'm going to bite this imposter penguin here soon and give him monkeypox. |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Wed Jun 11, 2003 7:41 pm Post subject: |
|
|
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 |
|
 |
GeoTrail Valued Contributor


Joined: 18 Feb 2003 Posts: 572 Location: Bergen, Norway
|
Posted: Wed Jun 11, 2003 7:55 pm Post subject: |
|
|
 _________________
 |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1566
|
Posted: Wed Jun 11, 2003 8:00 pm Post subject: |
|
|
| 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 |
|
 |
GeoTrail Valued Contributor


Joined: 18 Feb 2003 Posts: 572 Location: Bergen, Norway
|
Posted: Wed Jun 11, 2003 8:02 pm Post subject: |
|
|
Cool, thanks for the tip PGWARE  _________________
 |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Wed Jun 11, 2003 8:11 pm Post subject: |
|
|
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
-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 |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Wed Jun 11, 2003 8:15 pm Post subject: |
|
|
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.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Wed Jun 11, 2003 8:16 pm Post subject: |
|
|
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 |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Wed Jun 11, 2003 8:43 pm Post subject: |
|
|
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.
-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 |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1566
|
Posted: Wed Jun 11, 2003 8:59 pm Post subject: |
|
|
| 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 |
|
 |
GeoTrail Valued Contributor


Joined: 18 Feb 2003 Posts: 572 Location: Bergen, Norway
|
Posted: Wed Jun 11, 2003 9:49 pm Post subject: |
|
|
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 |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Wed Jun 11, 2003 9:57 pm Post subject: |
|
|
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 |
|
 |
|