[python-win32] how to activate subwindow of the application ???

Mike Driscoll mdriscoll at co.marshall.ia.us
Fri May 9 15:37:05 CEST 2008


Tim Golden wrote:
> <div class="moz-text-flowed" style="font-family: -moz-fixed">neha rai 
> wrote:
>>  I am making a tool that needs to open subwindow of another application,
>> enter some text in it click ok and then open the same window again. i am
>> able to  put text and click 'OK'  but I am not able to open the same 
>> window
>> again using the python code. I need some thing that can remember what i
>> opened(or the last window opened) and open it again.
>
> I'm sorry, but for the life of me I can't work out what you're trying
> to do here. Unless someone has better intuition than me and comes
> to the rescue, could you post some code to show what's you're doing
> and indicate where it doesn't work?
>
> Thanks
>
> TJG
>
> PS If you aren't already, worth looking at WATSUP [1] and PyWinAuto [2]
>
> [1] http://www.tizmoi.net/watsup/intro.html
> [2] http://pywinauto.pbwiki.com/
>
> </div>
Tim,

The OP is probably talking about a window that's part of the 
application, like when you open the Preferences dialog or how some Excel 
versions can allow one to open multiple spreadsheets and minimize them 
within the application.

As to how to manipulate that sort of thing in a pre-made app... I 
haven't the slightest... except maybe SendKeys or the links you gave.

Mike


More information about the python-win32 mailing list