Jump to content
Sign in to follow this  

Saving A username&Password

Recommended Posts

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 :P 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)

Share this post

Link to post
Share on other sites

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)
 #EndRegion ### END Koda GUI section ###
 While 1
     $nMsg = GUIGetMsg()
     Switch $nMsg
         Case $GUI_EVENT_CLOSE
         Case $KnopOk
             $VulinGebruikersnaam2 = GUICtrlRead ($Vulingebruikersnaam)
             $VulinWachtwoord2 = GUICtrlRead ($Vulinwachtwoord)
             IniWrite ( "Gerbuiker&WachtwoordTribal", "Gerbuikersnaam", "Gebruikersnaam", $Vulingebruikersnaam2 )
             IniWrite ( "Gerbuiker&WachtwoordTribal", "Wachtwoord", "Wachtwoord", $Vulinwachtwoord2  )
         Case $KnopCancel

It is in dutch

Edited by wedsxcrfv

I am not English... But that matters nothing, I'm Dutch and i SPEAK English so it doesnt matter :P

Share this post

Link to post
Share on other sites


$READuser = GUICtrlRead($variable1)
$READpass = GUICtrlRead($variable2)
IniWrite(@ScriptDir & "\Account.ini", "section", "key", $READuser & $READpass)


A minesweeper game created in autoit, source available.


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.

Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Create New...