Search found 371 matches

by anuraag
07 Dec 2018 23:12
Forum: User Help / Bug Reports
Topic: OTP reading flow
Replies: 8
Views: 17412

Re: OTP reading flow

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}
by anuraag
07 Dec 2018 23:06
Forum: Flow Sharing Area
Topic: Backup Flows To Google Drive Only If Modified
Replies: 11
Views: 33752

Re: Backup Flows To Google Drive Only If Modified

Why are you using old version?
by anuraag
07 Dec 2018 15:47
Forum: User Help / Bug Reports
Topic: Detect number in a string.
Replies: 6
Views: 12795

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...
by anuraag
07 Dec 2018 14:47
Forum: User Help / Bug Reports
Topic: OTP reading flow
Replies: 8
Views: 17412

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]}
by anuraag
07 Dec 2018 14:38
Forum: User Help / Bug Reports
Topic: Query Content Provider and documents
Replies: 0
Views: 8257

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...
by anuraag
07 Dec 2018 14:30
Forum: Flow Sharing Area
Topic: Backup Flows To Google Drive Only If Modified
Replies: 11
Views: 33752

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.
by anuraag
07 Dec 2018 14:16
Forum: User Help / Bug Reports
Topic: Detect number in a string.
Replies: 6
Views: 12795

Re: Detect number in a string.

This will give you all numbers
findAll('string', '\\d+')

To compare
Use expression
string1 != string2
by anuraag
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: 7815

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
by anuraag
03 Dec 2018 17:14
Forum: User Help / Bug Reports
Topic: Regex expression
Replies: 8
Views: 15232

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
by anuraag
03 Dec 2018 17:06
Forum: User Help / Bug Reports
Topic: Regex expression
Replies: 8
Views: 15232

Re: Regex expression

Use condition while or if
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
}
You need to find element id by using overlay control helper.