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

Discussion, questions and support.
Post Reply
User avatar
Oblomov
Posts: 31
Joined: Mar 4th, ’19, 19:44

Post by Oblomov » Sep 25th, ’19, 10:44

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?
User avatar
Tom
Posts: 299
Joined: Nov 24th, ’15, 23:39

Post by Tom » Sep 25th, ’19, 11:30

Code: Select all

StringReplace, string, string, `n, %A_Space%, A
StringReplace, string, string, `r, %A_Space%, A
;)
User avatar
Oblomov
Posts: 31
Joined: Mar 4th, ’19, 19:44

Post by Oblomov » Sep 25th, ’19, 13:43

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
Post Reply