Results 1 to 2 of 2

Thread: Accessing controls of another application

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2002
    Posts
    12

    Accessing controls of another application

    I need to access the controls of a window of another application and use its properties...I have the handle of the window of the other application....but how do i get the controls on that window?? Any ideas?

  2. #2
    Frenzied Member moinkhan's Avatar
    Join Date
    Jun 2000
    Location
    Karachi, Pakistan
    Posts
    2,011
    Try the following Code...

    Dim ParHwnd As Long
    Dim FHwnd As Long

    Public Declare Function GetWindow Lib "user32" (ByVal hWnd As Long, ByVal wCmd As Long) As Long

    FHwnd = GetWindow(ParHwnd, GW_CHILD)
    While FHwnd <> 0
    List1.AddItem FHwnd
    FHwnd = GetWindow(FHwnd, GW_HWNDNEXT)
    Wend


    I am afraid..to use the properties of those controls would not be that easy

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