Enabled flows list

Share and discuss your flows and ideas with other users.

Moderator: Martin

User avatar
Yam
Posts: 54
Joined: 23 Nov 2019 09:07

Re: Enabled flows list

Post by Yam » 26 Apr 2020 09:09

I hope this is right Desmanto.

From the looks of it, emojis and flows that start with "." Are a bit inconsistant.


http://automagic4android.com/flow.php?i ... 5f77fb813d
Every life altering decision you have made, has lead to you reading this.

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Enabled flows list

Post by Desmanto » 27 Apr 2020 18:31

@Rafi4 : Me too. Just double check the flow list and compare if you miss any.

@Yam : You miss one space a the findex.

Code: Select all

findex = indexOf(stdout, " <flow type="); ftext = substring(stdout, findex); //your script miss one space

findex = indexOf(stdout, "  <flow type="); ftext = substring(stdout, findex); //this is the correct one
It is not the "." or emoji that is missing, it is the first flow in the list. When you give .flowname, this flow will be at the first when saved alphabetically. While your findex now start at the second space, it won't catch the regex for the first flow.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

User avatar
Yam
Posts: 54
Joined: 23 Nov 2019 09:07

Re: Enabled flows list

Post by Yam » 27 Apr 2020 21:54

Wow, that fixed it...

Cheers 😅 that's amazing!
Every life altering decision you have made, has lead to you reading this.

User avatar
Rafi4
Posts: 281
Joined: 01 Dec 2017 05:23

Re: Enabled flows list

Post by Rafi4 » 23 Jun 2020 21:58

Hi Desmanto
In this below script i am getting all flow names. You can edit your script to get all values.

Code: Select all

findex = indexOf(stdout, " <flow type="); 
ftext = substring(stdout, findex); 
//the long regex for flow 
find = findAll(ftext, '<name>(.*)</name>\\r\\n', true);
From record4
No.1 Automation app in play store Automagic Premium
Samsung Galaxy j2 non rooted.
Android 5.1.1

User avatar
Rafi4
Posts: 281
Joined: 01 Dec 2017 05:23

Re: Enabled flows list

Post by Rafi4 » 24 Jun 2020 06:20

Hi all
I have got the accurate solution as below.
Rename the group which was Ungrouped. Under Ungrouped flows ignored. I think that this is perfect

Code: Select all

findex = indexOf(stdout, " <flow type="); 
ftext = substring(stdout, findex); 
//the long regex for flow 
names = findAll(ftext, '<name>(.*)</name>\\r\\n', true);
groups = findAll(ftext, trim ('<group>(.*)</group>'), true);
flow_status = findAll(ftext, '<enabled>(true|false)</enabled>', true); 
From record4
No.1 Automation app in play store Automagic Premium
Samsung Galaxy j2 non rooted.
Android 5.1.1

Post Reply