Inside Regular Expression Tester you need only one back slash but in script you need 2 backslash.
So your regex is
[[[a-z]&&[^\\S]][\\d][-]]{4,7}
Search found 371 matches
- 07 Dec 2018 23:12
- Forum: User Help / Bug Reports
- Topic: OTP reading flow
- Replies: 8
- Views: 17413
- 07 Dec 2018 23:06
- Forum: Flow Sharing Area
- Topic: Backup Flows To Google Drive Only If Modified
- Replies: 11
- Views: 33759
Re: Backup Flows To Google Drive Only If Modified
Why are you using old version?
- 07 Dec 2018 15:47
- Forum: User Help / Bug Reports
- Topic: Detect number in a string.
- Replies: 6
- Views: 12802
Re: Detect number in a string.
Put it in global variable. Or Replace line breaks with \n string2 = "STEERS\nIN-STORE\nWe don’t have any steers for you to do right now. If you have a bad, or no internet connection, this can happen.\nWe don’t have any steers for you to do right now. If you have a bad, or no internet connection, thi...
- 07 Dec 2018 14:47
- Forum: User Help / Bug Reports
- Topic: OTP reading flow
- Replies: 8
- Views: 17413
Re: OTP reading flow
First you need to find out otp using regex. If your otp contains only numbers then use script
otp=findAll(sms_text, '\\d+');
otp[0] is your otp.
1. Trigger: SMS Received, containg the word OTP
2. Action: Script: otp=findAll(sms_text, '\\d+');
3. Action2: Copy Text to Clipboard:{otp[0]}
otp=findAll(sms_text, '\\d+');
otp[0] is your otp.
1. Trigger: SMS Received, containg the word OTP
2. Action: Script: otp=findAll(sms_text, '\\d+');
3. Action2: Copy Text to Clipboard:{otp[0]}
- 07 Dec 2018 14:38
- Forum: User Help / Bug Reports
- Topic: Query Content Provider and documents
- Replies: 0
- Views: 8263
Query Content Provider and documents
I am trying to get file name, file path using Query Content Provider for contentUri like this "content://com.android.providers.media.documents/document/image%3A47128"; "content://com.android.providers.downloads.documents/document/456" I am getting error "Permission Denial: opening provider com.andro...
- 07 Dec 2018 14:30
- Forum: Flow Sharing Area
- Topic: Backup Flows To Google Drive Only If Modified
- Replies: 11
- Views: 33759
Re: Backup Flows To Google Drive Only If Modified
Looks like Automagic don't have permission to your google drive.
Try opening action "upload to google drive" and verify account access.
Try opening action "upload to google drive" and verify account access.
- 07 Dec 2018 14:16
- Forum: User Help / Bug Reports
- Topic: Detect number in a string.
- Replies: 6
- Views: 12802
Re: Detect number in a string.
This will give you all numbers
findAll('string', '\\d+')
To compare
Use expression
string1 != string2
findAll('string', '\\d+')
To compare
Use expression
string1 != string2
- 04 Dec 2018 22:20
- Forum: User Help / Bug Reports
- Topic: Is it possible to "dismiss" an alarm for Google Clock app?
- Replies: 2
- Views: 7819
Re: Is it possible to "dismiss" an alarm for Google Clock ap
Use trigger => Notification on Statusbar Displayed: com.google.android.deskclock Content Title contains text Upcoming Alarm
Action=> Perform Action on Notification on Statusbar: Click button Dismiss
Action=> Perform Action on Notification on Statusbar: Click button Dismiss
- 03 Dec 2018 17:14
- Forum: User Help / Bug Reports
- Topic: Regex expression
- Replies: 8
- Views: 15233
Re: Regex expression
You can also replace existsElementById with other like getText or getTextById.
Edit : here @Desmanto shown how to use condition.
http://automagic4android.com/forum/view ... 825#p22825
Edit : here @Desmanto shown how to use condition.
http://automagic4android.com/forum/view ... 825#p22825
- 03 Dec 2018 17:06
- Forum: User Help / Bug Reports
- Topic: Regex expression
- Replies: 8
- Views: 15233
Re: Regex expression
Use condition while or if
While will loop untill that dialogue appears.
If will check only once
You need to find element id by using overlay control helper.
While will loop untill that dialogue appears.
If will check only once
Code: Select all
while (!existsElementById("android:id/button1"))
{sleep(100)
}
Your script
Code: Select all
if (existsElementById("android:id/button1"))
{your script
}