Check if named clipboard has changed


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.


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:

How To Use

Select some text and trigger the macro.

MACRO:   Determine IF Clipboard Has Changed

~~~ VER: 1.0    2018-06-10 ~~~


Determine IF Clipboard Has Changed.kmmacros (60 KB)
Note: This Macro was uploaded in a DISABLED state. You must enable before it can be triggered.

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