Getting mouse pos 
Author Message
 Getting mouse pos



Quote:
> Is there an api to get the current mouse position?

I think this will work.

Write this to the declaration part of your module:
Type POINTAPI
x As Long
y As Long
End Type

Declare Function GetCursorPos Lib "user32" (lpPoint As POINTAPI) As Long

Write this into sub main:
Dim z As POINTAPI
GetCursorPos z
MsgBox ("x: " & z.x & "y: " & z.y)



Tue, 05 Oct 1999 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Determining Mouse pos over scrollbar?

2. Detecting Mouse Pos on other apps

3. Determining Mouse pos over scrollbar?

4. Determining Mouse pos over scrollbar?

5. mouse pos

6. Getting cell address by mouse click

7. Getting an accurate mouse point location?

8. getting mouse coords in vb .net

9. getting/setting mouse position

10. Getting mouse position

11. Getting the Resource ID of the window under the mouse cursor/pointer

12. Getting mouse pointer location!

 

 
Powered by phpBB® Forum Software