Je n'arrive pas à faire que quand j'appui sur le Bouton 2 , cela m'ouvre cette fenètre :
Code : Tout sélectionner
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form2 = GUICreate("...", 419, 331, 192, 123)
$Pic1 = GUICtrlCreatePic("C:\...", 0, 0, 417, 329)
$Button1 = GUICtrlCreateButton("...", 8, 8, 161, 57)
$Button2 = GUICtrlCreateButton("...", 8, 72, 161, 57)
$Button3 = GUICtrlCreateButton("...", 8, 136, 161, 57)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Code : Tout sélectionner
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("...", 442, 330, 192, 124)
$Pic1 = GUICtrlCreatePic("C:\...", 0, 0, 441, 329)
$Button1 = GUICtrlCreateButton("...", 256, 8, 177, 65)
$Button2 = GUICtrlCreateButton("...", 256, 256, 179, 65)
GUICtrlSetState($Pic1, $GUI_DISABLE)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
#EndRegion ### END Koda GUI section ###
#Region ### START Koda GUI section ### Form=
$Form2 = GUICreate("...", 419, 331, 192, 123)
$Pic1 = GUICtrlCreatePic("C:\...", 0, 0, 417, 329)
$Button1 = GUICtrlCreateButton("...", 8, 8, 161, 57)
$Button2 = GUICtrlCreateButton("...", 8, 72, 161, 57)
$Button3 = GUICtrlCreateButton("...", 8, 136, 161, 57)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("...", 615, 438, 192, 124)
$Pic1 = GUICtrlCreatePic("C:\...", 0, 0, 612, 436)
$Button1 = GUICtrlCreateButton("...", 128, 136, 161, 65)
$Button2 = GUICtrlCreateButton("...", 256, 296, 113, 57)
$Label1 = GUICtrlCreateLabel("...", 1000, 0, 110, 17)
$Button3 = GUICtrlCreateButton("...", 320, 136, 169, 65)
$Button4 = GUICtrlCreateButton("...", 208, 216, 201, 65)
$Button5 = GUICtrlCreateButton("...", 320, 55, 169, 65)
$Button6 = GUICtrlCreateButton("...",128, 55, 161, 65)
GUICtrlSetState($Pic1, $GUI_DISABLE)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button2
Exit
Case $Button1
ShellExecute("C:\...")
Exit
Case $Button3
ShellExecute("C:\...")
Exit
Case $Button4
ShellExecute("C:\...")
Exit
Case $Button5
ShellExecute("C:\...")
Exit
Case $Button6
ShellExecute("C:\...")
Exit
EndSwitch
WEnd
EndSwitch
WEnd
EndSwitch
WEndTheG4ME





