I am at my wits ends with this one and I could use a hand.
Scenario
I copy one paragraph or many paragraphs (from anywhere) and using this script I can parse the clipboard and send it, line by line, nested within the appropriate <p></p> tags. I am posting a working script, albeit not the solution I need.
A sample pair of lines/paragraphs:
Code: Select all
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris.
Code: Select all
^!+p::
loop, parse, clipboard, `n, `r
{
SendRaw, <p>%A_LoopField%</p>`r
}
return
Code: Select all
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
<p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris.</p>
- SendRaw struggles in cases where the text is large, the lag is visible
- Deadkeys followed by vowels render incorrectly (this is expected behavior as I use a Spanish keyboard layout - not to be taken as the focus of this question)
Unfortunately I cannot get it to work. Can someone help me? Thanks!