I am trying to use my paste function to paste the variable called init.
This variable contains multiple lines of text which I want to separate using line breaks.
Reading up the documentation I am supposed to use `n, however its not working still pasting as one block without spaces.
Is my paste function interfering with the linebreaks?
Code: Select all
ControlClick, WindowsForms10.Window.8.app.0.2eed1ca_r9_ad150
init := 1. text for line 1 bla bla bla bla `n
2. text for line 2 bla bla bla bla `n
3. text for line 3 bla bla bla bla `n
4. text for line 4 bla bla bla bla `n
5. text for line 5 bla bla bla bla `n
paste(init)
return
Paste(text) {
Clipboard := text
Send, {Control down}v{Control up}
sleep, 500
}
Appreciate your help
James