Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get menu id
#1
Is there a way to get the menu id?
For example the menu id in notepad++ for   textfx > textfx characters > inverse = 22094 (QM lower statusbar)
- I can not send the the text to autput using [ALT]+[F8] because pressing [ALT] closes an expanded menu.
- Using 'men' on menuitem 'Send to output window' (QM lower statusbar, rightclick) doesnt work because QM needs to be active and when focusing on other window causes expanded menu to close.
- Tried Acc but the Acc objects dialog doesn't show menu id's.

I think it's probably not possible or would take to much time.
#2
Get window from x y (the popup menu), send message MN_GETHMENU, call functions MenuItemFromPoint and GetMenuItemID.
https://www.libreautomate.com/forum/show...6#pid26556

Or use LibreAutomate:
Code:
Copy      Help
// script ""
3.s();
var k = MenuItemInfo.FromXY();
print.it(k.ItemId);
#3
Thank you!


Forum Jump:


Users browsing this thread: 1 Guest(s)