New IDLE_TIME SysInfo value
Posted: February 23rd, 2014, 6:45 pm
We have added a new SysInfoType of IDLE_TIME to the SysInfo plugin.
This will return the number of seconds since the last user input (mouse or keyboard) to the operating system.
This can be used to have Rainmeter skin take some action (or inaction) based on the fact that the operating system has been "idle" for some number of seconds.
Here is one example of how you might use this information:
In effect this creates a very rudimentary "Rainmeter screensaver"
Change IdleSeconds to something smaller to test it without waiting so long...
This will return the number of seconds since the last user input (mouse or keyboard) to the operating system.
This can be used to have Rainmeter skin take some action (or inaction) based on the fact that the operating system has been "idle" for some number of seconds.
Here is one example of how you might use this information:
Code: Select all
[Rainmeter]
Update=100
AccurateText=1
DynamicWindowSize=1
OnRefreshAction=[!Move 0 0][!ZPos 2][!Hide]
[Metadata]
Name=RainSaver
Author=JSMorley
Information=Rudimentary screen saver for Rainmeter, using new IDLE_TIME data from the SysInfo plugin.||Set IdleSeconds for the idle time you desire.
Version=Feb 25, 2014
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
[Variables]
IdleSeconds=600
FontSize=120
FontColor=255,255,255,255
[MeasureIdleTime]
Measure=Plugin
Plugin=SysInfo
SysInfoType=Idle_Time
IfAboveValue=#IdleSeconds#
IfAboveAction=[!EnableMeasureGroup "Measures"][!ShowMeterGroup "Meters"][!ToggleFade *]
[MeasureWakeUp]
Measure=Calc
Group=Measures
Formula=MeasureIdleTime
IfEqualValue=0
IfEqualAction=[!ToggleFade *][!Refresh]
Disabled=1
[MeasureTime]
Measure=Time
Group=Measures
Format=%A#CRLF#%B %#d %Y#CRLF#%#I:%M:%S
UpdateDivider=10
Disabled=1
[MeterBackground]
Meter=Image
Group=Meters
W=#SCREENAREAWIDTH#
H=#SCREENAREAHEIGHT#
SolidColor=47,47,47,230
UpdateDivider=-1
Hidden=1
[MeterTime]
Meter=String
Group=Meters
MeasureName=Measuretime
X=(#SCREENAREAWIDTH# / 2)
Y=(#SCREENAREAHEIGHT# / 2)
StringAlign=CenterCenter
FontSize=#FontSize#
FontColor=#FontColor#
AntiAlias=1
Hidden=1
Change IdleSeconds to something smaller to test it without waiting so long...