Posts: 128
Threads: 48
Joined: Jan 2007
Hello,
Is it possible to create an output like this:
text URL text and where the URL is clickable?
I've tried it with the outp command but with no succes...
please give me an example if possible
THX
Posts: 12,066
Threads: 140
Joined: Dec 2002
Macro
Macro1556
out "<>text <link ''http://www.quickmacros.com''>Quick Macros</link> text"
out "<>text <link>http://www.quickmacros.com</link> text"
Posts: 128
Threads: 48
Joined: Jan 2007
Ok thx
But this is for output in the QM output dialog, what i want is to have it pasted in for example notepad. Is that possible ?
Posts: 12,066
Threads: 140
Joined: Dec 2002
Notepad text with clickable URL - impossible.
Posts: 128
Threads: 48
Joined: Jan 2007
Sorry notepad is bad example, make it Word. The most important thing is that it is that it can be formatted and copied as an output so i can paste it to an textbox or something.
Posts: 12,066
Threads: 140
Joined: Dec 2002
Function
PasteHtml
;/
function $html
;Pastes text in HTML format.
;Works only with windows that support HTML format. For example, Word.
;Error if the active window does not support HTML format.
;EXAMPLE
;PasteHtml "<html><body>text <a href=''http://www.quickmacros.com''>Quick Macros</a> text</body></html>"
str sh.format("Version:1.0[]StartHTML:00000033[]%s" html)
sh.setsel("HTML Format")
err end _error
Posts: 128
Threads: 48
Joined: Jan 2007
Thank you very much!
Is it also possible to implement variables into this?
Posts: 12,066
Threads: 140
Joined: Dec 2002
PasteHtml F"<html><body>text <a href='{variable1}''>{variable2}</a> text</body></html>"
Posts: 128
Threads: 48
Joined: Jan 2007
Sorry,
What i meant is a string so when i have information in a string can i output it again?
Posts: 12,066
Threads: 140
Joined: Dec 2002
str s="<html><body>text <a href=''http://www.quickmacros.com''>Quick Macros</a> text</body></html>"
PasteHtml s
PasteHtml s
Posts: 128
Threads: 48
Joined: Jan 2007
Sorry,
My information is not correct i think or i cannot express myself. i will give an example
i have information in a string for example:
str x=" information"
and i want this information used in the output something like this:
<html><body>text info from string <a href=''http://www.quickmacros.com''>Quick Macros</a> text</body></html>
Posts: 12,066
Threads: 140
Joined: Dec 2002
str x=" information"
PasteHtml F"<html><body>text {x} <a href=''http://www.quickmacros.com''>Quick Macros</a> text</body></html>"
When you need text with variables, you can use Text dialog, 1-st button in floating toolbar. Select "Text with variables" and "Store in str variable".