Nan je les disposer proprement ses en le collant que ça a fait ça ...
Code : Tout sélectionner
;//////////////////////////;
;///////Boot LaPoste///////;
;//////////////////////////;
#include <GUIConstants.au3>
#include <GUIConstantsEx.au3>
#include <IE.au3>
#include <File.au3>
;/////1er Gui avec image/////;
$Form1 = GUICreate("Boot LaPoste", 362, 258, 584, 319, BitOR($WS_CAPTION, $WS_POPUP, $WS_BORDER, $WS_CLIPSIBLINGS))
$GroupBox1 = GUICtrlCreateGroup("", -8, -8, 373, 270)
$Image1 = GUICtrlCreatePic("C:\Users\van\Desktop\van-helsing-dracula-wolf.jpg", 0, 0, 365, 260)
$Label2 = GUICtrlCreateLabel("Version : 1.0.0", 1, 240, 87, 17, $WS_GROUP)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0xFF0000)
GUICtrlSetBkColor(-1, 0x000000)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlSetState(-1, $GUI_HIDE)
GUISetState(@SW_SHOW)
Sleep(3000)
GUIDelete()
$Form2 = GUICreate("Boot LaPoste", 387, 143, 585, 302)
GUISetIcon("C:\Program Files\AutoIt3\Icons\filetype3.ico")
$login = GUICtrlCreateInput("", 104, 25, 121, 21)
$Label1 = GUICtrlCreateLabel("Adresse mail :", 24, 32, 69, 17)
$Label2 = GUICtrlCreateLabel("Mot de Passe :", 24, 64, 75, 17)
$mdp = GUICtrlCreateInput("", 104, 57, 121, 21)
$Group1 = GUICtrlCreateGroup("Login", 8, 8, 369, 89)
GUICtrlSetColor(-1, 0xFF0000))
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Button_connexion = GUICtrlCreateButton("Connexion", 24, 112, 75, 25, 0)
$Button_profile_enregistre = GUICtrlCreateButton("Enregistrer profile", 256, 24, 107, 25, 0)
$Button_profile_charge = GUICtrlCreateButton("Charger profile", 264, 56, 91, 25, 0)
$Button_exit = GUICtrlCreateButton("Quitter", 280, 112, 75, 25, 0)
GUISetState(@SW_SHOW)
DirCreate("profil")
While 1
$msg = GUIGetMsg()
Select
Case $msg = $Button_exit
$msg = $GUI_EVENT_CLOSE
Exit
Case $msg = $Button_connexion
$oie = _IECreate("http://www.laposte.net/")
_IELoadWait($oie)
$p = GUICtrlRead($login)
$m = GUICtrlRead($mdp)
If $p <> "" And $m <> "" Then
$obj_userlogin = _IEFormGetCollection($oie, 0)
$obj_user = _IEFormElementGetCollection($obj_userlogin, "Identifiant")
$obj_password = _IEFormElementGetCollection($obj_userlogin, "Mot de passe")
_IEFormElementSetValue($obj_user, $p)
_IEFormElementSetValue($obj_password, $m)
_IEFormSubmit($obj_userlogin)
EndIf
Case $msg = $Button_profile_charge
FileExists("profil/login.ini")
$p = IniRead("profil/login.ini", "Identifiants", "Adresse mail", "NotFound")
$m = IniRead("profil/login.ini", "Identifiants", "Mot de passe", "NotFound")
GUICtrlSetData($login, $p)
GUICtrlSetData($mdp, $m)
Case $msg = $Button_profile_enregistre
$p = GUICtrlRead($login)
$m = GUICtrlRead($mdp)
$Pseudo1 = IniWrite("profil/login.ini", "Identifiants", "Adresse mail", $p)
$Mdp1 = IniWrite("profil/login.ini", "Identifiants", "Mot de passe", $m)
EndSelect
WEnd