Results 1 to 4 of 4

Thread: Detect Mouse Over Hyperlink?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2000
    Posts
    24
    I want my program to be able to determine when the cursor turns into a hand (when it's over a hyperlink). I use a loop with setcursorpos to perform the mouse movement.

    Code:
    Do
       SetCursorPos(x, y)
       If {mouse is over hyperlink} Then Click
       Timeout(0.2)
    Loop
    Anyone know a substitute for {mouse is over hyperlink}?

    Thanks

    -CD

  2. #2

    Thread Starter
    Junior Member
    Join Date
    May 2000
    Posts
    24
    Does anyone know?

  3. #3
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Nitro
    Posts
    633

    Here is an alternative!

    Code:
    Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
      Select Case Me.MousePointer
        Case Is < 0, Is > 15
          MsgBox "URL Link"
      End Select
    End Sub
    Chemically Formulated As:
    Dr. Nitro

  4. #4

    Thread Starter
    Junior Member
    Join Date
    May 2000
    Posts
    24
    Thanks for your help, but doesn't the cursor have to be over your form for the mousemove event to work? I was thinking of a link in a web browser.

    -CD

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