Page 1 of 1

I Pinged Google and I don't know what to make of this

Posted: December 10th, 2017, 1:37 am
by Two4one1
I was experimenting with RunCommand plugin and made this skin:

Code: Select all

[MeterTest1]
Meter=String
Text=Ping Google
FontSize=16
FontColor=#White#
FontFace=Consolas
AntiAlias=1
x=0
y=200
LeftMouseUpAction=[!CommandMeasure MeasureTest1 Run]

[MeasureTest1]
Measure=Plugin
Plugin=RunCommand
Parameter=ping google.com

[MeterTest1Result]
Meter=String
MeasureName=MeasureTest1
FontSize=16
FontColor=#White#
FontFace=Consolas
AntiAlias=1
x=0
y=220
What happens when I push the text is that a series of Chinese Characters appear on the screen and it doesn't go away, I assume that this is the result of the command. I also put in other commands in the parameter and the same thing happen How do I fix this so that Latin characters appear? Does it have something to do with Localization or anything?

Re: I Pinged Google and I don't know what to make of this

Posted: December 10th, 2017, 4:20 am
by Brian
The ping commands output is ANSI encoded, so you need specify the OutputType=ANSI option in your RunCommand measure.
https://docs.rainmeter.net/manual/plugins/runcommand/#OutputType

-Brian

Re: I Pinged Google and I don't know what to make of this

Posted: December 10th, 2017, 10:46 am
by Two4one1
Brian wrote:The ping commands output is ANSI encoded, so you need specify the OutputType=ANSI option in your RunCommand measure.
https://docs.rainmeter.net/manual/plugins/runcommand/#OutputType

-Brian
Wow, Thanks very much. Never thought it was that simple :handtohead: