Quote from
Gaev on February 11, 2025, 12:52 am
@fkapnist
how do I set the value of Container2 to a variable?
One workaround would be to populate the Container like so ...
SetVar "[textContainer2]" "<strong>Hello</strong></br></br>Just another line of text"
SetObjectHTML "Container2" "[textContainer2]"
... then, when you want to copy it to the clipboard ...
TextToClipboard [textContainer2]
... the Clipboard will contain something like ..
<strong>Hello</strong></br></br>Just another line of text
@fkapnist
how do I set the value of Container2 to a variable?
One workaround would be to populate the Container like so ...
SetVar "[textContainer2]" "<strong>Hello</strong></br></br>Just another line of text"
SetObjectHTML "Container2" "[textContainer2]"
... then, when you want to copy it to the clipboard ...
TextToClipboard [textContainer2]
... the Clipboard will contain something like ..
<strong>Hello</strong></br></br>Just another line of text
luishp, Vadim and fkapnist have reacted to this post.