leuce Posted September 17, 2014 Share Posted September 17, 2014 (edited) Hello everyoneI'm copying text from a web site that includes inline images, and I need to be able to access the full clipboard (not just the unformatted text).The program InsideClipboard displays a version of the clipboard that it calls "HTML format", which is what I need. One can also save a CLP file using InsideClipboard, and the CLP file (when opened in a text editor) contains the HTML version of the clipboard (along with other binary data).The AutoHotKey commandFileAppend, %ClipboardAll%, foo.clipcreates the same file as InsideClipboard.I tried using _ClipBoard_GetData in AutoIt, but none of the data formats that one can specify with it yields the HTML version of the clipboard.Do you know of a function in AutoIt that produces the same result asFileAppend, %ClipboardAll%, foo.clipin AutoHotKey?ThanksSamuelPS. The file created by AHK is attached.foo.zip Edited September 17, 2014 by leuce Link to comment Share on other sites More sharing options...
Solution MikahS Posted September 17, 2014 Solution Share Posted September 17, 2014 (edited) Heres a link to a UDF for getting html from the clipboard link Also, You can use this function to see what the types of formats your clipboard has: _Clipboard_EnumFormats Edited September 17, 2014 by MikahS Snips & Scripts My Snips: graphCPUTemp ~ getENVvarsMy Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4 Feel free to use any of my code for your own use. Forum FAQ Link to comment Share on other sites More sharing options...
leuce Posted September 17, 2014 Author Share Posted September 17, 2014 Heres a link to a UDF for getting html from the clipboard...Thanks, this worked. I had to convert the data to Unicode, however, using:$foo = _ClipGetHTML () $sUnicodeHTML=BinaryToString($foo[0],4) $bar = $sUnicodeHTML Link to comment Share on other sites More sharing options...
MikahS Posted September 18, 2014 Share Posted September 18, 2014 Thanks, this worked. I had to convert the data to Unicode, however, using: $foo = _ClipGetHTML () $sUnicodeHTML=BinaryToString($foo[0],4) $bar = $sUnicodeHTML Anytime Glad you figured it out. Snips & Scripts My Snips: graphCPUTemp ~ getENVvarsMy Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4 Feel free to use any of my code for your own use. Forum FAQ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now