Guys, I recently started making programs with this software. I'd like to create a mini program that get Clock data from the PC. How can I do it?
Announcement
Collapse
No announcement yet.
How to import Clock data in a program
Collapse
X
-
You can use Page.StartTimer() to start a timer which fires each second (or a longer time, if you are not going to display the seconds). In the On Timer event script, get the current time with System.GetTime(), and then display the information according to your taste in a Label, Input, etc. object on the page. Check the examples for these actions I mentioned in the documentation for detailed information.
Ulrich
-
Originally posted by Ulrich View PostYou can use Page.StartTimer() to start a timer which fires each second (or a longer time, if you are not going to display the seconds). In the On Timer event script, get the current time with System.GetTime(), and then display the information according to your taste in a Label, Input, etc. object on the page. Check the examples for these actions I mentioned in the documentation for detailed information.
Ulrich
Comment
-
Originally posted by Ulrich View PostYou can use Page.StartTimer() to start a timer which fires each second (or a longer time, if you are not going to display the seconds). In the On Timer event script, get the current time with System.GetTime(), and then display the information according to your taste in a Label, Input, etc. object on the page. Check the examples for these actions I mentioned in the documentation for detailed information.
Ulrich
Comment
Comment