Sign in to follow this  
Followers 0
Seagul

Moving all lines of text into one separate line.

5 posts in this topic

I've got a group of lines that I need them all back spaced onto the first line, then I want to copy that into a control.

Can someone help?

Share this post


Link to post
Share on other sites



I would suggest looking at "StringRegExp"


UDF:Crypter a file encrypt / decrypt tool with no need to remember a password again. Based on Caesar cipher using entire ASCII Table.Script's: PixelSearch Helper, quick and simple way to create a PixelSeach.Chatserver - simplified, not so complicated multi-socket server.AutoIT - Firewall, simple example on howto create a firewall with AutoIt.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

would help if you posted a file with some example text in it

Edited by creeping

Share this post


Link to post
Share on other sites

this isn't that hard...i'm bored so i'll write a script for you...

$file_path = "C:\test.txt" ; replace this with the file path
$contents = FileRead ($file_path)
$new = StringReplace ($contents, @CR, "")
$new = StringReplace ($new, @LF, "")
$handle = FileOpen ($file_path, 2)
FileWrite ($handle, $new)
FileClose ($handle)

untested........


The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

theguy0000 - This works great *

$string_path = ControlGetText("+++'s Dark Eden", "", "ThunderRT6TextBox22")

$contents = String ($string_path)

$new = StringReplace ($contents, @CR, "")

$new = StringReplace ($new, @LF, "")

ControlSetText("+++'s Dark Eden", "", "ThunderRT6TextBox16", $new )

Just does what I wanted copys everything into single line into a new control. Then after so many secs I have it clear the control because there will be new data each time ;)

Edited by Seagul

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0