Results 1 to 2 of 2

Thread: Turn on the screen saver?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2000
    Location
    Texas
    Posts
    313

    Question

    Is there a way I can turn on the screen saver, and also password protect it? or select it ect.

  2. #2
    Guest
    Try this:

    Code:
        Private Declare Function SendMessage Lib "user32" _
        Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg _
        As Long, ByVal wParam As Long, ByVal lParam As Long) _
        As Long 
        
        Const WM_SYSCOMMAND = &H112&
        Const SC_SCREENSAVE = &HF140&
    
        Dim result As Long
        result = SendMessage(Form1.hWnd, WM_SYSCOMMAND, SC_SCREENSAVE, 0&)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width