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?
Printable View
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?
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