Wiggyboy Posted October 17, 2011 Share Posted October 17, 2011 (edited) Hey xD, I belive i'm having some problems with this script, #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <TabConstants.au3> #Include <GuiListBox.au3> #Include <GuiTab.au3> #include <EditConstants.au3> #Include <Misc.au3> $data = FileRead("model.mdf") $data = StringReplace($data," ","") ;$data = StringReplace($data,@CRLF & @CRLF,"~") $data = StringReplace($data,@CRLF," ") ;$data = StringReplace($data,"~",@CRLF & @CRLF) ;$data = StringReplace($data," ability_0"," /heroes/" & $key &"/ability_0") ;$data = StringReplace($data," sounds/"," /heroes/" & $key &"/sounds/") ;$data = StringReplace($data,'"clips/','"/heroes/' & $key &"/clips/") ;$data = StringReplace($data,"../","/heroes/" & $key2 &"/") $data = StringReplace($data,'"',"'") FileDelete("model.mdf") FileWrite("model.mdf",$data) this is what is in model.mdf test test test and afterwords left is this test test test before this worked fine, removing both characters, but then it stopped replaceing linebreaker and just replace'd " "(tabs) and now it doesn't even remove anything?? Edited October 17, 2011 by Wiggyboy Link to comment Share on other sites More sharing options...
JohnOne Posted October 17, 2011 Share Posted October 17, 2011 Try using StringStripWS() AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. 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