|
From: Tony C. <cap...@gm...> - 2007-09-27 16:44:12
|
I've successfully automated a program with AutoIt, but want to redo
the automation with watsup, because Python is much more flexible.
I'm having problems activating a menu.
I have the top-level window handle from
self.topHwnd=PControl.PLaunchApp(self.EditorPath,wantedText=self.Editortext)
and I'm trying to activate a menu by
topMenu = PControl.getTopMenu(self.topHwnd)
self.SynthMenu=PControl.MenuItem(topMenu,('Synth','Bank Upload'))
However, the call to getTopMenu() is failing for
TypeError: int expected instead of Pwindowinstance
I've looked through the examples quite a bit- in fact I've copied much
of that code into my app, and made changes so it works as part of my
class.
In the examples, There are some places that call LaunchApp() and other
places that call PlaunchApp(), but I don't understand the when to use
one call over the other.
Would someone explain what I'm doing wrong, or send me a
straightforward example of how to activate a menu?
thanks
|