Results 1 to 3 of 3

Thread: Enumerate activex control children?

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2011
    Posts
    2

    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?

  2. #2
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    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
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2011
    Posts
    2

    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
  •  



Click Here to Expand Forum to Full Width