Jump to content
Sign in to follow this  
AndreVanDelft

How to invoke a menu item of a LibreOffice window?

Recommended Posts

AndreVanDelft

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?

Share this post


Link to post
Share on other sites
JLogan3o13

@AndreVanDelft have you looked at the LibreOffice UDF to see if it meets your needs?

 


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
AndreVanDelft

@JLogan3o13 I had not, but now I have.

These UDFs would not really help me, I think. 

Share this post


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
Sign in to follow this  

×