Code: Select all
[Uptime]
Measure=Uptime
Format="%3!02i!:%2!02i!:%1!02i!"
[Reset]
Measure=Calc
Formula=[Uptime]
IfEqualValue=00:01:00
IfEqualAction=!Execute [!RainmeterResetStats]
Code: Select all
[Uptime]
Measure=Uptime
Format="%3!02i!:%2!02i!:%1!02i!"
[Reset]
Measure=Calc
Formula=[Uptime]
IfEqualValue=00:01:00
IfEqualAction=!Execute [!RainmeterResetStats]
Code: Select all
[UptimeHours]
Measure=Uptime
Format="%3!i!"
[UptimeMinutes]
Measure=Uptime
Format="%2!i!"
[TotalUpMinutes]
Measure=Calc
Formula=([UptimeMinutes] + ([UptimeHours] * 60))
IfEqualValue=1
IfEqualAction=!RainmeterResetStats
DynamicVariables=1
Sorry, but what does this have to do with this old thread on a completely different subject?Bgdrls wrote:@jsmorley, how to reset NET stats on every PC reboot/startup, or Rainmeter restart?
Code: Select all
Set objShell = WScript.CreateObject("WScript.Shell")
ObjShell.exec("C:\Program Files\Rainmeter\Rainmeter.exe")
WScript.Sleep(2000)
ObjShell.exec("C:\Program Files\Rainmeter\Rainmeter.exe !ResetStats")
Set ObjShell=Nothing
Not really. You don't want it to reset the stats on just refresh, and there is no way Rainmeter can know that it was just started.Bgdrls wrote:Thank you so much for this example. I'm gonna do this way.
Btw, is there any way to do this with Rainmeter.ini? Maybe to add !RainmeterResetStats to particular scin code in Rainmeter.ini?
Ok & tnx a lot.jsmorley wrote: Not really. You don't want it to reset the stats on just refresh, and there is no way Rainmeter can know that it was just started.