Sign in to follow this  
Followers 0
Diana (Cda)

ClipPut, multiple lines?

5 posts in this topic

I know how to send one line of text to the clipboard:

ClipPut("text to the clipboard")

But how do we handle sending a snippet of text that falls on more than one line? Is this even possible?

Thanks! :)

Share this post


Link to post
Share on other sites



How about

ClipPut("text" & @CRLF &  "to" & @CRLF & "the" & @crlf & "clipboard")
MsgBox(0,"",ClipGet())


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

@LF

@CR

@CRLF

Either one will work, you can mix'n'match if you like...just don't expect every program to like it.

Example:

Notepad accepts @LF and @CR interchangably.

AS400 Emulators accept @LF but not (usually) @CR or @CRLF

Lotus Notes ignores @LF, doesn't like @CRLF (it does a default system beep when this is called from AutoIt, but enters in the line-break), but has no problem with @CR.

As always, YMMV


Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Share this post


Link to post
Share on other sites

@LF

@CR

@CRLF

Either one will work, you can mix'n'match if you like...just don't expect every program to like it.

Example:

Notepad accepts @LF and @CR interchangably.

AS400 Emulators accept @LF but not (usually) @CR or @CRLF

Lotus Notes ignores @LF, doesn't like @CRLF (it does a default system beep when this is called from AutoIt, but enters in the line-break), but has no problem with @CR.

As always, YMMV

Great, thanks for the education. Much appreciated. :)

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