jvnorris Posted June 9, 2008 Share Posted June 9, 2008 (edited) Is there any way to stop it from doing this. I have a control send option and it keeps adding in extra linefeeds that i do not want or need. Is there a way to tell it to stop doing this or do I need to pocess my strings to remove them (it would be nice if there was an option for this though) Edited June 9, 2008 by jvnorris Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted June 9, 2008 Share Posted June 9, 2008 There shouldn't be any linefeeds with your Send() unless you put one in there (try it with notepad). If you you can't fix it yourself then show us a reproducer script and someone will be able to help you. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
jvnorris Posted June 9, 2008 Author Share Posted June 9, 2008 Sorry it is just control Send that appears to be doing it. I think It may also be a problem with the age of the program I am working in too. It has done this before. I just have to work it out. Anyone have a quick way to strip Linefeeds from a string? Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted June 9, 2008 Share Posted June 9, 2008 StringStripWS() .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted June 9, 2008 Moderators Share Posted June 9, 2008 StringStripWS()orStringReplace() StringReplace($sString, @LF, "") 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...
AdmiralAlkex Posted June 9, 2008 Share Posted June 9, 2008 orStringReplace() StringReplace($sString, @LF, "")Anyone faster/better than the other or is StringStripWS() only there to stop people from asking "hey when will you create a StringStripWS() function??"?? .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
jvnorris Posted June 9, 2008 Author Share Posted June 9, 2008 Actually found StringStripCR function worked rather nicely Still cnat figure where it is getting the extra from in the first place though. Would love to figre that out. But I got the problem solved. THanks for the direction guys. Link to comment Share on other sites More sharing options...
JRowe Posted June 9, 2008 Share Posted June 9, 2008 search the script you're using for @CR, @LF, and @CRLF. If those are added to any of the strings, that's where your linefeed is coming from. [center]However, like ninjas, cyber warriors operate in silence.AutoIt Chat Engine (+Chatbot) , Link Grammar for AutoIt , Simple Speech RecognitionArtificial Neural Networks UDF , Bayesian Networks UDF , Pattern Matching UDFTransparent PNG GUI Elements , Au3Irrlicht 2Advanced Mouse Events MonitorGrammar Database GeneratorTransitions & Tweening UDFPoker Hand Evaluator[/center] 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