Results 1 to 4 of 4

Thread: detect when screensaver stops running

  1. #1

    Thread Starter
    Addicted Member c@lle's Avatar
    Join Date
    Oct 1999
    Location
    Belgium
    Posts
    179

    detect when screensaver stops running

    how can i detect that the screensaver stops running?

    thanks.

  2. #2
    sunnyl
    Guest
    Could you get away with detecting if the mouse has moved with the GetCursorPos API?

  3. #3

    Thread Starter
    Addicted Member c@lle's Avatar
    Join Date
    Oct 1999
    Location
    Belgium
    Posts
    179
    no, because the only input the user can do is a 'right mouse click'.

    can i intercept that with an api call?

  4. #4
    sunnyl
    Guest
    You can use GetAsyncKeyState

    Code:
    Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
    And the vKey constant for right mouse click is vbKeyRButton.

    Don't forget to loop the function.

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