Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate

Get Info from Context Menu

  • Please log in to reply
19 replies to this topic
  • Members
  • 562 posts
  • Last active: Jun 30 2014 07:48 PM
  • Joined: 04 Dec 2006

incredibly useful!!!!!!!!!


is there call to also get MFS_HILITE info and such ?)
Joyce Jamce

  • Administrators
  • 9844 posts
  • AutoHotkey Foundation
  • Last active:
  • Joined: 17 Oct 2006
GetMenuState & MF_HILITE (which has the same value as MFS_HILITE.)

  • Members
  • 2462 posts
  • Last active: Feb 07 2012 04:00 AM
  • Joined: 12 Feb 2007

is there call to also get MFS_HILITE info and such ?

I saw Micha's script use the API GetMenuItemInfo, so I suppose the infos about the item state are already there. Otherwise, and if you need only the state infos, GetMenuState can be handy as lexicos said.

  • Members
  • 407 posts
  • Last active: Jan 14 2015 08:16 PM
  • Joined: 11 Oct 2010
Hi, it's a great script. I am trying to find a way to reach context menu of an icon in systray and check or uncheck one of its menu items. I want to do it without opening context menu of the program icon in systray. I searched for the whole forum and it seems that there is no an effective solution to my need.
I need help of AHK Gurus.
I checked out these topics
<!-- m -->http://www.autohotke...pic.php?t=41097<!-- m -->
<!-- m -->http://www.autohotke...ic.php?p=272661<!-- m -->
<!-- m -->http://www.autohotke...topic17314.html<!-- m -->
<!-- m -->http://www.autohotke...ic.php?p=494883<!-- m -->
<!-- m -->http://www.autohotke...pic.php?t=78261<!-- m -->
Thanks to all those who read and post messages

  • Guests
  • Last active:
  • Joined: --
This is a little bit advanced and depends on the software, but after selecting/deselecting an item most applications are receiving a message about the event. You can try i.e. winspector to "trace" what messages are sent after manually selecting a context menu entry.
If you know the message and parameters you could use sendmessage.