Aceguy Posted June 15, 2006 Posted June 15, 2006 Hello, is there a way to extract the |charlie| from this inifle. my inifile looks like this. [test] 0=aplha|beta|charile|delta many thanks (AGAIN). [u]My Projects.[/u]Launcher - not just for games & Apps (Mp3's & Network Files)Mp3 File RenamerMy File Backup UtilityFFXI - Realtime to Vana time Clock
GaryFrost Posted June 15, 2006 Posted June 15, 2006 (edited) not sure if this is what your asking for $s_test = IniRead(@ScriptDir & '\test.ini','test',0,'') $a_test = StringSplit($s_test,'|') For $x = 1 To $a_test[0] MsgBox(0,'test',$a_test[$x] Next Edit: Left out the default param Edited June 15, 2006 by gafrost SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
Valuater Posted June 15, 2006 Posted June 15, 2006 yea... frost is faster $info = IniRead(@ScriptDir & "\test.ini", "test", "0", "") If $info = "" Then MsgBox(0,"ERROR", "File not found") Exit Else $splt = StringSplit($info, "|") MsgBox(0,"Found", $splt[3]) EndIf error checking added 8)
Valuater Posted June 15, 2006 Posted June 15, 2006 (edited) not sure if this is what your asking for $s_test = IniRead(@ScriptDir & ' est.ini','test',0) $a_test = StringSplit($s_test,'|') For $x = 1 To $a_test[0] MsgBox(0,'test',$a_test[$x] Next C:\Program Files\AutoIt3\Examples\My Stuff\test.au3(2,52) : ERROR: IniRead() [built-in]called with wrong number of args. $s_test = IniRead(@ScriptDir & '\test.ini','test',0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ faster is not always better lol 8) *************** EDIT... NOTICE how the Autoit code has an error from the "reply" button Edited June 15, 2006 by Valuater
Aceguy Posted June 15, 2006 Author Posted June 15, 2006 You both Rock. I'm still in my nooby stage, so i need help again. the message box appears 4x, each with the slipt string. so to get the |charile| do i. msgbox(0,"",a_test[x][3]) ? [u]My Projects.[/u]Launcher - not just for games & Apps (Mp3's & Network Files)Mp3 File RenamerMy File Backup UtilityFFXI - Realtime to Vana time Clock
Aceguy Posted June 15, 2006 Author Posted June 15, 2006 ok, not to worry. sorted, TY SOOOOOOOOOOOO MUCH [u]My Projects.[/u]Launcher - not just for games & Apps (Mp3's & Network Files)Mp3 File RenamerMy File Backup UtilityFFXI - Realtime to Vana time Clock
RazerM Posted June 15, 2006 Posted June 15, 2006 (edited) To get charlie use $s_test = IniRead(@ScriptDir & '\test.ini','test',0, "") $a_test = StringSplit($s_test,'|') MsgBox(0,'test',$a_test[3]) Edited June 15, 2006 by RazerM My Programs:AInstall - Create a standalone installer for your programUnit Converter - Converts Length, Area, Volume, Weight, Temperature and Pressure to different unitsBinary Clock - Hours, minutes and seconds have 10 columns each to display timeAutoIt Editor - Code Editor with Syntax Highlighting.Laserix Editor & Player - Create, Edit and Play Laserix LevelsLyric Syncer - Create and use Synchronised Lyrics.Connect 4 - 2 Player Connect 4 Game (Local or Online!, Formatted Chat!!)MD5, SHA-1, SHA-256, Tiger and Whirlpool Hash Finder - Dictionary and Brute Force FindCool Text Client - Create Rendered ImageMy UDF's:GUI Enhance - Enhance your GUIs visually.IDEA File Encryption - Encrypt and decrypt files easily! File Rename - Rename files easilyRC4 Text Encryption - Encrypt text using the RC4 AlgorithmPrime Number - Check if a number is primeString Remove - remove lots of strings at onceProgress Bar - made easySound UDF - Play, Pause, Resume, Seek and Stop.
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