wedsxcrfv Posted November 20, 2007 Share Posted November 20, 2007 I made a dialog in wich you can fill in your username and password of something and it has to save it in an INI but i have no idea how to do it. So in the GUI you fill it in and then i dont know it further... I am not English... But that matters nothing, I'm Dutch and i SPEAK English so it doesnt matter :P Link to comment Share on other sites More sharing options...
MadBoy Posted November 20, 2007 Share Posted November 20, 2007 I made a dialog in wich you can fill in your username and password of something and it has to save it in an INI but i have no idea how to do it.So in the GUI you fill it in and then i dont know it further...Then u use GuiCtrlRead($variable) and then you put it in using IniWrite that you should map under button or so. If you provide some code we can show you how to work from that. My little company: Evotec (PL version: Evotec) Link to comment Share on other sites More sharing options...
wedsxcrfv Posted November 20, 2007 Author Share Posted November 20, 2007 (edited) I already understand it: #include <GUIConstants.au3> #Region ### START Koda GUI section ### Form=koda\forms\gebruikersnaam&wachtwood invullen.kxf\autoit\koda\forms\gebruikersnaam&wachtwood invullen.kxf $WGebruikerInstellen = GUICreate("Gebruikersnaam & wachtwoord instellen", 345, 179, -1, -1) $VulinWachtwoord = GUICtrlCreateInput("", 16, 96, 305, 21, BitOR($ES_PASSWORD,$ES_AUTOHSCROLL)) $KnopOk = GUICtrlCreateButton("&OK", 22, 144, 75, 25, 0) $KnopCancel = GUICtrlCreateButton("&Cancel", 239, 144, 75, 25, 0) $VulinWachtwoordLabel = GUICtrlCreateLabel("Typ Wachtwood", 16, 76, 83, 17) $VulinGebruikersnaam = GUICtrlCreateInput("", 16, 32, 305, 21) $VulinGerbuikersnaamLabel = GUICtrlCreateLabel("Typ Gebruikersnaam", 17, 5, 102, 17) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $KnopOk $VulinGebruikersnaam2 = GUICtrlRead ($Vulingebruikersnaam) $VulinWachtwoord2 = GUICtrlRead ($Vulinwachtwoord) IniWrite ( "Gerbuiker&WachtwoordTribal", "Gerbuikersnaam", "Gebruikersnaam", $Vulingebruikersnaam2 ) IniWrite ( "Gerbuiker&WachtwoordTribal", "Wachtwoord", "Wachtwoord", $Vulinwachtwoord2 ) Exit Case $KnopCancel Exit EndSwitch WEnd It is in dutch Edited November 20, 2007 by wedsxcrfv I am not English... But that matters nothing, I'm Dutch and i SPEAK English so it doesnt matter :P Link to comment Share on other sites More sharing options...
AlmarM Posted November 20, 2007 Share Posted November 20, 2007 Like: $READuser = GUICtrlRead($variable1) $READpass = GUICtrlRead($variable2) IniWrite(@ScriptDir & "\Account.ini", "section", "key", $READuser & $READpass) Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now