Hugo,
You're awesome man, but I just can't figure out the processing on what I need to do to get it in to a single file… thanks anyway.
I did another search on the forum for 'wordwrap' and found this… it was, or seemed much shorter in coding…
Code:
; credit: http://www.autohotkey.com/forum/viewtopic.php?t=40299&highlight=wordwrap
wraplength=60
textToWrap =
(
Where does it come from?
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source.
Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.
)
wrap(String, maxWrapLength, separator = "", showSeparator = "")
{
prefix=> >
endChar := "`n" . prefix
str1 := ""
StringReplace String1, String, `r`n, %A_Space%, All
StringReplace String1, String1, `n, %A_Space%, All
If (separator != "")
StringReplace, String1, String1, %separator%, %endChar%%separator%, All
Loop Parse, String1, `n
{
str := prefix
length := 0
line := A_loopfield
Loop Parse, line, %A_Space%
{
lengthLoopfield := StrLen(A_loopfield)
length := length + lengthLoopfield +1
If (length > maxWrapLength)
{
str := str . endChar . A_loopfield . A_Space
length := lengthLoopfield + 1
}
Else
{
str := str . A_loopfield . A_Space
}
}
If (str1 = "")
str1 := str
Else
str1 := str1 . endChar . str
}
If (showSeparator = "")
StringReplace str1, str1, %separator%, , All
Return str1
}
MsgBox % wrap(textToWrap, wraplength, "", false)
clipboard= % wrap(textToWrap, wraplength, "", false)
1. It's not keeping the [enter][cr] from the TEXTTOWRAP, so the formatting is jacked up. I'd like to have the function, but I'd speculate I could live without it…

2. For the PREFIX, I have tried {space 5}, `, and other variations, but I'm not able to get the five spaces to indent the text.
Any ideas? [confused]
I also found this:
Code:
;credit
; http://www.autohotkey.com/forum/viewtopic.php?t=18307&highlight=wordwrap
wraplength=60
textToWrap =
(
Where does it come from?
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source.
Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.
)
WrappedMessage := RegExReplace(texttowrap,"(.{50}\s)","$1`n ")
MsgBox, Original:`n%texttowrap%
MsgBox, %WrappedMessage%
ExitApp
This seems MUCH simpler, it keeps the [CR] for the text, but it's not indenting the text on every line…like the first two lines of each paragraph…
Any suggestions?
Which one is easier to work with? Which is the better option?