Hi Spencer,

Did you create one more Application object for the new process you ran? One Application object can search top-level windows in bounds of one process only.
Just use method connect instead of start if it's the case.

Best regards,
-Vasily.


2013/6/14 Spencer Kent <spencer.kent@hp.com>
Hi,

I'm trying to automate execution of a program that's called from the windows
command prompt. I've been able to open a fresh instance of command prompt no
sweat. When I ask pwinauto to show the possible windows and their associated
text it only gives me one option and it happens to be the command prompt
(u'Administrator: C:\etc...)Yay. I use the exact window title to specify the
window using app.window_(title_re = ....) and it returns a WindowSpecification
object.

The problem is that when I try to print the control identifiers (I instantiate
the windowspecification object as cwin and then call
cwin.print_control_identifiers()), it gives me a WindowNotFoundError. I might
expect a different kind of error like it couldn't find any controls or
something but I don't understand why it can't find the window I just defined.

Could you help me figure out what's going on? I'd really appreciate it :)

Thanks,

Spencer


------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Pywinauto-users mailing list
Pywinauto-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pywinauto-users