Best way to check if clipboard changed?

I am making a macro where I need to check if clipboard has changed after I press cmd + c.

How can I do it?

I am thinking of something like this but not sure if that is the best way and I am still not sure how to reference variables. :expressionless:

Is this a good way to do it?

Thank you for any help.

I used to use a similar method, until I discovered:
function:CLIPBOARDSEED [Keyboard Maestro Wiki]

I now think this is the best method to use.

I just posted an example macro showing how to use this:

1 Like

To not forget the obvious: there is also a macro trigger for clipboard changes:

Good point, Tom. But that is NOT a choice you can use within a macro to determine if the user has made a selection before the COPY command.

Yes, Michael, that’s clear. But from the OP it’s not entirely clear to me, wether the test has to be done within a macro, or if a standalone test serves as well —or better.

WTF? How am I just hearing about this? I've read lots of discussions on the subject of how to know when a COPY has finished, and I've never seen this mentioned.

So this appears to work:


And thanks, BTW. :slight_smile:

1 Like

To paraphrase an old, sexist saying:

So many women, er a, KM features, so little time till I check out. :wink:

Sorry ladies, no offense intended, but feel free to insult me. That was an expression from my much, much younger days, which no longer applies. :smiling_imp:

1 Like