I am currently using IUP with Lua on a windows system.
What I would like to do, is load the clipboard with a set of html text so
that when it's pasted to another program, it is formatted correctly.

At the moment I have tried "HTML" and "CF_HTML" in the format fields,  but
when the text is pasted in to Evernote it appears as the original text.

I have tried to follow the instructions on the help page,  but as I have
only ever written text to the clipboard previously realise I am probably
doing completely the wrong method.

When I review the contents in the clipboard viewer only the text version is
registered.

Any help appreciated.



htmltemplate = [[
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>
</body>
</html>
]]

clipboard = iup:clipboard()
clipboard.format = 'HTML'
clipboard.text = striptags(htmltemplate)
clipboard.FORMATDATASIZE = htmltemplate:len()
clipboard.FORMATDATA = htmltemplate




Thanks in advance.

-- 
Jane.

Jane Taubman | www.rjt.org.uk | www.taubman.org.uk |www.fhug.org.uk
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Iup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to