i love and use the KM everyday but now, i have a problem, because i need a function.
How can I compare two named Clipboards, if they are identic ?
In my case it is not so important, what the content in the Clipboards is. In my function, i cut content in two separate clipboards on two different times, and then, i will check are the two Clipboards identic ?).
I need only a check: “Is the ClipBoard#1 identic with the Clipboard#2” --> Yes/No ?
or wonderful would be the follow check: ‘exist a identic Clipboard at Cliboard#1?’. --> Yes, the Output is the name of the Clipboard.
Thank you, but i didn’t use plain Text, i use images.
I have a Image/Picture open on the Screen.
I make a ‘Crop Image’ (with exact Screenposition) to NamedClipboard#1 and a second ‘Crop Image’ from another Screenposition to NamedClipboard#2 and then, i will check, are the booth Clipboards (the CropImages) identic ?
…will output the exact number of different pixels. So you can use the result to determine if the images are different enough – or identical, of course. You can also add a fuzz factor with -fuzz n% that will help to ignore minor differences.
It offers many variations on this, e.g. limiting the diff to one color channel or looking for matching subimages, etc.