Sign in to follow this  
Followers 0
patrik2991

Enter & ClipPut

4 posts in this topic

Hello!

I have a problem, i would like to add 2 lines to the clipboard with ClipPut, but i don't know how to.

{Enter} won't work

\r\n won't work

so how can i do this? Thank you for you answer!

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

"String first line" & @CR (or @LF or @CRLF) & "Second line"

Short example:

ClipPut("Line 1" & @CRLF & "line 2")
ConsoleWrite(ClipGet())
Edited by MrMitchell

Share this post


Link to post
Share on other sites

Or:

#include <ClipBoard.au3>
_ClipBoard_Open(0)
_ClipBoard_SetData("This is the 1st line" & @LF & "And this the 2nd line", $CF_TEXT)
 _ClipBoard_Close()

Br,

UEZ


Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Share this post


Link to post
Share on other sites

"String first line" & @CR (or @LF or @CRLF) & "Second line"

Thank you! :unsure:

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