It is currently October 9th, 2024, 6:48 pm

New ADAPTER_TYPE option for SysInfo

Changes made during the Rainmeter 4.0 beta cycle.
User avatar
jsmorley
Developer
Posts: 22847
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

New ADAPTER_TYPE option for SysInfo

Post by jsmorley »

We have added a new ADAPTER_TYPE SysInfoType option for the SysInfo plugin.

https://docs.rainmeter.net/manual-beta/plugins/sysinfo/#SysInfoType

This will return both String and Number values.

Possible string values:
Ethernet
Wireless
Other

Number value:
6 (Ethernet)
71 (Wireless / WiFi)
1-280 (Other)

One of those first two is going to be the result for 99.9% of folks on a Windows system. If you get "Other" as the string value, you can check the number value with Text=[MeasureName:] in a string meter, and look up the code at:

https://msdn.microsoft.com/en-us/library/windows/desktop/aa366062(v=vs.85).aspx

Code: Select all

[MeasureAdapterType]
Measure=Plugin
Plugin=SysInfo
SysInfoType=ADAPTER_TYPE
SysInfoData=Best
IfMatch=Wireless
IfMatchAction=[!Log "I'm Wireless"]
IfNotMatchAction=[!Log "I'm Ethernet"]
Here is an example skin:
NetworkV4_1.0.rmskin
1.jpg
You do not have the required permissions to view the files attached to this post.