Not sure if this will work, but in the RR.ini:
Maybe changing that to have nothing, could possibly work.
I'm trying to make a slider for the current temperature based on the code "w_tmp" in the skincommands.txt.
I've got it almost all the way working:
This is designed so that if the temp is 120, the slider would be at or close to 100%Code:SETVARBYCODE;TEMPSLIDER;w_tmp||EVAL;TEMP;$TEMPSLIDER$*546
Problem is the "w_tmp" label returns with the degrees symbol, and it doesn't calculate the slider's position because the label isn't strictly a number. (Can't calculate, so it always returns the position as 0, same as if you tried to divide 120 by orange, the answer is zero because the syntax is wrong.)
Is there a way to get just the numeric value from the "w_tmp" label so that this can be done?
Doesn't seem like that works.
I had a label display the calculations, it always comes up as 0.
I had it display the $TEMPSLIDER$ variable, and it shows the temperature in this format:
So I basically need to find a way to delete the "space degrees symbol space F" from the tag...
you need to do this in Autoit and trim the sting of the degree symbol and then set a variable in RR and use that.
Not familiar with autoit yet, but...
I guess I'll D/L and
off to learn...
Something like this should do it.
Then you should have MYTEMP showing only 75 instead of 75*FCode:$rr = ObjCreate("RoadRunner.sdk") $var = $rr.getinfo("w_tmp") $var = StringTrimLeft($var, 3) $var = StringStripWS($var, 8) ;MsgBox(4096, "Result", $var) $rr.execute("SETVAR;MYTEMP; &$var")
Ok, here is ascript what does exactly this. You can run it when ever you update the weather info. The VARIABLE is called "MYTEMP" and if you want to set a label then use
as label code "=$MYTEMP$"
Tested and working.
Just rename the file to WeatherTemp.exe
since i'm still new with autoit...
So, I would compile this into a script saved as an .exe and have the above code amended to look like this right?:
Or just have myscript.exe load "ONSKINSTART" (So that it doesn't try to load it again when I go back and click the above button again...)Code:Run;$skinpath$myscript.exe||SETVARBYCODE;TEMPSLIDER;MYTEMP||EVAL;TEMP;$TEMPSLIDER$*546
Didn't see you posted the script. I'll try this when I get to my home computer.
Just Rename it to weatherTemp.exe and put it in your scripts folder.
On you menu.skin where you call the weather.skin, run this script.
The script only returns the number, like 78 or 52 in the VARIABLECode:"LOAD;Weather.skin||RUN;$SKINPATH$myscripts\weatherTemp.exe||SETVARBYCODE;TEMPSLIDER;$MYTEMP$||EVAL;TEMP;$TEMPSLIDER$*546"
Exactly what I was looking for, now it's a matter of time to wait for the official release of the RR update, so that weather AND solid slider styles work at the same time.