This is what the clipboard actually looks like when you have HTML as your format in the clipboard:
Version:0.9
StartHTML:71
EndHTML:170
StartFragment:140
EndFragment:160
StartSelection:140
EndSelection:160
<!DOCTYPE>
<HTML>
<HEAD>
<TITLE> The HTML Clipboard</TITLE>
<BASE HREF="http://sample/specs">
</HEAD>
<BODY>
<UL>
<!--StartFragment -->
<LI> The Fragment </LI>
<!--EndFragment -->
</UL>
</BODY>
</HTML>
Some more information on the HTML clipboard format can be found Here
Standard clipboard formats can be found Here
To implement the HTML clipboard in python, I found a class Phillip Piper had written that does exactly what I need, that code can be found Here.
Also in my search I ran across this python script called PathCatcher - From the Doc String : PathCatcher is a Windows utility that allows one to right-click on
a folder or a file in Explorer and save its path to the clipboard. PathCatcher can be located Here
No comments:
Post a Comment