AndreVanDelft Posted May 3, 2018 Share Posted May 3, 2018 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 comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted May 3, 2018 Moderators Share Posted May 3, 2018 @AndreVanDelft have you looked at the LibreOffice UDF to see if it meets your needs? "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
AndreVanDelft Posted May 4, 2018 Author Share Posted May 4, 2018 @JLogan3o13 I had not, but now I have. These UDFs would not really help me, I think. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now