Hi Folks,
Here's a working script that has three items in the tray context menu:
Code: Select all
#Persistent
Menu,Tray,NoStandard
Menu,Tray,Add,&Hello,ContextMenu
Menu,Tray,Add,&World,ContextMenu
Menu,Tray,Add,E&xit,ContextMenu
Return
ContextMenu:
If (A_ThisMenuItem="&Hello")
{
MsgBox Hello
Return
}
If (A_ThisMenuItem="&World")
{
MsgBox World
Return
}
If (A_ThisMenuItem="E&xit")
ExitApp
When I right-click on the tray icon it shows the three menu choices:
Hello,
World, E
xit. What I'd like to be able to do is right-click on one of those and have a context menu appear for it. In other words, a left-click on, say, the
Hello item would work as usual (executing its left-click code), but a right-click on it would bring up another context menu with its own left-click choices. Is this possible? Btw, I know how to do submenus for a menu...this is different from that. Thanks much, Joe