[python-win32] COM: control menu bar
Tim Roberts
timr at probo.com
Sun Sep 30 23:40:49 EDT 2018
On Sep 30, 2018, at 6:25 AM, Emre CETIN via python-win32 <python-win32 at python.org> wrote:
>
> Hello James. Thank you for your advice. I ran Spy++. At the logging options I selected the menu bar portion of the other program. I selected WM_COMMAND only and then chose all "Additional Windows" (except for the All Windows in System). Then I clicked one of the menu items I wanted: Edit | Select All. It provided me with the following line: WM_COMMAND wNotifyCode:0 (sent from a menu) wID:57642.
>
> How can I use this class ID (57642) in Python to act as if it was clicked/pressed?
That's not a class ID, it's a window ID. You can trigger that by sending the exact same message you saw here.
—
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20180930/48632c1b/attachment.html>
More information about the python-win32
mailing list