Hi again.
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?
Thanks again.[/code]

[SOLVED] GUIcontextmenu and Menu
Started by
totalmig
, Feb 12 2010 08:33 PM
3 replies to this topic
#1
-
Posted 12 February 2010 - 08:33 PM
![[SOLVED] GUIcontextmenu and Menu: post #1](http://www.autohotkey.com/board/public/style_images/ortem/icon_share.png)
;~ 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
![[SOLVED] GUIcontextmenu and Menu: post #2](http://www.autohotkey.com/board/public/style_images/ortem/icon_share.png)