|
-
Jun 5th, 2000, 02:39 AM
#1
Thread Starter
Junior Member
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
-
Jun 6th, 2000, 10:38 PM
#2
Thread Starter
Junior Member
-
Jun 7th, 2000, 12:20 AM
#3
Fanatic Member
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
-
Jun 7th, 2000, 01:21 AM
#4
Thread Starter
Junior Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|