For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic Syntax > March 2006 > VB screensaver file names









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author VB screensaver file names
Michael H

2006-03-21, 10:09 pm

I have written a screensaver, but I need to change the file name to an .exe
and then to a .scr i think. I am unsure of how to do this... If anyone could
give me some help to convert my screensaver into a file that can be
recognized by the properties menu on the computer that would be great.
Karl E. Peterson

2006-03-21, 10:09 pm

Michael H wrote:
> I have written a screensaver, but I need to change the file name to
> an .exe and then to a .scr i think. I am unsure of how to do this...
> If anyone could give me some help to convert my screensaver into a
> file that can be recognized by the properties menu on the computer
> that would be great.


"Just do it!" Seriously. Rename it, and stick it in the /system32 folder.

Used to be, you had to add "SCRNSAVE:" to the App.Title
(Project-Properties-Make), but I don't think that's been necessary since
Win32. Doesn't hurt though. What follows the colon is what shows up in the
Display Properties dropdown.
--
Working without a .NET?
http://classicvb.org/


Michael H

2006-03-22, 7:08 pm

THe only thing is that what I tried wont work do u know a simple way to get
the properties menu to recognize it as a screensaver ?

"Karl E. Peterson" wrote:

> Michael H wrote:
>
> "Just do it!" Seriously. Rename it, and stick it in the /system32 folder.
>
> Used to be, you had to add "SCRNSAVE:" to the App.Title
> (Project-Properties-Make), but I don't think that's been necessary since
> Win32. Doesn't hurt though. What follows the colon is what shows up in the
> Display Properties dropdown.
> --
> Working without a .NET?
> http://classicvb.org/
>
>
>

Karl E. Peterson

2006-03-22, 7:08 pm

Michael H wrote:
> THe only thing is that what I tried wont work do u know a simple way
> to get the properties menu to recognize it as a screensaver ?


Hmmmm, did you set the App.Title (in Project-Properties-Make)? Maybe
Explorer needs to restart? In short, I'm not sure. It's always just worked
for me. But, that said, I just tried copying notepad.exe to notepad.scr,
and that's not showing up in the dropdown either. Maybe that SCRNSAVE:
string is still needed? Fwiw, here's the comments in the header of my own
CScrnSave.cls:

' ---------------------------------------------------------------------
' Many concepts based on example code provided free, and written by,
' Don Bradner and Jim Deutch. For the original VB-based screensaver,
' see JDSaver at http://www.ArcataPet.net/vb.cfm
' ---------------------------------------------------------------------
' Additional inspiration found in the work of Scott Seligman at
' http://www.scottandmichelle.net/sco....mv?codenum=076
' ---------------------------------------------------------------------
' PC Magazine's version of this whole mess may be found at:
' http://www.pcmag.com/print_article/...,a=10038,00.asp
' ---------------------------------------------------------------------

Hope that helps!
--
Working without a .NET?
http://classicvb.org/



[color=darkred]
> "Karl E. Peterson" wrote:
>



Michael H

2006-03-22, 7:08 pm

I have the screensaver now in the file with all the other screensavers but
when it is time to actually execute the screensaver nothing happens... I am
wondering if I am just missing a step or do i need another code along with
it....

"Karl E. Peterson" wrote:

> Michael H wrote:
>
> Hmmmm, did you set the App.Title (in Project-Properties-Make)? Maybe
> Explorer needs to restart? In short, I'm not sure. It's always just worked
> for me. But, that said, I just tried copying notepad.exe to notepad.scr,
> and that's not showing up in the dropdown either. Maybe that SCRNSAVE:
> string is still needed? Fwiw, here's the comments in the header of my own
> CScrnSave.cls:
>
> ' ---------------------------------------------------------------------
> ' Many concepts based on example code provided free, and written by,
> ' Don Bradner and Jim Deutch. For the original VB-based screensaver,
> ' see JDSaver at http://www.ArcataPet.net/vb.cfm
> ' ---------------------------------------------------------------------
> ' Additional inspiration found in the work of Scott Seligman at
> ' http://www.scottandmichelle.net/sco....mv?codenum=076
> ' ---------------------------------------------------------------------
> ' PC Magazine's version of this whole mess may be found at:
> ' http://www.pcmag.com/print_article/...,a=10038,00.asp
> ' ---------------------------------------------------------------------
>
> Hope that helps!
> --
> Working without a .NET?
> http://classicvb.org/
>
>
>
>
>
>
>
>

Karl E. Peterson

2006-03-22, 7:08 pm

Michael H wrote:
> I have the screensaver now in the file with all the other
> screensavers but when it is time to actually execute the screensaver
> nothing happens... I am wondering if I am just missing a step or do i
> need another code along with it....


Oh yes, you certainly do! See those links below for more details...
[color=darkred]

There's actually a *lot* involved in, essentially, becoming an integral part
of Windows. I've developed a multi-file framework, myself, just to cover
all the routine bases.
--
Working without a .NET?
http://classicvb.org/


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com