How to start a screen saver? 
Author Message
 How to start a screen saver?

        Should just involve passing the " /p" on the command line to it.


Quote:

>I want to make a screen saver, which does not start itself when called by
>Windows, but starts any other of the screen savers. But I don't know how
>Windows starts a saver.

>I tried with SHELL, but this is obviously wrong.

>If anyone could help me, this would be great.

>Martin

--
                      Andrew Loree



Mon, 31 Aug 1998 03:00:00 GMT  
 How to start a screen saver?
I want to make a screen saver, which does not start itself when called by
Windows, but starts any other of the screen savers. But I don't know how
Windows starts a saver.

I tried with SHELL, but this is obviously wrong.

If anyone could help me, this would be great.

Martin



Mon, 31 Aug 1998 03:00:00 GMT  
 How to start a screen saver?

Quote:

> I want to make a screen saver, which does not start itself when called by
> Windows, but starts any other of the screen savers. But I don't know how
> Windows starts a saver.

> I tried with SHELL, but this is obviously wrong.

> If anyone could help me, this would be great.

> Martin

The following Knowledge base artical show how to call a screen saver
from VB.

http://www.microsoft.com/kb/developr/vb/q110589.htm

Hope this helps

David Maddison




Tue, 01 Sep 1998 03:00:00 GMT  
 How to start a screen saver?
Martin try this to programaticaly <sp> start the screensaver that is set in the Windows ini files.
Curt

Declare Function SendMessage Lib "User" (ByVal hWnd As Integer, ByVal  wMsg As Integer, ByVal wParam As Integer, lParam As Any) As Long

'In the following example, a command button starts the Form1 screen saver:

   Sub Command1_Click ()
      Dim result As Long

      Const WM_SYSCOMMAND = &H112
      Const SC_SCREENSAVE = &HF140
      result = SendMessage(Form1.hWnd, WM_SYSCOMMAND, SC_SCREENSAVE, 0&)
   End Sub

Quote:

>I want to make a screen saver, which does not start itself when called by
>Windows, but starts any other of the screen savers. But I don't know how
>Windows starts a saver.

>I tried with SHELL, but this is obviously wrong.

>If anyone could help me, this would be great.

>Martin



Sun, 06 Sep 1998 03:00:00 GMT  
 How to start a screen saver?

Quote:
>I want to make a screen saver, which does not start itself when called by
>Windows, but starts any other of the screen savers. But I don't know how
>Windows starts a saver.
>I tried with SHELL, but this is obviously wrong.

It isn't in Win3.x. Just pass the /s parameter.

I dunno how to do it in Win95 screensavers.
--

Celebrate Hannibal Day this year.  Take an elephant to lunch.



Mon, 07 Sep 1998 03:00:00 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Form start up/ Screen saver question

2. How to start the screen saver on Win 3.x machine

3. How do I start the screen saver in VB

4. Screen Saver on top of Screen Saver problem

5. How to start screen saver?

6. Start screen saver in VB

7. Anything wrong with this code? - Starting screen saver

8. Start screen saver in VB

9. Starting screen saver immediately

10. Starting Screen Saver From a Menu..???

11. Starting up default screen saver?

12. Starting new process in application desktop from a screen saver

 

 
Powered by phpBB® Forum Software