Damein Posted October 24, 2010 Share Posted October 24, 2010 For some reason I can't get this to work: $var = IniReadSection("C:\Users\***\Desktop\Test\Test\Test.ini", "Test") MsgBox(0, "test", $Var) The msgbox comes back as empty The ini looks like this: [Test] TestKey=TestVar *is confused* Most recent sig. I made Quick Launcher W/ Profiles Topic Movie Database Topic & Website | LiveStreamer Pro Website | YouTube Stand-Alone Playlist Manager: Topic | Weather Desktop Widget: Topic | Flash Memory Game: Topic | Volume Control With Mouse / iTunes Hotkeys: Topic | Weather program: Topic | Paws & Tales radio drama podcast mini-player: Topic | Quick Math Calculations: Topic Link to comment Share on other sites More sharing options...
Realm Posted October 24, 2010 Share Posted October 24, 2010 Hello Damien, From the Help File 'Returns a 2 dimensional array where element[n][0] is the key and element[n][1] is the value.' 'The number of elements returned will be in $result[0][0].' IniReadSection returns a Multi-Dimensional Array. So try this: #include <Array.au3> $var = IniReadSection("C:\Users\***\Desktop\Test\Test\Test.ini", "Test") _ArrayDisplay($var,'Test.ini') Realm My Contributions: Unix Timestamp: Calculate Unix time, or seconds since Epoch, accounting for your local timezone and daylight savings time. RegEdit Jumper: A Small & Simple interface based on Yashied's Reg Jumper Function, for searching Hives in your registry. Link to comment Share on other sites More sharing options...
Damein Posted October 24, 2010 Author Share Posted October 24, 2010 Yeah, sorry, I didn't get a chance to edit my post. I feel stupid ^^; I found that section after I posted, silly me! Most recent sig. I made Quick Launcher W/ Profiles Topic Movie Database Topic & Website | LiveStreamer Pro Website | YouTube Stand-Alone Playlist Manager: Topic | Weather Desktop Widget: Topic | Flash Memory Game: Topic | Volume Control With Mouse / iTunes Hotkeys: Topic | Weather program: Topic | Paws & Tales radio drama podcast mini-player: Topic | Quick Math Calculations: Topic 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