- Oct
- 3
- 0
I tried to do a script to be run continuously, monitoring the clipboard. The idea is to use very little CPU, and wake-up when a new text appears in the clipboard.
I need to find out whether the content of the clipboard has been changed. To do that, I need to compare all the %@clip[] until "**EOC**" is found.
This is time consuming, and since it must be repeated continuously, it is inefficient.
Clipboard monitoring would become much easier if we had, for instance, a function to obtain the md5 of the clipboard's content, to be called e.g. md5clip.
By comparing the current md5clip with the previous value, we would immediately realize when the clipboard is changed.
I need to find out whether the content of the clipboard has been changed. To do that, I need to compare all the %@clip[] until "**EOC**" is found.
This is time consuming, and since it must be repeated continuously, it is inefficient.
Clipboard monitoring would become much easier if we had, for instance, a function to obtain the md5 of the clipboard's content, to be called e.g. md5clip.
By comparing the current md5clip with the previous value, we would immediately realize when the clipboard is changed.