winGuiAuto.py

Comments

[gravatar]
Simon Brunning 4:34 AM on 8 Dec 2003

Oh, I've mentioned it on and off. But it's not really release quality yet, so I'll make a bit more noise when it is. Which may be later this week.

If anyone finds it handy in the meantime, OTOH, they are more than welcome to make use of it...

[gravatar]
Chai Ang 8:18 PM on 9 Dec 2003

Hi there,
I know u said it is not of release quality but I tried running it
on my win2k sp4 machine and am getting this.
Am not sure what to do/fix.

Thanks in advance,
Chai

/d/ca python winGuiAuto.py
Open and locate Notepad
Dump the Notepad window contents:
[[6558360, u'', 'Edit']]
Open and locate the 'replace' dialogue
Traceback (most recent call last):
File "winGuiAuto.py", line 524, in ?
activateMenuItem(notepadWindow, ['search', 'replace'])
File "winGuiAuto.py", line 231, in activateMenuItem submenu)
File "winGuiAuto.py", line 497, in _findNamedSubmenu
raise WinGuiAutoError("No submenu found for hMenu=" +
__main__.WinGuiAutoError: No submenu found for hMenu=70723, hMenuItemCount=3, submenuName='search'

[gravatar]
Simon Brunning 9:37 AM on 11 Dec 2003

The test script was built on Windows NT. Notepad's menu structure is different on 2k (and XP), so the test script wasn't finding the menu items it was expecting.

I've fixed this now, so grab a newer version, and see what you get.

I'll also try and see if I can make the error message more informative...

Add a comment:

Ignore this:
Leave this empty:
Name is required. Either email or web are required. Email won't be displayed and I won't spam you. Your web site won't be indexed by search engines.
Don't put anything here:
Leave this empty:
URLs auto-link and some tags are allowed: <a><b><i><p><br><pre>.