Difference between revisions of "Trigger: Clipboard Change"
(Created page with "This trigger is not available on Android 10 and above. This limitation is due to Google blocking access to the clipboard from background apps since Android 10. When new text...") |
m |
||
Line 1: | Line 1: | ||
− | This trigger | + | <pre style="background-color: #EEEEEE; color: Black; border-radius: 10px; padding: 10px;"> |
+ | This trigger requires additional configuration on Android 10 and above. This limitation is due to Google blocking clipboard access from background applications since Android 10. | ||
− | When new text is copied, it is saved to clipboard. This trigger will | + | Warning: It stopped working completely for android 13 and higher. |
+ | |||
+ | When new text is copied, it is saved to the clipboard. This trigger will be activated when this event occurs. | ||
The following magic text is available when this trigger fires. | The following magic text is available when this trigger fires. | ||
− | [ | + | [Clipboard] - the text in the clipboard. |
+ | </pre> | ||
+ | |||
+ | '''Example Usage'''<br/> | ||
+ | If the clipboard receives the value containing code it will try to get the code from 4 to 10 digits and fill the clipboard only with the code. | ||
+ | <pre style="background-color: red; color: white; border-radius: 10px; padding: 10px;"> | ||
+ | Triggers | ||
+ | |||
+ | Clipboard change (code) | ||
+ | *Enable regular expression matching | ||
+ | </pre><br> | ||
+ | <pre style="background-color: #1665B0; color: white; border-radius: 10px; padding: 10px;"> | ||
+ | Actions | ||
+ | |||
+ | Clipboard refresh | ||
+ | Text manipulation [Extract text ([Clipboard] \d{4,10} | ||
+ | Fill clipboard [lv-code] | ||
+ | </pre><br> | ||
+ | <pre style="background-color: green; color: white; border-radius: 10px; padding: 10px;"> | ||
+ | Constrains | ||
+ | |||
+ | |||
+ | </pre><br> | ||
+ | <pre style="background-color: teal; color: white; border-radius: 10px; padding: 10px;"> | ||
+ | Local variables | ||
+ | |||
+ | SMS CODE [String] | ||
+ | </pre><br> |
Revision as of 17:38, 28 April 2023
This trigger requires additional configuration on Android 10 and above. This limitation is due to Google blocking clipboard access from background applications since Android 10. Warning: It stopped working completely for android 13 and higher. When new text is copied, it is saved to the clipboard. This trigger will be activated when this event occurs. The following magic text is available when this trigger fires. [Clipboard] - the text in the clipboard.
Example Usage
If the clipboard receives the value containing code it will try to get the code from 4 to 10 digits and fill the clipboard only with the code.
Triggers Clipboard change (code) *Enable regular expression matching
Actions Clipboard refresh Text manipulation [Extract text ([Clipboard] \d{4,10} Fill clipboard [lv-code]
Constrains
Local variables SMS CODE [String]