cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate II
Advocate II

Auto Start Timer

How do you get a Timer to auto start during the screen load of the very first screen.

 

Meaning there would be no buttons pushed.

 

 

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Super User III
Super User III

Re: Auto Start Timer

@Sacred_Totems ,

See if this one works for you

View solution in original post

Highlighted
Super User III
Super User III

Re: Auto Start Timer

Thanks @Sacred_Totems ,

For the sake of a completely working app for future users of this thread, I am attaching this. The start button on the last one will not work.

For your info, all I did was made the first timer AutoStart to true and increased the Duration to 4 seconds as there is a slight delay loading the first image. I put the Start code back in the attached and it still works fine.

For the Switch statement, it is nothing more than a condensed If sequence as below. Images change on the same basis. If you have done any VB, it is a Select / Case statement equivalent.

Switch(
    vTimer,         //the value being tested
    "Start1",       //If vTimer = "Start1"
    If(            
        FadeT_1.Value > 2000,       //Test if value under 2000
        FadeT_1.Value / 4000,       //If so, fade in sequence runs
        1 - FadeT_1.Value / 4000    //When it reaches 2000, start fade out sequence
    ),
    "Start2",       //and so on for the other timers
    If(
        FadeT_2.Value > 1500,
        FadeT_2.Value / 3000,
        1 - FadeT_2.Value / 3000
    ),
    "Start3",
    If(
        FadeT_3.Value > 1500,
        FadeT_3.Value / 3000,
        1 - FadeT_3.Value / 3000
    )
)

View solution in original post

6 REPLIES 6
Highlighted
Super User III
Super User III

Re: Auto Start Timer

Set a variable on the Navigation Button example:

Set(varStartTimer,true);Navigate(Screen1)
 
Then set the Start of the Timer to:
varStartTimer
 
Please remember the AutoStart is set to Off
------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
Highlighted
Super User III
Super User III

Re: Auto Start Timer

@eka24 ,

Please read this post and this one and it may assist - this appears to be a difference in settings somewhere.

If you can think of something, your ideas are welcome.

@Sacred_Totems it is always good to refer to other related material to assist a responder to zero in on the issue quicker.

Highlighted
Advocate II
Advocate II

Re: Auto Start Timer

Thank you @eka24 ,

 

@WarrenBelz is right. I should of included some more information with this, instead of trying to be ultra efficient.  I edited the question.

 

How do you get a Timer to auto start during the screen load of the very first screen, without any buttons being pushed?  The reason I am doing this, is so that a timer starts, which will trigger a series of timers.

 

Warren shared an app he made that apparently works on his computer but does not auto activate the timer on mine. I tried running it on both Chrome & Edge.

 

 

 

 

Highlighted
Super User III
Super User III

Re: Auto Start Timer

@Sacred_Totems ,

See if this one works for you

View solution in original post

Highlighted
Advocate II
Advocate II

Re: Auto Start Timer

@WarrenBelz 

 

That one is working thank you.  I am not exactly sure how the Switch is working but that is for me to figure out 🙂

 

Thank you Warren.

Highlighted
Super User III
Super User III

Re: Auto Start Timer

Thanks @Sacred_Totems ,

For the sake of a completely working app for future users of this thread, I am attaching this. The start button on the last one will not work.

For your info, all I did was made the first timer AutoStart to true and increased the Duration to 4 seconds as there is a slight delay loading the first image. I put the Start code back in the attached and it still works fine.

For the Switch statement, it is nothing more than a condensed If sequence as below. Images change on the same basis. If you have done any VB, it is a Select / Case statement equivalent.

Switch(
    vTimer,         //the value being tested
    "Start1",       //If vTimer = "Start1"
    If(            
        FadeT_1.Value > 2000,       //Test if value under 2000
        FadeT_1.Value / 4000,       //If so, fade in sequence runs
        1 - FadeT_1.Value / 4000    //When it reaches 2000, start fade out sequence
    ),
    "Start2",       //and so on for the other timers
    If(
        FadeT_2.Value > 1500,
        FadeT_2.Value / 3000,
        1 - FadeT_2.Value / 3000
    ),
    "Start3",
    If(
        FadeT_3.Value > 1500,
        FadeT_3.Value / 3000,
        1 - FadeT_3.Value / 3000
    )
)

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,304)