It is currently April 24th, 2024, 10:49 pm

SysInfoType OS_VERSION outputs?

Share and get help with Plugins and Addons
User avatar
Virginityrocks
Posts: 478
Joined: February 26th, 2011, 10:22 pm

SysInfoType OS_VERSION outputs?

Post by Virginityrocks »

I'm wondering what all of the OS_VERSION string outputs are for ALL versions of Windows. I need to substitute version names of Windows to a number so that I can change behaviours of certain buttons based on the OS the user is running.

So far I have...

Code: Select all

[MeasureOSVersion]
Measure=Plugin
Plugin=SysInfo
SysInfoType=OS_VERSION
Substitute="Windows XP":"1","Windows Vista":"2","Windows 7":"3","Windows 8.1":"4","Windows 8":"4","Windows 9":"5"
In fact, I would love it if this were made an actual option for the SysInfo plugin, outputting the value as a number instead of a string.
Droptop Four
Dropdown menu bar & app launcher for Windows & Rainmeter
User avatar
Brian
Developer
Posts: 2681
Joined: November 24th, 2011, 1:42 am
Location: Utah

Re: SysInfoType OS_VERSION outputs?

Post by Brian »

SysInfo will return the following OS_VERSION strings:
  • Windows XP
  • Windows 2003
  • Windows Vista
  • Windows Server 2008
  • Windows 7
  • Windows Server 2008 R2
  • Windows 8
  • Windows Server 2012
  • Windows 8.1
  • Windows Server 2012 R2
  • Unknown
This list can change periodically when new versions of Windows come out.
To get the latest, you can look through the source code here: https://github.com/rainmeter/rainmeter/blob/master/Common/Platform.cpp#L24

-Brian
User avatar
Virginityrocks
Posts: 478
Joined: February 26th, 2011, 10:22 pm

Re: SysInfoType OS_VERSION outputs?

Post by Virginityrocks »

Brian, do you know which versions support Aero Glass other than Vista and 7? The primary purpose of using SysInfo is to determine transparencies of skins based on whether or not Aero Glass is available.
Droptop Four
Dropdown menu bar & app launcher for Windows & Rainmeter
User avatar
Brian
Developer
Posts: 2681
Joined: November 24th, 2011, 1:42 am
Location: Utah

Re: SysInfoType OS_VERSION outputs?

Post by Brian »

I believe Windows Vista and Windows 7 are the only ones that support Aero Glass. (Not sure about the Server versions, but I doubt many Rainmeter users are on those).

-Brian