| View previous topic :: View next topic |
| Author |
Message |
Games Guest
|
Posted: Sat Feb 07, 2009 9:41 am Post subject: ini file comments? |
|
|
Can you place comments in an ini file without disturbing the data?? for example:
blah=1 ;comment here
item=2 ;comment here
blahblah=3 ;comment here |
|
| Back to top |
|
 |
wrong section alert Guest
|
Posted: Sat Feb 07, 2009 10:24 am Post subject: Re: ini file comments? |
|
|
| Games wrote: | | Can you place comments in an ini file without disturbing the data? |
Ask for help |
|
| Back to top |
|
 |
2 moderator Guest
|
Posted: Sat Feb 07, 2009 10:29 am Post subject: Re: ini file comments? |
|
|
| wrong section alert wrote: | | Games wrote: | | Can you place comments in an ini file without disturbing the data? |
Ask for help |
oh, crap. Mod, please delete that post (and this one) - I thought I was in scripts and functions.
I have to go now (and find something to beat my head with). |
|
| Back to top |
|
 |
Guest
|
Posted: Sat Feb 07, 2009 10:54 am Post subject: |
|
|
it depends on what you mean by "without disturbing the data".
The key value (along with the comment) will be assigned to outputvar.
Using your example, Outputvar will contain "blah=1 ;comment here" |
|
| Back to top |
|
 |
Superfraggle
Joined: 02 Nov 2004 Posts: 1019 Location: London, UK
|
Posted: Sat Feb 07, 2009 12:48 pm Post subject: |
|
|
| wikipedia wrote: | Comments
Semicolons ( indicate the start of a comment. Comments continue to the end of the line. Everything between the semicolon and the End of Line is ignored.
|
However my tests show that AHK just copies the whole line ignoring comments. You can easily parse the string retrieved and remove the comments yourself... _________________ Steve F AKA Superfraggle
http://r.yuwie.com/superfraggle |
|
| Back to top |
|
 |
|