Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question about output
#1
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
#2
Macro Macro1556
Code:
Copy      Help
out "<>text <link ''http://www.quickmacros.com''>Quick Macros</link> text"
out "<>text <link>http://www.quickmacros.com</link> text"
#3
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 ?
#4
Notepad text with clickable URL - impossible.
#5
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.
#6
Function PasteHtml
Code:
Copy      Help
;/
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
#7
Thank you very much!

Is it also possible to implement variables into this?
#8
PasteHtml F"<html><body>text <a href='{variable1}''>{variable2}</a> text</body></html>"
#9
Sorry,

What i meant is a string so when i have information in a string can i output it again?
#10
str s="<html><body>text <a href=''http://www.quickmacros.com''>Quick Macros</a> text</body></html>"
PasteHtml s
PasteHtml s
#11
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>
#12
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".


Forum Jump:


Users browsing this thread: 1 Guest(s)