PDA

Click to See Complete Forum and Search --> : How to get the coordinate of given point in a Active Window


yifeipan
Nov 7th, 1999, 06:29 AM
I need anyone to help to get the coordinates
of any point of a active window, say just
loaded web page which is active,
Thanks in advance

Compwiz
Nov 7th, 1999, 08:02 AM
If the active window is a form that you made, add the following code:
Dim XWindow, YWindow As Single
Private Sub Form_Load()
Me.ScaleMode = vbPixels
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
XWindow = X
YWindow = Y
End Sub

XWindow contains the X coordinate.
YWindow contains the Y coordinate.

------------------
Tom Young, 14 Year Old
tyoung@stny.rr.com
ICQ: 15743470
AIM: TomY10
PERL, JavaScript and VB Programmer