Sign in to follow this  
Followers 0
west

multi line of text into the clipboard

5 posts in this topic

any way to put multiple line of text into the clip board

same as

Hello

my name is john doe

blablalblalblalblalalalalalalalal

bye

and after extract this full multine of text and paste it

ive read the help but seem its only can put 1 line of thext at time

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Have you tried adding @CRLF to the end of your ClipPut()?

IE ClipPut("Hi, this is a test" & @CRLF & "This should be a new line")

You can also use @LF and @CR. Search the help for Macros Reference - AutoIt Related.

Edited by Tasmania

Share this post


Link to post
Share on other sites

yes this is working fine thanks a lots

but the cons is its need to be hardcoded in the script

if i want to READ it fomr a file and then put it in a variable and then put in clipboard

is there a good way to do it

Share this post


Link to post
Share on other sites

yes this is working fine thanks a lots

but the cons is its need to be hardcoded in the script

if i want to READ it fomr a file and then put it in a variable and then put in clipboard

is there a good way to do it

Look at _FileReadToArray(), FileRead() and/or FileReadLine()


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

Share this post


Link to post
Share on other sites

yes this is working fine thanks a lots

but the cons is its need to be hardcoded in the script

if i want to READ it fomr a file and then put it in a variable and then put in clipboard

is there a good way to do it

works fine too as long as you use FileRead()

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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