Image

I'm trying to build an app that scans open windows for a control, and if the appropriate control is found it generates a response (e.g. by clicking a button or entering text). I'm using Python, and found a handy dandy module that collects information from open windows and allows you to generate clicks (it's winguiauto.py). It works great, so no problem there. However, when I use
dumpWindow (the function that collects the list of available controls), I note several things I'm not sure how do deal with.

  1. Some of the controls are of the class "button". It should be easy to generate a click on these. But many of them (including some of the ones I'm interested in manipulating) are of class "AfxWnd42s". What are these? Can I click them? The winGuiAuto module comes with functions that click a button control, or a static control, but not a "AfxWnd42s" control.

  2. Some of the controls that are listed aren't actually available to be clicked. Ie they don't appear in the window. Sometime later (or earlier) they may appear, and thats when I want to click them. Is there a way to distinguish between a control that is actually visible on the screen, and one that isn't?


Any thoughts or ideas appreciated...