Digging into the MDI client's child windows controls

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
Randall
Junior Coder
Posts: 38
Joined: Fri Jan 13, 2012 4:39 am

Digging into the MDI client's child windows controls

Post by Randall » Fri Mar 02, 2012 8:59 pm

I am struggling to send text and control data to some MDI client windows inside an MDI frame. I have been able to successfully "drill" down into the classes in order to obtain the handles for the child windows embedded in the MDI frame.

Here's where I am still uninformed.

When I Rclick with the mouse inside a child window, call it Window A, it brings up a menu. However I cannot seem to locate this menu using the tools under the debugger. Furthermore, when I change the script to actually match an image which is on that menu, the FindImagePos> command cannot locate it, even though I search the whole screen.

I did look through the System Windows, using that tool, but could not seem to locate this pop-up menu.

Has anyone encountered this problem before? I can successfully manuver the mouse to Rclick inside the child window, but I cannot seem to locate the handle for this pop-up menu.

If I could, it would save a lot of problems, as I would like simulate the mouse Lclicks and Rclicks through the menu.

The problem that I have is that if one child window is near the bottom of the MDI client, when the mouse Rclicks, the menu pop-up is thrown to the top of the screen, not in the same offset as the upper child window when the mouse is Rclicked inside it. This has made it difficult to use absolute mouse positions and the FindImagePos> cannot seem to locate a small image text graphic on that pop-up menu at all.

Any ideas?

Thanks for your suggestions.

- Randall

Randall
Junior Coder
Posts: 38
Joined: Fri Jan 13, 2012 4:39 am

found a work around

Post by Randall » Sun Mar 04, 2012 8:45 am

I was able to use the arrow keys to navigate the keyboard command set and found an alternative way to bring up the menu.

I consider this question resolved.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts