Results 1 to 2 of 2

Thread: How to get the coordinate of given point in a Active Window

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 1999
    Location
    fort wayne,IN, usa
    Posts
    12

    Post

    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

  2. #2
    Hyperactive Member
    Join Date
    Jul 1999
    Location
    NY, USA
    Posts
    270

    Post

    If the active window is a form that you made, add the following code:
    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
    [email protected]
    ICQ: 15743470
    AIM: TomY10
    PERL, JavaScript and VB Programmer

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width