Je cherche une solution à mon petit programme qui doit afficher 4 caméras.
Je souhaite faire un clic droit sur la caméra en question et me permettre de renseigner une "URL" et ensuite visualiser.
► Afficher le texteVoir le code
#include <GUIConstantsEx.au3>
#include <IE.au3>
#include <WindowsConstants.au3>
$titre = "IP caméra Net" ; titre du programme
$width = "800"; largeur
$height = "595" ; hauteur
SplashTextOn($titre, "Chargement en cours...", 220, 40, -1, -1, 32)
GUICreate($titre, $width,$height,-1,-1, $WS_MAXIMIZEBOX + $WS_MINIMIZEBOX + $WS_SIZEBOX) ; will create a dialog box that when displayed is centered
; camera 1
$group1 = GUICtrlCreateGroup("Caméra 1", 10, 5, 385, 275)
$ie_cam1 = _IECreateEmbedded()
$Obj_cam1 = GUICtrlCreateObj($ie_cam1, 20, 20, 365, 250)
ObjEvent($Obj_cam1, "IEEvent_", "DWebBrowserEvents")
; camera 2
$group2 = GUICtrlCreateGroup("Caméra 2", 405, 5, 385, 275)
$ie_cam2 = _IECreateEmbedded()
$Obj_cam2 = GUICtrlCreateObj($ie_cam2, 415, 20, 365, 250)
ObjEvent($Obj_cam2, "IEEvent_", "DWebBrowserEvents")
$group3 = GUICtrlCreateGroup("Caméra 3", 10, 285, 385, 275)
$ie_cam3 = _IECreateEmbedded()
$Obj_cam3 = GUICtrlCreateObj($ie_cam3, 20, 300, 365, 250)
ObjEvent($Obj_cam1, "IEEvent_", "DWebBrowserEvents")
$group4 = GUICtrlCreateGroup("Caméra 4", 405, 285, 385, 275)
$ie_cam4 = _IECreateEmbedded()
$Obj_cam4 = GUICtrlCreateObj($ie_cam4, 415, 300, 365, 250)
ObjEvent($Obj_cam4, "IEEvent_", "DWebBrowserEvents")
;Informations sur le Redimentionnement
GUICtrlSetResizing($group1, $GUI_DOCKAUTO)
GUICtrlSetResizing($group2, $GUI_DOCKAUTO)
GUICtrlSetResizing($group3, $GUI_DOCKAUTO)
GUICtrlSetResizing($group4, $GUI_DOCKAUTO)
GUICtrlSetResizing($Obj_cam1, $GUI_DOCKAUTO)
GUICtrlSetResizing($Obj_cam2, $GUI_DOCKAUTO)
GUICtrlSetResizing($Obj_cam3, $GUI_DOCKAUTO)
GUICtrlSetResizing($Obj_cam4, $GUI_DOCKAUTO)
;;; fin de l'affichage du texte
SplashOff()
GUISetState(@SW_SHOW) ; will display an empty dialog box
; Run the GUI until the dialog is closed
While 1
$msg = GUIGetMsg()
If $msg = $GUI_EVENT_CLOSE Then ExitLoop
WEnd
#include <IE.au3>
#include <WindowsConstants.au3>
$titre = "IP caméra Net" ; titre du programme
$width = "800"; largeur
$height = "595" ; hauteur
SplashTextOn($titre, "Chargement en cours...", 220, 40, -1, -1, 32)
GUICreate($titre, $width,$height,-1,-1, $WS_MAXIMIZEBOX + $WS_MINIMIZEBOX + $WS_SIZEBOX) ; will create a dialog box that when displayed is centered
; camera 1
$group1 = GUICtrlCreateGroup("Caméra 1", 10, 5, 385, 275)
$ie_cam1 = _IECreateEmbedded()
$Obj_cam1 = GUICtrlCreateObj($ie_cam1, 20, 20, 365, 250)
ObjEvent($Obj_cam1, "IEEvent_", "DWebBrowserEvents")
; camera 2
$group2 = GUICtrlCreateGroup("Caméra 2", 405, 5, 385, 275)
$ie_cam2 = _IECreateEmbedded()
$Obj_cam2 = GUICtrlCreateObj($ie_cam2, 415, 20, 365, 250)
ObjEvent($Obj_cam2, "IEEvent_", "DWebBrowserEvents")
$group3 = GUICtrlCreateGroup("Caméra 3", 10, 285, 385, 275)
$ie_cam3 = _IECreateEmbedded()
$Obj_cam3 = GUICtrlCreateObj($ie_cam3, 20, 300, 365, 250)
ObjEvent($Obj_cam1, "IEEvent_", "DWebBrowserEvents")
$group4 = GUICtrlCreateGroup("Caméra 4", 405, 285, 385, 275)
$ie_cam4 = _IECreateEmbedded()
$Obj_cam4 = GUICtrlCreateObj($ie_cam4, 415, 300, 365, 250)
ObjEvent($Obj_cam4, "IEEvent_", "DWebBrowserEvents")
;Informations sur le Redimentionnement
GUICtrlSetResizing($group1, $GUI_DOCKAUTO)
GUICtrlSetResizing($group2, $GUI_DOCKAUTO)
GUICtrlSetResizing($group3, $GUI_DOCKAUTO)
GUICtrlSetResizing($group4, $GUI_DOCKAUTO)
GUICtrlSetResizing($Obj_cam1, $GUI_DOCKAUTO)
GUICtrlSetResizing($Obj_cam2, $GUI_DOCKAUTO)
GUICtrlSetResizing($Obj_cam3, $GUI_DOCKAUTO)
GUICtrlSetResizing($Obj_cam4, $GUI_DOCKAUTO)
;;; fin de l'affichage du texte
SplashOff()
GUISetState(@SW_SHOW) ; will display an empty dialog box
; Run the GUI until the dialog is closed
While 1
$msg = GUIGetMsg()
If $msg = $GUI_EVENT_CLOSE Then ExitLoop
WEnd


