Hello:

  I am testing XXE customization, and I have the following problem:

I have associated this command with ENTER key:

  <command name="my.insertAfter">
  <macro>
    <choice>
      <sequence>
        <test expression="not($selected) and not($mark) and
                          $dotOffset &gt;= 0 and
                          $dotOffset &lt; string-length($dot)"/>
        <command name="selectTo" parameter="textNodeEnd"/>
        <command name="cut" />
        <command name="selectNode" parameter="self[implicitElement]"/>
        <command name="insertNode" parameter="sameElementAfter"/>
        <command name="paste" parameter="into"/>
      </sequence>
    </choice>
  </macro>
  </command>

which split a text element at the caret position and paste contents from the
caret to the end of line in a new element.
It works fine, but it change the clipboard. I want to get clipboard content
before executing this command (as the first step) and restore it as the
final step of it.
?Can you help me? ?How can I copy clipboard content into a variable and
restore it after? ?Is it possible?
Thank you in advance,

-- 
Fco. Mario Barcala Rodr?guez
Computer Engineer
email: barcala at freeresearch.org



Reply via email to