unknown12 Posted August 28, 2006 Share Posted August 28, 2006 How can I get autoit to read a multi-line INI value? using this atm: IniRead("C:\Temp\myfile.ini", "section2", "key", "NotFound")Which only reads the first line. Any ideas? Link to comment Share on other sites More sharing options...
Valuater Posted August 28, 2006 Share Posted August 28, 2006 inireadsection()... see help 8) Link to comment Share on other sites More sharing options...
Valik Posted August 28, 2006 Share Posted August 28, 2006 INI values are stored on a single line so there is no such thing as a "multi-line INI value". If you need to have embedded carriage returns or line feeds, you'll need to translate that to something else on write and translate back to CR or LF on read. Link to comment Share on other sites More sharing options...
unknown12 Posted August 28, 2006 Author Share Posted August 28, 2006 INI values are stored on a single line so there is no such thing as a "multi-line INI value". If you need to have embedded carriage returns or line feeds, you'll need to translate that to something else on write and translate back to CR or LF on read.Got an example? Link to comment Share on other sites More sharing options...
Valik Posted August 28, 2006 Share Posted August 28, 2006 No, nor would I show you one. It's a simple concept. If you have any chance at all at being half-way decent at AutoIt, you should be able to figure this very simple problem out on your own. Me holding your hand showing you how to do it isn't going teach you much. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted August 28, 2006 Moderators Share Posted August 28, 2006 (edited) Got an example?StringReplace($String, @CR, Chr(01))Do whateverStringReplace($String, Chr(01), @CR)Edit:Before I'm flammed for showing how to change something, do something, then change it back... please note the post times Edit2:Then again, the more I look at it, it looks like another one of my, wtf am I talking about posts. Edited August 28, 2006 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Richard Robertson Posted August 28, 2006 Share Posted August 28, 2006 Woo! Don't give him code, tell him that he should replace every Carridge Return with "@CR" and every Line Feed with "@LF". Then let him figure out how to convert them himself. This is in no way sexist, using the term "him", unknown is merely a difficult name to distinguish. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted August 28, 2006 Moderators Share Posted August 28, 2006 Woo! Don't give him code, tell him that he should replace every Carridge Return with "@CR" and every Line Feed with "@LF". Then let him figure out how to convert them himself. This is in no way sexist, using the term "him", unknown is merely a difficult name to distinguish.I have absolutely no idea what your talking about or who you are talking too (your reply is more confusing than the thread itself)... "him"? I don't see that anywhere. And if your talking to me, if you regard 2 lines "code" then sorry... but... just saying StringReplace() would have been the same IMHO. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. 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