-
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
-
-
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
-
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