VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Returns cursor positions X and Y

by T-REX Software (14 Submissions)
Category: Miscellaneous
Compatability: Visual Basic 4.0 (32-bit)
Difficulty: Unknown Difficulty
Originally Published: Wed 24th March 1999
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Returns cursor positions X and Y

API Declarations


x As Long
y As Long
End Type

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


Rate Returns cursor positions X and Y



Dim pt      As POINTAPI
Call M_GetCursorPos(pt)

xX = pt.x
xY = pt.y
End Sub

Download this snippet    Add to My Saved Code

Returns cursor positions X and Y Comments

No comments have been posted about Returns cursor positions X and Y. Why not be the first to post a comment about Returns cursor positions X and Y.

Post your comment

Subject:
Message:
0/1000 characters