how to show seconds...
 
Notifications
Clear all

We appreciate the contributions many of you have been able to make towards repairing the storm damage and keeping a roof over our heads. With your help we’ve been able to complete much of the critical work. There is still work to be done to secure the house and your continued support will be a huge help.

Guests have read-only access to our forums. If you wish to participate you will need to register. Be sure to activate your account from the email sent to you when you register.

how to show seconds, I found it always +2s

3 Posts
2 Users
1 Reactions
400 Views
(@eiki0)
New Member Registered
Joined: 5 months ago
Posts: 2
Topic starter  

I found it always +2s, I need +1s 🤔 

[options]
auto-scale=1
top=0
right=0
width=300
font-face=Arial
font-size=12
topmost=1
transparency=0

[items]

CMD=interval:1, color:00FFFF, text:CMD, \
    file:cmd.exe, parameters:/c "clock.bat", \
    read-as-csv:1, csv-header:1, \
    display:%TimeValue%

### clock.bat
# @echo off
# echo TimeValue
# echo %time:~0,8%

SET-SECTION=key:ps_script, value:pstime.ps1

CMD=interval:1, color:00FF00, text:PowerShell, \
    file:powershell.exe, parameters:-Command %ps_script%, \
    read-as-csv:1, csv-header:1, \
    display:%PSTime%

DATETIME=interval:1, color:888888, text:Internal, display:%5[2.0f]:%6[2.0f]:%7[2.0f]

[pstime.ps1]
Write-Host "PSTime"
Write-Host (Get-Date -Format "HH:mm:ss")

   
Quote
Glenn
(@glenn)
Member Admin
Joined: 8 years ago
Posts: 1903
 

I can't guarantee the time will update every second. It depends on what else is going on and the application runs at lower than normal priority.


   
ReplyQuote
(@eiki0)
New Member Registered
Joined: 5 months ago
Posts: 2
Topic starter  

@glenn OK, I try it to run at high priority


   
Glenn reacted
ReplyQuote
Glenn's Page