[python-win32] COM: control menu bar

Simon McConnell simonmcconnell at gmail.com
Mon Sep 24 18:32:28 EDT 2018


I haven't used it myself but I believe this is what pywinauto does:
http://pywinauto.github.io

On Tue, 25 Sep 2018 at 02:04 Emre CETIN via python-win32 <
python-win32 at python.org> wrote:

> Hi, I am writing a script to automate a program named Golden Software
> Surfer. I am using import win32com.client in Python during this process.
> At one point though i can not get past a certain step of my code. The
> reason is because Surfer's automation utility (Scipter) does not allow that
> part to be controlled. I could get past this step if i could control the
> main program's (Surfer) Menu bar. This step just has a couple of processes
> that all are within the Menu bar itself. For example here is what I want to
> automate:
> ******
> 1) Arrange | Edit Group
> 2) Edit | Select All
> 3) Geoprocessing | Change Boundaries | Polyline to Polygon
> 4) Geoprocessing | edit Boundaries | Combine Islands / Lakes
> 5) Arrange | Stop Editting Group
> ******
> All of these steps aren't changeable via its scripting libraries within
> Scripter. But they are all under the main programs Menu Bar. Is there a way
> for me to automate the menubar via win32com? If so could you please help me
> understand how?
>
> Basically i am trying to learn how to control the menu bar of Surfer from
> Python.
>
> Thank you all in advance.
>
> _______________________________________________
> python-win32 mailing list
> python-win32 at python.org
> https://mail.python.org/mailman/listinfo/python-win32
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20180925/1b8ec7f7/attachment.html>


More information about the python-win32 mailing list