Text to one line macro
Hello,
Does anyone know how one would go about pasting (clipboard) text into one line as in:
https://lingojam.com/TexttoOneLine
I've tried following example of this thread:
https://autohotkey.com/board/topic/9338 ... pied-text/
but to no avail
Does anyone know how one would go about pasting (clipboard) text into one line as in:
https://lingojam.com/TexttoOneLine
I've tried following example of this thread:
https://autohotkey.com/board/topic/9338 ... pied-text/
but to no avail
Try this:
Code: Select all
String:=clipboard
StringReplace, string, string, `n, , A
StringReplace, string, string, `r, , A
Send, % string
That did it. Many thanks.Marko wrote: ↑Mar 4th, ’19, 21:19 Try this:
Code: Select all
String:=clipboard StringReplace, string, string, `n, , A StringReplace, string, string, `r, , A Send, % string
By the way, note sure if I ought to make a thread on it's own for this, but you wouldn't perhaps also know of a macro that pastes back copied text, all in small letters?Marko wrote: ↑Mar 4th, ’19, 21:19 Try this:
Code: Select all
String:=clipboard StringReplace, string, string, `n, , A StringReplace, string, string, `r, , A Send, % string
Similar to above..
Code: Select all
String:=Clipboard
StringLower, string, string
Send, % string