Results 1 to 2 of 2

Thread: detect mouse scroll even when form doesnt have focus

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2004
    Posts
    81

    detect mouse scroll even when form doesnt have focus

    i need to detect if the mouse scroll wheel is moved even if the form doesnt have focus, kind of like what GetAsyncKeyState does to Form_Keypress.

    thanks
    Stuart

  2. #2
    Lively Member rotcrules's Avatar
    Join Date
    Mar 2004
    Location
    SD
    Posts
    113
    put the "GetAsyncKeyState" into a Timer that is set to 1

    (I made a key counter program that does the same thing and what i did to get the key when it is pressed is put it into a Timer)
    [Vbcode]If YourOpinion = WindowsIsCrap Then
    Kill Wndows
    Open Linux
    ElseIf YourOpinion = WindowsIsGreat Then
    Unload Me
    Else
    Get MSNTV
    End If[/vbcode]

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