Code : Tout sélectionner
GUISetOnEvent($GUI_EVENT_SECONDARYDOWN,"enregistrer")Code : Tout sélectionner
_IEErrorHandlerRegister()
$ie = _IECreateEmbedded()
$ieobject = GUICtrlCreateObj($ie, 20, 120, 910, 540)Code : Tout sélectionner
GUISetOnEvent($GUI_EVENT_SECONDARYDOWN,"enregistrer")Code : Tout sélectionner
_IEErrorHandlerRegister()
$ie = _IECreateEmbedded()
$ieobject = GUICtrlCreateObj($ie, 20, 120, 910, 540)
$array[4] = ID of the control that the mouse cursor is hovering over (or 0 if none)

Code : Tout sélectionner
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 296, 234, 193, 147)
$Button1 = GUICtrlCreateButton("Button1", 48, 56, 97, 65, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $GUI_EVENT_SECONDARYDOWN
$cursor = GUIGetCursorInfo()
If $cursor[4] = $Button1 Then
MsgBox("", "", "Clic !!!")
EndIf
EndSwitch
WEnd