Line 1: |
Line 1: |
− | <pre style="background-color: #EEEEEE; color: Black; border-radius: 10px; padding: 10px;"> | + | ===<p><b>About</b></p>=== |
− | 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.
| + | <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;"> |
| + | This trigger will fire when the value stored in the clipboard is updated. |
| | | |
− | When new text is copied, it is saved to the clipboard. This trigger will be activated when this event occurs.
| + | Requires additional configuration on Android 10 and above. |
| + | This limitation is due to Google blocking clipboard access from background applications since Android 10. |
| + | </pre> |
| | | |
| + | ==<p><b>Supported configurations</b></p>== |
| | | |
− | The following magic text is available when this trigger fires.
| |
| | | |
− | [Clipboard] - the text in the clipboard.</pre>
| + | === Relgular expression matching === |
− | <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.
| |
− | <pre style="background-color: #AC2424; color: white; border-radius: 10px; padding: 10px;">
| |
− | Triggers
| |
| | | |
− | Clipboard change (code)
| + | <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;"> |
− | *Enable regular expression matching
| + | Regular expression matching (or regex matching) is a technique for finding patterns within text using a specialized syntax known as regular expressions. It's a powerful tool for text processing and pattern recognition. |
− | </pre><br>
| + | </pre> |
− | <pre style="background-color: #1665B0; color: white; border-radius: 10px; padding: 10px;"> | |
− | Actions
| |
| | | |
− | Clipboard refresh
| + | === Case insensitive === |
− | 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;">
| |
− | Constraints
| |
| | | |
| + | <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;"> |
| + | It will ignore the use of upper and lower case in title and detail. |
| + | </pre> |
| | | |
− | </pre><br>
| + | === Use logcat (ADB Hack)=== |
− | <pre style="background-color: teal; color: white; border-radius: 10px; padding: 10px;">
| |
− | Local variables
| |
| | | |
− | SMS CODE [Var type - String]
| + | <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;"> |
− | </pre><br> | + | Standard clipboard access is not possible on Android 10+ unless you have a rooted device with appropriate Magisk modules. As a workaround MacroDroid can monitor the devices logcat output to try and detect when new content appears in the clipboard. |
| + | </pre> |