Difference between revisions of "Constraint: Clipboard content"
| Line 1: | Line 1: | ||
| − | < | + | <pre class="header-style">This constraint allows or prevents a macro/feature from running based on the current clipboard text.</pre> |
| − | + | ''' Options ''' | |
| − | + | * '''Text Match''' - Match specific text or patterns | |
| + | * '''Enable regular expression matching''' - Use regex for advanced matching | ||
| + | * '''Case insensitive''' - Ignore uppercase/lowercase differences when comparing text | ||
| − | + | ''' Example ''' | |
| − | ''See | + | ''Example 1: Share a copied URL only when the clipboard contains a link'' |
| + | <pre class="trigger-style">Triggers | ||
| + | |||
| + | Widget Button</pre> | ||
| + | <pre class="action-style">Actions | ||
| + | |||
| + | Share Text</pre> | ||
| + | <pre class="constraint-style">Constraints | ||
| + | |||
| + | Clipboard content - Contains "http"</pre> | ||
| + | |||
| + | ''' See Also ''' | ||
| + | |||
| + | * [[Trigger: Clipboard Change|Clipboard Change Trigger]] | ||
| + | * [[Action: Share Text|Share Text Action]] | ||
Latest revision as of 11:17, 9 January 2026
This constraint allows or prevents a macro/feature from running based on the current clipboard text.
Options
- Text Match - Match specific text or patterns
- Enable regular expression matching - Use regex for advanced matching
- Case insensitive - Ignore uppercase/lowercase differences when comparing text
Example
Example 1: Share a copied URL only when the clipboard contains a link
Triggers Widget Button
Actions Share Text
Constraints Clipboard content - Contains "http"
See Also