Hello,
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 ?
AFAIK, KM cannot compare images or Named Clipboards. If there is a way, I’m sure someone will jump in here and correct me.
Until/if they do, you will probably need to save each image to a file, and then do a image file comparison using 3rd party tools, run from a Shell Script.
Good luck, and please do let us know if you find a solution.
…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.
thank you to all. I know and have many workaround’s and they works still fine.
I just wanted to go a step further and realize the function in KM directly.
Thank you !