Page 1 of 1
Overlay timer
Posted: 07 Mar 2018 02:48
by Rafi4
Hi
I want to create a flow as overlay timer application any help?
Re: Overlay timer
Posted: 10 Mar 2018 04:41
by digitalstone
Maybe you want to be more specific.
What part do you need help with?
Re: Overlay timer
Posted: 10 Mar 2018 05:03
by Rafi4
Hi
I have downloaded this flow in forum. It displays only seconds. I want to modify this flow in minutes and seconds. Please help. I am new to automagic I am unable to understand some actions like script expression etc
http://automagic4android.com/flow.php?i ... ca1450a2f1
Re: Overlay timer
Posted: 11 Mar 2018 01:42
by digitalstone
Well your link doesn't work here.
But i can tell you that if you have access to the amount of seconds, then the only thing left to do is convert them into hours and minutes.
You can do that with: "getDurationString(duration)"
Your following calculation will be:
But, since this command accepts ONLY milliseconds to calculate it into whatever you need, you need to multiply your amount of seconds by 1000.
Then it becomes:
Code: Select all
getDurationString(yourSeconds*1000);
If, for example, your initial amount of seconds is 3660, your result will then be: "1h 1m"
Re: Overlay timer
Posted: 11 Mar 2018 02:49
by digitalstone
Also: I think this question belongs to the help section of the forum

Re: Overlay timer
Posted: 11 Mar 2018 04:15
by anuraag
Rafi4 wrote:Hi
I have downloaded this flow in forum. It displays only seconds. I want to modify this flow in minutes and seconds. Please help. I am new to automagic I am unable to understand some actions like script expression etc
http://automagic4android.com/flow.php?i ... ca1450a2f1
Link to flow
http://automagic4android.com/flow.php?i ... ca1450a2f1
Do as digitalstone sugessted.
Edit Text count in your widget with
{getDurationString(global_interval_count*1000)}