blizzedout Posted August 26, 2005 Share Posted August 26, 2005 Is it possible to save a multi lined edit box's content to an INI file, i can get it to save but it will be like this [INFO] EditBox= First Line Second Line Third Line and it only reads the first line. Link to comment Share on other sites More sharing options...
B3TA_SCR1PT3R Posted August 26, 2005 Share Posted August 26, 2005 (edited) Is it possible to save a multi lined edit box's content to an INI file, i can get it to save but it will be like this[INFO] EditBox= First Line Second Line Third Lineand it only reads the first line.<{POST_SNAPBACK}>ur values are "defined?" EditBox=FirstLine EditBox1 = SecondLine EditBox2 = Third Line ================== [Section] [Key] = [Value] Edited August 26, 2005 by B3TA_SCR1PT3R [right][font="Courier New"]...Run these streets all day, I can sleep when I die.[/font] [/right] Link to comment Share on other sites More sharing options...
blizzedout Posted August 27, 2005 Author Share Posted August 27, 2005 ur values are "defined?" EditBox=FirstLine EditBox1 = SecondLine EditBox2 = Third Line ================== [Section] [Key] = [Value]<{POST_SNAPBACK}>I meen when i enter lines in the edit box it creates undefinded lines Link to comment Share on other sites More sharing options...
therks Posted August 27, 2005 Share Posted August 27, 2005 The best thing I can come up with would be to convert line feed and carriage return characters into something else, so that all the text is on one line. Something like: $s_EditContent = GuiCtrlRead($ed_Content) $s_EditContent = StringStripCR($s_EditContent) $s_EditContent = StringReplace($s_EditContent, @LF, @TAB) IniWrite('filename.ini', 'Section', 'EditBox', $s_EditContent) Then when you want it back. $s_EditRetrieve = IniWrite('filename.ini', 'Section', 'EditBox', '') $s_EditRetrieve = StringReplace($s_EditRetrieve, @TAB, @CRLF) My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
blizzedout Posted August 27, 2005 Author Share Posted August 27, 2005 The best thing I can come up with would be to convert line feed and carriage return characters into something else, so that all the text is on one line.Something like:$s_EditContent = GuiCtrlRead($ed_Content) $s_EditContent = StringStripCR($s_EditContent) $s_EditContent = StringReplace($s_EditContent, @LF, @TAB) IniWrite('filename.ini', 'Section', 'EditBox', $s_EditContent)Then when you want it back.$s_EditRetrieve = IniWrite('filename.ini', 'Section', 'EditBox', '') $s_EditRetrieve = StringReplace($s_EditRetrieve, @TAB, @CRLF)<{POST_SNAPBACK}>lol to complicated for me, im gonna just take the multi line out. Link to comment Share on other sites More sharing options...
blizzedout Posted August 27, 2005 Author Share Posted August 27, 2005 lol to complicated for me, im gonna just take the multi line out.<{POST_SNAPBACK}>lol ohh man this looks crazy!expandcollapse popupIf $CURRENT_RUN = 1 Then If GUICtrlRead($radio1) = $GUI_CHECKED Then $CurrentFriendNum = GUICtrlRead($F1) Else $CURRENT_RUN = $CURRENT_RUN + 1 EndIF EndIF If $CURRENT_RUN = 2 Then If GUICtrlRead($radio2) = $GUI_CHECKED Then $CurrentFriendNum = GUICtrlRead($F2) Else $CURRENT_RUN = $CURRENT_RUN + 1 EndIF EndIF If $CURRENT_RUN = 3 Then If GUICtrlRead($radio3) = $GUI_CHECKED Then $CurrentFriendNum = GUICtrlRead($F3) Else $CURRENT_RUN = $CURRENT_RUN + 1 EndIF EndIF If $CURRENT_RUN = 4 Then If GUICtrlRead($radio4) = $GUI_CHECKED Then $CurrentFriendNum = GUICtrlRead($F4) Else $CURRENT_RUN = $CURRENT_RUN + 1 EndIF EndIF If $CURRENT_RUN = 5 Then If GUICtrlRead($radio5) = $GUI_CHECKED Then $CurrentFriendNum = GUICtrlRead($F5) Else $CURRENT_RUN = $CURRENT_RUN + 1 EndIF EndIF If $CURRENT_RUN = 6 Then If GUICtrlRead($radio6) = $GUI_CHECKED Then $CurrentFriendNum = GUICtrlRead($F6) Else $CURRENT_RUN = $CURRENT_RUN + 1 EndIF EndIF If $CURRENT_RUN = 7 Then If GUICtrlRead($radio7) = $GUI_CHECKED Then $CurrentFriendNum = GUICtrlRead($F7) Else $CURRENT_RUN = $CURRENT_RUN + 1 EndIF EndIF If $CURRENT_RUN = 8 Then If GUICtrlRead($radio8) = $GUI_CHECKED Then $CurrentFriendNum = GUICtrlRead($F8) Else $CURRENT_RUN = $CURRENT_RUN + 1 EndIF EndIF If $CURRENT_RUN = 9 Then If GUICtrlRead($radio9) = $GUI_CHECKED Then $CurrentFriendNum = GUICtrlRead($F9) Else $CURRENT_RUN = $CURRENT_RUN + 1 EndIF EndIF If $CURRENT_RUN = 10 Then If GUICtrlRead($radio10) = $GUI_CHECKED Then $CurrentFriendNum = GUICtrlRead($F10) Else $CURRENT_RUN = $CURRENT_RUN + 1 EndIF EndIF If $CURRENT_RUN = 11 Then If GUICtrlRead($radio11) = $GUI_CHECKED Then $CurrentFriendNum = GUICtrlRead($F11) Else $CURRENT_RUN = $CURRENT_RUN + 1 EndIF EndIF If $CURRENT_RUN = 12 Then If GUICtrlRead($radio12) = $GUI_CHECKED Then $CurrentFriendNum = GUICtrlRead($F12) Else $CURRENT_RUN = $CURRENT_RUN + 1 EndIF EndIFlol and it actually works! Link to comment Share on other sites More sharing options...
SupraNatural Posted August 27, 2005 Share Posted August 27, 2005 (edited) This is off memory so im not entirely sure it works but i think you can simplify it with this or something LIKE this; If $CURRENT_RUN = 1 Then for $x = 1 to 12 If GUICtrlRead($radio&$x) = $GUI_CHECKED Then $CurrentFriendNum = GUICtrlRead($F&$x) Next Else $CURRENT_RUN = $CURRENT_RUN + 1 EndIF EndIF But on the other hand, if it works, then it works. P.S. if you could try it and just tell me what it does that'd be cool to. Edited August 27, 2005 by SupraNatural Visit http://www.blizzedout.com/forums/register....referrerid=8306 for the top blizzard hacks. WoW, TfT, D2/LOD, CS. You name it we got it! 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