aria Posted October 22, 2010 Posted October 22, 2010 This should seem obvious, but it isnt working. I have an array of 900 lines, and I used, Dim $clipArray $replaced = <<text file>> _FileReadToArray ($replaced, $clipArray) ClipPut ($clipArray) I check the clipboard and it shows - "$clipArray" What am I doing wrong? Or is this not possible? I did search the forums and the help file, but no answers :| Any advice would be appreciated! Thanks
UEZ Posted October 22, 2010 Posted October 22, 2010 I think you need to read the array and save it to a variable. Local $max = 100 Local $array[$max] For $i = 0 To $max - 1 ;fill the array $array[$i] = "Line" & $i Next Local $string For $i = 0 To $max - 1 ;save the content to a string $string &= $array[$i] & @CRLF Next ClipPut($string) 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!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ
aria Posted October 23, 2010 Author Posted October 23, 2010 Thanks for the reply, yes I figured that one would have to manually fill the clipboard this way. But it would seem intuitive if there was at least a UDF which would have a single line function call to use If there is a function for things like "read array from file" & vice-versa, this would be on those lines.
jaberwacky Posted October 23, 2010 Posted October 23, 2010 _ArrayToClip() Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum?
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