Re: [python-win32] determining information about a window

2009-08-10 Thread Dave Angel
Eric Blade wrote: This is kind of a weird question - I have a process that has two windows with the exact same name. I need to figure out some way to differentiate between the two windows - what functions are there available that I can call to find out information about the two windows, so that

Re: [python-win32] determining information about a window

2009-08-10 Thread Eric Blade
It's mostly like the 3rd scenario there - although i don't need to output into the process, i just need to be able to differentiate between two different windows that have identical names, so that i can choose which window to have the user interact with from python. On Mon, Aug 10, 2009 at 11:05

Re: [python-win32] determining information about a window

2009-08-10 Thread Tim Roberts
Eric Blade wrote: This is kind of a weird question - I have a process that has two windows with the exact same name. I need to figure out some way to differentiate between the two windows - what functions are there available that I can call to find out information about the two windows, so

[python-win32] Calling COM methods that expect arguments by reference

2009-08-10 Thread Aaron Hoover
This question is similar to one posed by Mike Graham in a recent thread, but I thought I'd see if I could rustle up any additional feedback. I'm trying to called a COM automation object using Python. The wrinkle is that the method I need uses arguments by reference to store output from

Re: [python-win32] Calling COM methods that expect arguments by reference

2009-08-10 Thread Greg Antal
Aaron: From the Python definition you show, PythonCOM is going to treat your call-by-reference arguments as output values whether they're supposed to be or not. This is for all the parameters defined with type (16387, 2). When you have parameters identified like that, your Python call has to

Re: [python-win32] Calling COM methods that expect arguments by reference

2009-08-10 Thread Aaron Hoover
Hi Greg, I gave your suggestion a shot, but I get the following perplexing error: TypeError: int() argument must be a string or a number, not 'NoneType' which makes me think it's still somehow expecting to get those values as input even though they're explicitly set to be outputs in the