McGod Posted August 12, 2006 Posted August 12, 2006 Ok, I'm making an annoucement board for my clan. So they will open this program, it will download an ini and display the information. Now I'm making a program that will make the actual ini. But since Im using a form the ini will look like [main] Annoucement="Hello everyone, how are you all?" [b] & @CRLF & [/b] "This is blah blah" It would show two lines, but when i use GUICtrlRead it gives me the basic Hello everyone, how are you all? This is blah blah Anyone know how to keep the @CRLF in the code? [indent][center][u]Formerly Chip[/u][/center]~UDFs~[/indent][u]IRC.au3 - Allows you to connect to IRC ServersINetCon.au3 - Connects/Disconnects/Check Status of InternetHardware Key - Creates a unique hardware hashScriptComm - Allows you to communicate between scripts using WM_COPYDATA[/u][indent]~Programs~[/indent][indent]SimonAu3ForumsIRC Bot~Web Site~Web Autoit Example[/indent][indent][b][/b][/indent][u][/u]
bluebearr Posted August 12, 2006 Posted August 12, 2006 Write your INI like this: [main] Annoucement=Hello everyone, how are you all? @CRLF This is blah blah Then, since you are probably not going to talk to your family about carriage returns , you can then do this: $inifile = @ScriptDir & "\test.ini" $Text = IniRead($inifile, "main", "Annoucement", "") if $Text <> "" Then $Text = StringReplace($Text, " @CRLF ", @CRLF) MsgBox(0, "Announcement", $Text) EndIf BlueBearrOddly enough, this is what I do for fun.
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