I'm trying to make a menu that will pop up whenever the user right-clicks anywhere in the GUI, i've figured out from the helpfile that i should use GUIcontextmenu, but i havn't been able to figure out which syntax to use to actually link a menu being showed when guicontextmenu is launched.
Anyone able to point me in the right direction?
[SOLVED] GUIcontextmenu and Menu
3 replies to this topic
;~ Create the menu: Menu, menu1, Add, Thing 1, label1 Menu, menu1, Add, Thing 2, label2 Gui, Show, w400 h400 Return ;~ Show the menu when you right-click: GuiContextMenu: Menu, menu1, Show, %A_GuiX%, %A_GuiY% Return ;~ Do something when you click the menu: label1: MsgBox, You clicked 1. Return label2: MsgBox, You clicked 2. Return GuiClose: ExitApp
#2 - Posted 12 February 2010 - 09:18 PM