I have been using the same technique for years. After having tried numerous other methods to determine when something has been selected (text, image, object), I found using the CLIPBOARDSEED function (KM Wiki) to be the simplest method which is also the best, most reliable method.
See:
MACRO: [CB] How to Detect When Clipboard Has Changed [Example]
Basically this works by get a unique value of the clipboard (the seed) before and after a copy. The clipboard seed will change ONLY is something was selected and copied.
You can use this in several ways, to make reuse easy:
- Use this as a Sub-Macro, calling it using the Execute a Macro action (KM Wiki)
- Store the Actions in the [KMFAM] Favorite Actions and Macros system by macro master @DanThomas.
Questions.