Is it possible to show the actual time of day (time of the PC) in a label? I tried to use “GetTimeString(":")” but i don’t find a solution.
Thanks
Time of day
Time of day
- Attachments
-
- time.JPG (9.69 KiB) Viewed 7109 times
Re: Time of day
Hi,
yes, it is possible.
- Create a string gate with your desired name such as "DateTime".
- Enter in the Winlog code this function:
- Attach the gate to the label in the template.
yes, it is possible.
- Create a string gate with your desired name such as "DateTime".
- Enter in the Winlog code this function:
Code: Select all
Function void DateTime()
#startup
While(WindowIsOpen())
SetStrGateValue("DateTime", 0, GetTimeString(":"));
Sleep(1000);
end
end