Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 17:12

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

Advertisement



IniRead ohne IniWrite , Hilfe !

Discussion on IniRead ohne IniWrite , Hilfe ! within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2009
Posts: 74
Received Thanks: 13
IniRead ohne IniWrite , Hilfe !

Hi also ich wollte den Inhalt aus einer Ini/Txt datei auslesen ,iniRead("test.txt","","","").Aber ohne den Befehl IniWrite vorher also wurden noch keine Sectionen oder so angelegt wie kann ich dann den Inhalt auslesen ?

Das hab ich jetzt und des geht ned

Quote:
$Inhalt = IniRead("test.txt","","","")

MsgBox(0,"hi",$Inhalt)
Help pls


Für die dies nich geblickt haben was ich brauche(is ja auch ned so toll erklärt:

1.Ich habe eine Ini datein erstellt
2.Ich habe in sie hallo(oder anderer text) geschrieben
3.Ich will diese ganze Ini Datei auslesen
4.Irgendwo das Wort (hallo) anzeigenlassen (MsgBox oder so..)
sido47 is offline  
Old 05/30/2010, 18:23   #2
 
elite*gold: 0
Join Date: Nov 2009
Posts: 927
Received Thanks: 1,317
Quote:
Originally Posted by affe100 View Post
Du musst anstatt von IniRead, FileRead bzw FileReadLine benutzen.
Oder wirklich eine .ini-Datei erstellen. Da rein schreibst dann:

[Sektion1]
Text = Dein Text

Deine IniRead sieht dann so aus:

PHP Code:
$DeinText IniRead("test.ini""Sektion1","Text",0
huberhans is offline  
Thanks
1 User
Old 05/30/2010, 19:29   #3
 
elite*gold: 0
Join Date: Aug 2009
Posts: 74
Received Thanks: 13
ah danke
sido47 is offline  
Old 05/30/2010, 20:49   #4
 
Σternαl.'s Avatar
 
elite*gold: 20
Join Date: Dec 2009
Posts: 1,850
Received Thanks: 484
PHP Code:
#include <GUIConstantsEx.au3>

GUICreate("FileRead"20050)
GUISetState(@sw_show)

[
COLOR="Red"]$fr FileRead("Dein Pfad...\hallo.txt")[/COLOR]
GUICtrlCreateLabel($fr5025)


while 
1
    
Do
        
sleep(10)
    
Until GUIGetMsg() = $GUI_EVENT_CLOSE
    
Exit
WEnd 
Kannst du auch benutzen.
Ist sogar besser als Ini Read, weil du damit alle Textdateien auslesen kannst^^
Σternαl. is offline  
Reply


Similar Threads Similar Threads
IniRead problem
08/13/2010 - AutoIt - 7 Replies
Hab mich weiter durch etliche tuts gequält auch in nem autoit forum gefragt aber so richtig bekommt keiner das hin HotKeySet("{ESC}","EXITT") $ini = "config.ini" $iniread = IniRead($ini,"Nutzung","ja/nein&quo t;,"ja","NotFound") If $iniread = "ja" Then $name = IniRead($ini,"Login","Name") $pw = IniRead($ini,"Login","PW")
Hilfe zu iniwrite
05/29/2010 - AutoIt - 2 Replies
Hi leute, ich bin ein autoit anfänger und habe ein problem: Ich habe drei Inputfelder, deren Inhalte in eine Ini geschrieben werden sollen. Allerdings steht in der Ini statt den Inhalten der Inputfelder immer nur 3 (anstatt dem ersten), 4 (anstatt dem zweiten), 5 (anstatt dem dritten) Kann mir da jemand helfen? der kriegt auch ein THX
IniRead Frage
08/23/2009 - GW Bots - 17 Replies
Jedesmal wenn ich versuche einen Testlauf von meinem Login-Script zu starten kommt dieser Fehler: ERROR: IniRead() called with wrong number of args. Local $accname = IniRead("acc.ini", "Account", "Accountname") Doch was ist daran falsch? Ich habe schon in der AutoIT-Hilfe geschaut doch die konnte mir nicht weiterhelfen.
Brauch mal hilfe bei iniwrite
08/05/2009 - AutoIt - 2 Replies
Hi Leute, ich hab mal wieder ein Problem it Autoit, und zwar will ich das er aus inputbox 1 & 2 die daten entnimmt und in ne ini reinschreibt die aufm desktop gespeichert wird.Kann mir jmd helfen weiss nich weiter -.- #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 190, 66, 192, 124) $Input1 = GUICtrlCreateInput("Input1", 16, 8, 137, 21) $Input2 =...
iniwrite
07/23/2009 - AutoIt - 7 Replies
steh grad irgendwie aufm schlauch, kann mir mal bitte wer sagen warum des iniwrite hier net funktioniert? checkpath() Func checkpath() $path = IniRead("tt6.ini", "path", "folder", "nothing set") If $path = "nothing set" Or $path = "" Then $path1 = FileOpenDialog("please set the path to your Guild Wars executable", @ProgramFilesDir, "gw.exe (*.exe)", 1 + 2) If $path1 = "" Then MsgBox(16, "", "the bot wont work without your right guildwars dir!")



All times are GMT +1. The time now is 17:13.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.