Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 05:43

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



INI write, read, display data

Discussion on INI write, read, display data within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2014
Posts: 43
Received Thanks: 1
INI write, read, display data

Hi

Im testing ini function and i have some problems with it. When i add item to ini file it owerite my first entry, and it dont show me items from ini on listview.

And i need instead of id to be username, password, nickname

Here is my code so far i tested


And items in ini file

[Account]
id=1234,1234
id=bah
id=afk
id=rwet
id=gtwddda
LiveLong23 is offline  
Old 04/28/2016, 17:10   #2
 
alpines's Avatar
 
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
Just use a number for the Ini-Loop. Something like
Code:
[Account]
1=user1,pass1
2=user2,pass2
alpines is offline  
Old 04/28/2016, 17:39   #3
 
elite*gold: 0
Join Date: Jan 2014
Posts: 43
Received Thanks: 1
But how to write to ini file when i must enter section and key, and 1,2 is keys.
LiveLong23 is offline  
Old 04/28/2016, 17:47   #4
 
elite*gold: 0
Join Date: Mar 2016
Posts: 104
Received Thanks: 34
i found an old script thats not like yours but i think u can use some things from it
M3mphizzt is offline  
Old 04/28/2016, 18:17   #5
 
elite*gold: 0
Join Date: Jan 2014
Posts: 43
Received Thanks: 1
I have 3 columns

Code:
_GUICtrlListView_AddColumn($List1, "Username", 150)
_GUICtrlListView_AddColumn($List1, "Password", 145)
_GUICtrlListView_AddColumn($List1, "Nickname", 150)
and i try to populate it like this

Code:
Func __readIni()

	If FileExists($ini) Then
		$fOpen = FileOpen($ini)
		$fRead = FileRead($fOpen)
		$nItem = StringReplace($fRead, "[Accounts]", "")
		_GUICtrlListView_AddItem($List1,$nItem&@CRLF)
	EndIf

EndFunc
But i get only 1 line in 1st column

LiveLong23 is offline  
Old 04/28/2016, 18:27   #6
 
°Incinerate's Avatar
 
elite*gold: 400
Join Date: Jun 2011
Posts: 513
Received Thanks: 101
Try this:


°Incinerate is offline  
Thanks
1 User
Old 04/28/2016, 18:37   #7
 
elite*gold: 0
Join Date: Jan 2014
Posts: 43
Received Thanks: 1
Quote:
Originally Posted by °Incinerate View Post
Try this:


This works fine, thank u.
LiveLong23 is offline  
Reply


Similar Threads Similar Threads
Inet(-Read/-Write)
12/27/2011 - AutoIt - 0 Replies
#Helped :awesome:
LUA file write/read
08/21/2011 - Metin2 Private Server - 4 Replies
Hallo =) Ich würde gerne wissen ob es möglich ist mit den LUA Befehlen von Mt Textdateien zu schreiben und ob das irgend ein Server verwendet, ggf Erfahrungen mit so einem System gesammelt hat. Danke im vorraus! grüßle LordMampf2
ce write/read frage
12/21/2009 - General Coding - 5 Replies
ich habe da eine frage bezüglich der funktionen von dem programm cheatengine. hierzu weitere infos : ich habe einen teleporter für flyff gecodet. ich schreibe die werte mithilfe von WriteProcessMemory oder lese sie mit ReadProcessMemory aus. flyff crasht bei zu weiter entfernung vom a punkt . fals ich dasselbe in ce versuche funktioniert es einwandfrei. nun meine frage : wie schreibt und liest ce die werte aus ? auf jedenfall nicht mit read/write processmem
Please read, and write =P
04/09/2009 - Runescape - 0 Replies
What do you want on this forum? I want frequent visitors to list every good idea. Maybe a guide they need. What do people need and want?



All times are GMT +1. The time now is 05:46.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.