Hello there ... my current project has me a little stumped. I'd like to take an action if someone right-clicks on a button. I am polling for button clicks currently with the following function:
Func CheckEvents()
; check for button click
$nMsg = GUIGetMsg()
Select
Case $nMsg = $GUI_EVENT_CLOSE
Exit
Case $nMsg = $btnOne
Return "btnOne"
Case $nMsg = $btnTwo
Return "btnTwo"
Case $nMsg = $btnThree
Return "btnThree"
Case $nMsg = $btnFour
Return "btnFour"
EndSelect
R
UritOR, Of course: #include <GUIConstantsEx.au3>
#include <MsgBoxConstants.au3>
Opt("GUIOnEventMode", 1)
$hGUI = GUICreate("Test", 500, 500)
GUISetOnEvent($GUI_EVENT_CLOSE, "_Exit")
GUISetOnEvent($GUI_EVENT_SECONDARYUP, "_SecondaryUp")
$cButton = GUICtrlCreateButton("Test", 10, 10, 80, 30)
GUICtrlSetOnEvent($cButton, "_Button")
GUISetState()
While 1
Sleep(10)
WEnd
Func _Button