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"]