Google Answers Logo
View Question
 
Q: screen saver hack ( Answered 5 out of 5 stars,   0 Comments )
Question  
Subject: screen saver hack
Category: Computers > Programming
Asked by: minermbel-ga
List Price: $2.00
Posted: 11 Feb 2003 11:26 PST
Expires: 13 Mar 2003 11:26 PST
Question ID: 160047
I want to setup windows 2000 to call an .exe file instead of a .scr
file when launching a screen saver.  Is there a way to do this?  Is
there a wrapper .scr file that can launch an executable? Some other
hack?

Request for Question Clarification by joseleon-ga on 11 Feb 2003 11:30 PST
Hello:
  An .scr is just like a normal .exe, you can launch another .exe from
it. Do you want the code for a .scr that launches an exe?

Regards.

Clarification of Question by minermbel-ga on 11 Feb 2003 12:54 PST
So I can just rename an .exe file to a .scr file and stick it in the
system directory?  That would answer my question.  If not could you
post instructions?
Answer  
Subject: Re: screen saver hack
Answered By: joseleon-ga on 12 Feb 2003 01:08 PST
Rated:5 out of 5 stars
 
Hello, minermbel:

  You can place your .exe on the system dir, rename it to an .scr file
and this will work, but bear in mind your program will be called this
way:

-When the user selects your program from the screen saver combobox,
your program will be called with two parameters (/p and a number),
this is intended to provide a "preview" of your screensaver on the
sample monitor

-When the user presses the Preview button or the screensaver is
activated, your program will be called with /s parameter, this is
intended to run the screen saver on full screen mode

-When the user presses the Setup button, you program will be called
with /c and a number, this is intended to provide a configuration
dialog for the screensaver

So if you program doesn't care about input parameters you can do it, I
supose is to launch a process when the screensaver is activated.

In any case, if this solution doesn't fit your needs, I could post a
simple source code of an screensaver that calls a program. You decide
;-)

Regards.
minermbel-ga rated this answer:5 out of 5 stars

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy