Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 781

General Discussion • Re: Get DNS then test ping on that DNS.

$
0
0
There isn't an AfterFinish action in Rainmeter or a SysInfo measure. Assuming that your SysInfo measure is before your Ping measure in the code, use something like:

Code:

[Rainmeter]Update=1000...[YourSysInfoMeasure]Measure=SysInfoSysInfoType=DNS_SERVERUpdateDivider=-1[YourPingMeasure]Measure=PluginPlugin=PingPluginDestAddress=[YourSysInfoMeasure]FinishAction=[!UpdateMeter YourMeter][!Redraw]DynamicVariables=1[YourMeter]Meter=StringMeasureName=YourPingMeasureText=Ping Result: %1 ms...
If your SysInfo measure is after your Ping measure in the code then add this to your SysInfo measure:

Code:

OnUpdateAction=[!SetOption YourPingMeasure DestAddress "[YourSysInfoMeasure]"][!SetOption YourPingMeasure UpdateRate 0][!UpdateMeasure YourPingMeasure][!SetOption YourPingMeasure UpdateRate 32]DynamicVariables=1
Obviously, the ... parts are not to be taken literally, they're simply the rest of the options you might have in those places.

Statistics: Posted by Yincognito — Today, 9:23 am



Viewing all articles
Browse latest Browse all 781

Trending Articles