It is currently May 3rd, 2024, 10:42 pm

String to Text?

Get help with creating, editing & fixing problems with skins
Norinion
Posts: 1
Joined: September 8th, 2011, 10:21 am

String to Text?

Post by Norinion »

Hi, I'm currently trying to make the Coretemp Speed from MHz to GHz. However, i think the output of the Coretempspeed is only a string. Is it possible to somehow convert this to a number i can put in Calc to operate? If not, any way other way to do this?

My current Code:

Code: Select all

[mCpuSpeed]
Measure=Plugin
Plugin=Plugins\Coretemp.dll
CoreTempType=CpuSpeed

[CpuSpeed]
Meter=STRING
MeasureName=mCpuSpeed
Text="%1 MHz"

Thanks So Much in Advance

P.S. I'm not sure if this the right section... sorry in advance
User avatar
KreAch3R
Posts: 608
Joined: February 7th, 2011, 7:27 pm
Location: Thessaloniki, GR

Re: String to Text?

Post by KreAch3R »

I haven't got the time to test your skin, but if you think the output is a string instead of numbers, visit this link to see how to solve it. Basically, you have to pass it through a simple Calc measure.
Inactive, due to life changes. Send me a PM for any question.

Desktop DeviartArt
Image