View Single Post
Old 05-10-2008, 11:01 PM   #14
monkeyracer
Wants to make it harder
 
monkeyracer's Avatar
 
Join Date: May 2007
Location: Lakehood, CO
Posts: 1,375
OK, I rearranged the code to look like this:

Code:
"WEATHER||wait;5||RUN;$skinpath$weatherTemp.exe||SETVAR;TEMPSLIDER;$MYTEMP$||EVAL;TEMP;$TEMPSLIDER$*546" .

And it works, but I have to load the weather skin, then go back to main, and load it again for it to calculate.

I basically have to run the code above, wait a few seconds, then load it again. I set a timer event so that every 5 seconds it evals the variables and set's the slider, because the first time it loads, it shows 0, then the second time it shows the correct amount.
I think this is because it takes a couple seconds to download the info from the .xml feed and it has to start from the WEATHER.skin (rather than having the skin pre-loaded) so the first time it tries, the label isn't set yet. (I've tried the wait; at 10 seconds though, and that didn't seem to affect it.)

We're getting closer to getting this working nicely though.

In skincommands.txt:

Quote: Originally Posted by skincommands.txt
This event is re-occurring, so every few XXX seconds it will re-execute the TIMER event.
You can use a simple variable switch to prevent it from executing your command more than once (if desired).

What variable switch would I use? Is there a way to execute the command only until the evaluated result is above 0?
__________________
2007 Chrysler PT Cruiser TE
Car PC Progress:
Planning.......[---------X-] 95%
Parts...........[---------X-] 90%
Fabrication...[---------X-] 90%
RR Skin........[---------X-] 95%
View my
Worklog
Road Runner Skins
Website
Favorite thread EVER!

Last edited by monkeyracer; 05-10-2008 at 11:06 PM.
monkeyracer is offline   Reply With Quote