|
-
Jul 26th, 2011, 04:18 PM
#1
Thread Starter
New Member
Enumerate activex control children?
I am trying to "snoop" into an active x control containing entry fields, text, buttons, etc. and find a specific entry field so that I can set the data in it from an external program using sendmessage. If I use the standard ways of enumerating window handles, the activex component always appears as a single entity, is there a way to get window handles of the controls contained within it?
-
Aug 2nd, 2011, 09:22 AM
#2
Re: Enumerate activex control children?
Welcome to the forums.
If the activex control has a window handle, try the EnumChildWindows API. If you get nothing, then the controls may be windowless. Not saying that is the case, but it is a possibility
-
Aug 2nd, 2011, 11:15 AM
#3
Thread Starter
New Member
Re: Enumerate activex control children?
Thank You.
Further research has shown that the problem is deeper than I originally thought. This happens to be a SAP automation project in an HMI system. From what I can tell SAP uses their own GUI construct and therefore the edit box I was trying to interact with is not an edit box. I have found a means of interacting with this control by sending a click event in the area of the control that holds the "edit box", and using SendInput.
I have also discovered that SAP scripting is enabled at this facility. Using AutoIT, I can discover the entryfield names so that I can access them directly from my VBA (as opposed to using AutoIT API which will in turn use SAP API).
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
|