4Eyes Posted April 12, 2009 Share Posted April 12, 2009 Hi folks, Yes, I have read the help file and yes, I have searched the forums. I'd like to be able to read a variable number of parameters from an ini file so would like to do something like this: $MyVar = IniRead("MyIniFile", "MySection", $KeyCount, "n/a") but I get "Expected a "=" operator in assignment statement.:". I've also found that build the whole list of arguaments into a string and passing that doesn't work. I'd REALLY not like to have to preset the number of keys that can be used and it would make pretty ugly code too. Any help will be gratefully accepted. Ta, 4Eyes Link to comment Share on other sites More sharing options...
CodyBarrett Posted April 12, 2009 Share Posted April 12, 2009 (edited) inireadsection() sorts the keys & values into an array $Array[Key][Value] Edited April 12, 2009 by CodyBarrett [size="1"][font="Tahoma"][COMPLETED]-----[FAILED]-----[ONGOING]VolumeControl|Binary Converter|CPU Usage| Mouse Wrap |WinHide|Word Scrammbler|LOCKER|SCREEN FREEZE|Decisions Decisions|Version UDF|Recast Desktop Mask|TCP Multiclient EXAMPLE|BTCP|LANCR|UDP serverless|AIOCR|OECR|Recast Messenger|AU3C|Tik-Tak-Toe|Snakes & Ladders|BattleShips|TRON|SNAKE_____________________[u]I love the Helpfile it is my best friend.[/u][/font][/size] Link to comment Share on other sites More sharing options...
MrMitchell Posted April 12, 2009 Share Posted April 12, 2009 (edited) You can try INIReadSection() Edit: Heh Cody beat me to it. Edited April 12, 2009 by MrMitchell Link to comment Share on other sites More sharing options...
CodyBarrett Posted April 12, 2009 Share Posted April 12, 2009 haha sry my man [size="1"][font="Tahoma"][COMPLETED]-----[FAILED]-----[ONGOING]VolumeControl|Binary Converter|CPU Usage| Mouse Wrap |WinHide|Word Scrammbler|LOCKER|SCREEN FREEZE|Decisions Decisions|Version UDF|Recast Desktop Mask|TCP Multiclient EXAMPLE|BTCP|LANCR|UDP serverless|AIOCR|OECR|Recast Messenger|AU3C|Tik-Tak-Toe|Snakes & Ladders|BattleShips|TRON|SNAKE_____________________[u]I love the Helpfile it is my best friend.[/u][/font][/size] Link to comment Share on other sites More sharing options...
4Eyes Posted April 12, 2009 Author Share Posted April 12, 2009 That's brilliant! Thank you. Truly... I did research this before asking... there's sooooo much here though. Regards, 4Eyes Link to comment Share on other sites More sharing options...
CodyBarrett Posted April 12, 2009 Share Posted April 12, 2009 its all in the AUTOIT>funtion reference>file management section of help file [size="1"][font="Tahoma"][COMPLETED]-----[FAILED]-----[ONGOING]VolumeControl|Binary Converter|CPU Usage| Mouse Wrap |WinHide|Word Scrammbler|LOCKER|SCREEN FREEZE|Decisions Decisions|Version UDF|Recast Desktop Mask|TCP Multiclient EXAMPLE|BTCP|LANCR|UDP serverless|AIOCR|OECR|Recast Messenger|AU3C|Tik-Tak-Toe|Snakes & Ladders|BattleShips|TRON|SNAKE_____________________[u]I love the Helpfile it is my best friend.[/u][/font][/size] Link to comment Share on other sites More sharing options...
4Eyes Posted April 12, 2009 Author Share Posted April 12, 2009 its all in the AUTOIT>funtion reference>file management section of help fileyes, it is. I didn't recognise it for the solution to my problem that I'm VERY happy to say, it is. Link to comment Share on other sites More sharing options...
CodyBarrett Posted April 12, 2009 Share Posted April 12, 2009 your welcome i love the helpfile it is my best friend... well.... not literaly but you know haha [size="1"][font="Tahoma"][COMPLETED]-----[FAILED]-----[ONGOING]VolumeControl|Binary Converter|CPU Usage| Mouse Wrap |WinHide|Word Scrammbler|LOCKER|SCREEN FREEZE|Decisions Decisions|Version UDF|Recast Desktop Mask|TCP Multiclient EXAMPLE|BTCP|LANCR|UDP serverless|AIOCR|OECR|Recast Messenger|AU3C|Tik-Tak-Toe|Snakes & Ladders|BattleShips|TRON|SNAKE_____________________[u]I love the Helpfile it is my best friend.[/u][/font][/size] Link to comment Share on other sites More sharing options...
MrMitchell Posted April 12, 2009 Share Posted April 12, 2009 i love the helpfile it is my best friendYou should put that in your sig LoL By the way your "Decisions/Decisions" link in broken, I was curious what it was. Link to comment Share on other sites More sharing options...
CodyBarrett Posted April 12, 2009 Share Posted April 12, 2009 (edited) hmmm it is... ill make a topic in Examples... its not very impressive just a number generator.. OFF topic.. well yeah the helpfile has EVERYTHING that was designed for ScitTE.. and some stuff others have put in.. gonna go fix ma links EDIT fixed lol... Edited April 12, 2009 by CodyBarrett [size="1"][font="Tahoma"][COMPLETED]-----[FAILED]-----[ONGOING]VolumeControl|Binary Converter|CPU Usage| Mouse Wrap |WinHide|Word Scrammbler|LOCKER|SCREEN FREEZE|Decisions Decisions|Version UDF|Recast Desktop Mask|TCP Multiclient EXAMPLE|BTCP|LANCR|UDP serverless|AIOCR|OECR|Recast Messenger|AU3C|Tik-Tak-Toe|Snakes & Ladders|BattleShips|TRON|SNAKE_____________________[u]I love the Helpfile it is my best friend.[/u][/font][/size] 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