|
-
Apr 5th, 2002, 04:03 PM
#1
Thread Starter
New Member
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?
-
Apr 5th, 2002, 06:36 PM
#2
Frenzied Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|