Difference between revisions of "Trigger: Clipboard Change"
m |
|||
Line 14: | Line 14: | ||
'''Example Usage'''<br/> | '''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. | 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: | + | <pre style="background-color: #AC2424; color: white; border-radius: 10px; padding: 10px;"> |
Triggers | Triggers | ||
Revision as of 18:03, 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 [Var type - String]