Page 1 of 1

Pasting into one line, but with a space whenever an enter is present

Posted: Sep 25th, ’19, 10:44
by Oblomov
I know that

Code: Select all

String:=clipboard
StringReplace, string, string, `n, , A
StringReplace, string, string, `r, , A
Send, % string
Pastes into one line, but could it be possible to paste into one line, but with a space, whenever an enter is present?

Re: Pasting into one line, but with a space whenever an enter is present

Posted: Sep 25th, ’19, 11:30
by Tom

Code: Select all

StringReplace, string, string, `n, %A_Space%, A
StringReplace, string, string, `r, %A_Space%, A
;)

Re: Pasting into one line, but with a space whenever an enter is present

Posted: Sep 25th, ’19, 13:43
by Oblomov
Tom wrote: Sep 25th, ’19, 11:30

Code: Select all

StringReplace, string, string, `n, %A_Space%, A
StringReplace, string, string, `r, %A_Space%, A
;)
Worked like a charm, thanks! Can finally paste things properly from PDFs and such