MACRO: [CB] How to Detect When Clipboard Has Changed [Example]
~~~ VER: 1.1 2016-08-31 ~~~
2016-08-31 18:14 CT (Wed)
You may also be interested in this, shown below:
- Used to determine IF the user had made a selection PRIOR to running a macro
- If you use "⌘C" in a "Type a Keystroke" Action, it will return immedately, regardless of the user's selection (or no selection)
- Then you don't know if the Clipboard is from the user's selection, or just the prior (unchanged) Clipboard.
- If you use the "COPY" Action, by default it will fail, and abort the Macro, after its timeout if the user had not made a selection.
How To Test This Macro
- Test #1: Click on a blank area in any app to make sure nothing is selected, and trigger this macro.
- Test #2: Select some text anywhere, and trigger this macro.
- Use ⌘C with a short pause (0.5)
- Use COPY Action, but set Action Options:
- Uncheck "Tiimeout Aborts Macro"
- Set "Action Timeout" to short pause
The macro is setup to use method #1.
See this KM Wiki article:
function:CLIPBOARDSEED [Keyboard Maestro Wiki]