Check if named clipboard has changed

Hello!

How can i check if named clipboard has changed in case i am not sure that KM has correctly copied text to named clipboard?

Thanks in advance.

Hey Kirill,

You can do something like this.

-Chris


Seed the Clipboard to Verify it is Set.kmmacros (5.3 KB)

1 Like

Why would you doubt that the Named Clipboard was properly set?

So, there are two issues concerning Clipboards:

  1. Did the System Clipboard change as a result of a Copy Action?
  2. Was a Named Clipboard set correctly?

You do NOT need to set the System Clipboard to determine if it has changed.
The KM function CLIPBOARDSEED() will change if the Clipboard has changed.

So, here's a macro that addressed both issues.
Please let us know if this answers your question.

These Options have already been set in the Copy Action in the below Macro:
image

How To Use

Select some text and trigger the macro.


MACRO:   Determine IF Clipboard Has Changed


#### DOWNLOAD:
<a class="attachment" href="/uploads/default/original/3X/c/e/ce52116063068ebe7fb6449b7d8e1b42e9fce36f.kmmacros">Determine IF Clipboard Has Changed.kmmacros</a> (60 KB)
**Note: This Macro was uploaded in a DISABLED state. You must enable before it can be triggered.**

---



![image|516x2000](upload://bCR70lUJjtdEBMLUdQAQGjDHYQs.jpg)
1 Like

Hey guys!

Both answers are correct.
JMichaelTX has solved my question perfectly, Ccstone's answer is also great but the macro needs to be a little bit modified, that's what i am going to do. :slight_smile:

Thanks a lot for your help @ccstone, @JMichaelTX