However, when I try it on my own GUI, it doesn't work. Can someone please tell me what I'm getting wrong?
I tried three cases: Normal, RightClick, and DoubleClick. Only the normal case works.
I have a complex, transparent menu:
But for the sake of this post, I stripped it down to bare minimum. Here's the code:
Code: Select all
Gui, 50:Add, Button, xm ym hWndhBtn12 gWriteDicOnly, % "Write Dictionary Only"
Gui, 50:Show
return
WriteDicOnly:
Switch A_GuiEvent {
;Case "Normal": MsgBox, You have clicked the button.
Case "RightClick": MsgBox, You have clicked the right mouse button.
Case "DoubleClick": MsgBox, Double clicked!
}
Return