Nice code, Guga :t
There is a shorter version, though... ;)
include \masm32\MasmBasic\
MasmBasic.inc ;
download Init PrintLine "From Firefox clipboard:", CrLf$,
String$(60, "-")
PrintLine HtmlClip$()
Inkey String$(0,0)
Exitend start
Output:
From Firefox clipboard:
------------------------------------------------------------
Version:0.9
StartHTML:00000165
EndHTML:00000298
StartFragment:00000199
EndFragment:00000262
SourceURL:http://masm32.com/board/index.php?topic=2005.0;topicseen
<html><body>
<!--StartFragment-->Some small code to paste RTF or HTML contents to clipboard.<br><!--EndFragment-->
</body>
</html>------------------------------------------------------------
This works, too (test e.g. when writing a mail with Thunderbird):
SetHtmlClip$ "Hello <b>Guga</b>"