AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Get Info from Context Menu
Goto page Previous  1, 2
 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
Joy2DWorld



Joined: 04 Dec 2006
Posts: 561
Location: Galil, Israel

PostPosted: Mon Oct 08, 2007 12:46 am    Post subject: Reply with quote

NICE!!!!

incredibly useful!!!!!!!!!


(@Sean,

is there call to also get MFS_HILITE info and such ?)
_________________
Joyce Jamce
Back to top
View user's profile Send private message
Lexikos



Joined: 17 Oct 2006
Posts: 7299
Location: Australia

PostPosted: Mon Oct 08, 2007 2:22 am    Post subject: Reply with quote

GetMenuState & MF_HILITE (which has the same value as MFS_HILITE.)
Back to top
View user's profile Send private message Visit poster's website
Sean



Joined: 12 Feb 2007
Posts: 2462

PostPosted: Mon Oct 08, 2007 3:24 am    Post subject: Reply with quote

Joy2DWorld wrote:
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.
Back to top
View user's profile Send private message
kenn



Joined: 11 Oct 2010
Posts: 288

PostPosted: Tue Dec 06, 2011 6:09 pm    Post subject: Reply with quote

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
http://www.autohotkey.com/forum/viewtopic.php?t=41097
http://www.autohotkey.com/forum/viewtopic.php?p=272661
http://www.autohotkey.com/forum/topic17314.html
http://www.autohotkey.com/forum/viewtopic.php?p=494883
http://www.autohotkey.com/forum/viewtopic.php?t=78261
Thanks to all those who read and post messages
Back to top
View user's profile Send private message
guest_
Guest





PostPosted: Tue Dec 06, 2011 9:04 pm    Post subject: Reply with quote

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.
Back to top
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group