Good morning all,
I have a question. I am trying to have a panel open for 30 seconds and then automatically shutdown. Is there a function that could help me with that? I was thinking about timefunc() but I'm not sure that is what I need. Thank you in advance!
Dim
Open panel for a certain time period
- dvribeira
- Posts:24
- Joined: Mon Mar 18, 2019 11:53 am
Re: Open panel for a certain time period
Hi Dim,
How are you opening the panel? Normally, from your description I don't think you need high precision, you can just put a delay(30); and then close the panel. Where you do that depends more on what exactly you want to do and how you want to open/close the panel.
How are you opening the panel? Normally, from your description I don't think you need high precision, you can just put a delay(30); and then close the panel. Where you do that depends more on what exactly you want to do and how you want to open/close the panel.
- dimitrios
- Posts:8
- Joined: Tue Mar 27, 2018 12:25 pm
Re: Open panel for a certain time period
Hello there!dvribeira wrote: ↑ Mon Nov 04, 2019 3:00 pm Hi Dim,
How are you opening the panel? Normally, from your description I don't think you need high precision, you can just put a delay(30); and then close the panel. Where you do that depends more on what exactly you want to do and how you want to open/close the panel.
Thanks for the suggestion! I'm basically making a white panel for a touchscreen, which will allow the user to clean the screen for 30 seconds without the danger of clicking any buttons. Delay works fine but I was also looking for a way of representing a counter in the screen (like a bar, or a timer). That's why I was lokking for a time function maybe. Thank you again!
Dim
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: Open panel for a certain time period
If you want to display a counter you can make a loop with a delay of 1 second. Within the loop you can make a setValue() for the object which displays the counter.
When the counter has reached the limit the panel is closed.
Best Regards
Leopold Knipp
Senior Support Specialist
When the counter has reached the limit the panel is closed.
Best Regards
Leopold Knipp
Senior Support Specialist