Un petit bout de code :
Code : Tout sélectionner
#include <GuiConstants.au3>
$Form1_1 = GUICreate("Connecter un lecteur réseau I:", 346, 145, 318, 194)
GUISetFont(8, 400, 0, "Times New Roman")
$Label1 = GUICtrlCreateLabel(" Nom d'utilisateur : ", 16, 8, 191, 23)
GUICtrlSetFont(-1, 12, 400, 0, "Times New Roman")
$Label2 = GUICtrlCreateLabel(" Mot de passe :", 16, 41, 98, 23)
GUICtrlSetFont(-1, 12, 400, 0, "Times New Roman")
$User = GUICtrlCreateCombo("Toto", 208, 8, 118, 25)
GUICtrlSetFont(-1, 12, 400, 0, "Times New Roman")
$Pwd = GUICtrlCreateInput("", 115, 41, 211, 27, $ES_PASSWORD)
GUICtrlSetFont(-1, 12, 400, 0, "Times New Roman")
GUICtrlSetState(-1, $GUI_FOCUS)
$OK = GUICtrlCreateButton("&OK", 144, 112, 49, 25, 0)
GUICtrlSetFont(-1, 12, 400, 0, "Times New Roman")
$Checkbox = GUICtrlCreateCheckbox(" Ouvr&ir le lecteur réseau I:", 8, 80, 249, 25)
GUICtrlSetFont(-1, 12, 400, 0, "Times New Roman")
GUISetState(@SW_SHOW, $Form1_1)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Merci