Jump to content

How to invoke a menu item of a LibreOffice window?


Recommended Posts

I need to invoke several menu items of a LibreOffice Impress window; mainly File >> Reload.

Activating the window goes fine, but I could not get WinMenuSelectItem to work. I followed the advice written here:

https://www.autoitscript.com/forum/topic/184939-winmenuselectitem-fails/?do=findComment&comment=1328345

Result:

Apparently the call to _GUICtrlMenu_GetMenu($hWnd) does not yield a menu. The cause is probably that LibreOffice applies a floating menu bar, which is not a real menu, as the documentation on  _GUICtrlMenu_GetMenu states:

Quote

_GUICtrlMenu_GetMenu() does not work on floating menu bars.
Floating menu bars are custom controls that mimic standard menus, but are not menus.

So what can I try next to make LibreOffice act on some alleged menu commands?

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...