User Tools

Site Tools


Clipboards

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Clipboards [2018/03/18 04:33]
peternlewis Keyboard Maestro editor
Clipboards [2018/12/30 10:18] (current)
ccstone [Named Clipboards]
Line 13: Line 13:
  
 The System Clipboard is the clipboard that you will use and work with the most. The System Clipboard is the clipboard that you will use and work with the most.
 +
 +==== Actions That Use The Clipboard ====
 +
  
 (!) Keep in mind that **the System Clipboard is involved in all operations (Actions)** that transfer data between the user interface (documents, menus, web pages,etc) and Keyboard Maestro. (!) Keep in mind that **the System Clipboard is involved in all operations (Actions)** that transfer data between the user interface (documents, menus, web pages,etc) and Keyboard Maestro.
Line 21: Line 24:
   * [[action:​Paste_from_Named_Clipboard]]   * [[action:​Paste_from_Named_Clipboard]]
   * and many others   * and many others
 +
 +==== Pause Until Clipboard Changes ====
 +
 +
 +Sometimes you will need to wait until the app has completed setting the Clipboard. ​ You can use the [[function:​CLIPBOARDSEED|]],​ in a calculation (`CBSeedBefore ≠ CLIPBOARDSEED()`) condition in the [[action:​Pause_Until|Pause Until Action]] to achieve this.  Of course you will need to set the Keyboard Maestro Variable `CBSeedBefore` in an Action _before_ the Action to set the Clipboard.
 +
 +==== Discussion ====
 +
  
 The System Clipboard is a complicated entity, and often contains many different flavors of the same data last copied from an app.  To better understand how Keyboard Maestro processes the System Clipboard, see [[https://​forum.keyboardmaestro.com/​t/​ulysses-no-text-in-clipboard/​6742/​23?​u=jmichaeltx | this Forum post by @PeterNLewis]]. ​ In particular, this post deals with getting plain text from the System Clipboard. The System Clipboard is a complicated entity, and often contains many different flavors of the same data last copied from an app.  To better understand how Keyboard Maestro processes the System Clipboard, see [[https://​forum.keyboardmaestro.com/​t/​ulysses-no-text-in-clipboard/​6742/​23?​u=jmichaeltx | this Forum post by @PeterNLewis]]. ​ In particular, this post deals with getting plain text from the System Clipboard.
Line 72: Line 83:
       * To restore at end of your Macro.       * To restore at end of your Macro.
       * To use in other Macros.       * To use in other Macros.
- 
  
 (!) Note that Keyboard Maestro provides a named clipboard with the name of "​Default Clipboard"​. ​ It is nothing special, and acts like any other named clipboard. ​ The "​Default"​ in the name means nothing more than that it was provided by default. ​ Do not mistake this for the System Clipboard. (!) Note that Keyboard Maestro provides a named clipboard with the name of "​Default Clipboard"​. ​ It is nothing special, and acts like any other named clipboard. ​ The "​Default"​ in the name means nothing more than that it was provided by default. ​ Do not mistake this for the System Clipboard.
  
 +Named Clipboards are located in the Keyboard Maestro Preferences in their own “Clipboards” panel.
 +
 +{{:​keyboard_maestro_named_clipboard_prefs.png?​direct&​400|}}
 +
 +Use the [+] button to create a new named clipboard.
 +
 +The one-line field at the top-right is the name field.
 +
 +The big field on the lower-right is the content field.
  
 +You can add plain text, styled text, and images simply by pasting into the content field, but if you want to add something like a Keyboard Maestro action you need to use a Copy to Named Clipboard action to get it in there.
 ===== Trigger Clipboard ===== ===== Trigger Clipboard =====
  
Line 118: Line 138:
   * [[token:​NamedClipboard|%NamedClipboard%]]   * [[token:​NamedClipboard|%NamedClipboard%]]
   * [[token:​PastClipboard|%PastClipboard%]]   * [[token:​PastClipboard|%PastClipboard%]]
 +
 +===== Clipboard Condition =====
 +
 +The [[condition:​Clipboard|Clipboard Condition]] may be used with [[Actions|Macro Actions]] like [[action:​If_Then_Else|IF/​THEN]] to branch control based on criteria concerning the data on the Clipboard. ​ For details see: [[condition:​Clipboard|Clipboard Condition]]
 +
  
 ===== See Also ===== ===== See Also =====
Line 128: Line 153:
 * [[action:​Activate Clipboard Paste Switcher|Activate Clipboard Paste Switcher]] * [[action:​Activate Clipboard Paste Switcher|Activate Clipboard Paste Switcher]]
 * [[:​Actions|See all Actions]] * [[:​Actions|See all Actions]]
 +
 +=== Functions ===
 +
 +* [[function:​CLIPBOARDSEED|]] -- used to determine when Clipboard has changed
  
 === Triggers === === Triggers ===
Clipboards.1521362019.txt.gz · Last modified: 2018/03/18 04:33 by peternlewis