KillingEye Posted March 6, 2010 Share Posted March 6, 2010 Hi, I want to read some information out of an inputbox and want to save it in a .ini But this is the inioutput: [Login] Name=0 Encrypt= $pass = "random" $inputacc = InputBox("Account", "Gib bitte deinen Account namen ein") $inputacc2 = GuiCtrlread($inputacc) iniwrite("manager.ini", "Login", "Name", GuiCtrlread($inputacc2)) $inputpasswort = InputBox("Passwort", "Gib bitte dein Passwort ein") $inputpasswort2 = GuiCtrlRead($inputpasswort) $Encrypt = _StringEncrypt(1, $inputpasswort2, $pass, 2);Encrypt $password with Encryption password at level 1 iniwrite("manager.ini", "Login", "Encrypt", $Encrypt) so wtf can I do? Link to comment Share on other sites More sharing options...
KaFu Posted March 6, 2010 Share Posted March 6, 2010 (edited) Try something like this: #include <String.au3> $pass = "random" $input = InputBox("Account", "Gib bitte deinen Account namen ein") if @error then MsgBox(0,"Fehler","Eingabe abgebrochen") Exit endif IniWrite("manager.ini", "Login", "Name", $input) $input = InputBox("Passwort", "Gib bitte dein Passwort ein") if @error then MsgBox(0,"Fehler","Eingabe abgebrochen") Exit endif IniWrite("manager.ini", "Login", "Passwort", $input) IniWrite("manager.ini", "Login", "Encrypt", _StringEncrypt(1, $input, $pass, 2)) Edited March 6, 2010 by KaFu OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
KillingEye Posted March 6, 2010 Author Share Posted March 6, 2010 It Works! Thank you for help Danke ^^ 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