Code: Select all
#Requires Autohotkey v2
#SingleInstance
myGui := Gui()
myGui.Add("Button", "", "&OK").OnEvent("ContextMenu", Gui_ContextMenu)
myGui.show
Gui_ContextMenu(GuiObj, GuiCtrlObj, Item, IsRightClick, X, Y){
MsgBox GuiObj.Name
}
Code: Select all
#Requires Autohotkey v2
#SingleInstance
myGui := Gui()
myGui.Add("Button", "", "&OK").OnEvent("ContextMenu", Gui_ContextMenu)
myGui.show
Gui_ContextMenu(GuiObj, GuiCtrlObj, Item, IsRightClick, X, Y){
MsgBox GuiObj.Name
}
Code: Select all
#Requires Autohotkey v2
#SingleInstance
myGui := Gui()
myGui.OnEvent("ContextMenu", Gui_ContextMenu)
myGui.Add("Button", "", "&OK")
myGui.show
Gui_ContextMenu(GuiObj, GuiCtrlObj, Item, IsRightClick, X, Y){
MsgBox GuiObj.Name
}
Users browsing this forum: Draken, teadrinker and 23 guests