Search found 369 matches

by anuraag
07 Dec 2018 15:47
Forum: User Help / Bug Reports
Topic: Detect number in a string.
Replies: 6
Views: 1958

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: 2251

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: 2626

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: 8419

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: 1958

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: 1308

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: 2040

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: 2040

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.
by anuraag
03 Dec 2018 12:58
Forum: User Help / Bug Reports
Topic: Regex expression
Replies: 8
Views: 2040

Re: Regex expression

So you need to first grab press ??, ?? from your string. If i am not wrong it looks like press + space + number + comma + space + number Your string looks like press 24, 32 1 2 3 4 So this will give you press ??, ?? output=findAll("string", 'press\\s\\d+,\\s\\d+') Then var=findAll(output, '\\d+') va...
by anuraag
03 Dec 2018 12:11
Forum: User Help / Bug Reports
Topic: Regex expression
Replies: 8
Views: 2040

Re: Regex expression

I dont understand what you want?
You need regex for "press 24,32"?
Or you want Variable1=24 and Variable2=32