From e374f5d028df60476b108a7d5cab73a189bef02b Mon Sep 17 00:00:00 2001 From: Alex Guerrieri Date: Sat, 16 Mar 2019 13:39:28 +0100 Subject: [PATCH] OS Version --- system/system.ini | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/system/system.ini b/system/system.ini index 0979dcd..668c137 100644 --- a/system/system.ini +++ b/system/system.ini @@ -3,7 +3,7 @@ Name=System Author=Alex Guerrieri Information=Displays info about the system. License=Creative Commons -Version=1.0.1 +Version=1.0.2 @Include=../common.ini @@ -25,6 +25,23 @@ Plugin=SysInfo SysInfoType=OS_VERSION UpdateDivider=-1 +[_OSEdition] +Measure=Plugin +Plugin=RunCommand +Parameter=wmic os get caption +State=Hidden +OutputType=ANSI +RegExpSubstitute=1 +Substitute="Caption\s+Microsoft\s+":"","\s+#CRLF#":"" +OnChangeAction=[!SetOption MeterOS Text "%3 x%2"][!Redraw "MeterTest"] + +[_onLoad] +Measure=Calc +Formula=Counter +IfAboveValue=0 +IfAboveAction=[!CommandMeasure "_OSEdition" "Run"] +UpdateDivider=-1 + [_OSBits] Measure=Plugin Plugin=SysInfo @@ -157,6 +174,7 @@ MeterStyle=_system | _style | _hover | _darker | _spaced StringStyle=Italic MeasureName=_OSVersion MeasureName2=_OSBits +MeasureName3=_OSEdition Text="%1 x%2" LeftMouseUpAction="ms-settings:about" @@ -170,4 +188,4 @@ FontSize=(1.50*#FONTSIZE#) Text="%1@%2" X=5r Y=(-2.75*#FONTSIZE#)r -LeftMouseUpAction="ms-settings:yourinfo" \ No newline at end of file +LeftMouseUpAction="ms-settings:yourinfo"