Your welcome!
Much better than relying on an outside app to do something so simple...
Again...awesome plugin...even works w/ variables:
i.e.
PathFromPath;TRACKPATH$ctrack$;ctrack
Thx Blue!
Pico-ITX / XP Home with EWF-HORM / RR v12/02/2009 / Winamp v5.13 / RRMedia v1.2.2
Your welcome!
Much better than relying on an outside app to do something so simple...
RideRunner...The #1 FE, PERIOD.
Current Project: DFXVoice [v1.0 Released]
Next in line: RRMedia v2.0
DFX 5.1.1 Skin
Appstore Link
My RideRunner Plugins
RRMedia
RRExtended
DFXVoice
"There are no bugs - only undocumented features."
How do I perform multiple commands at once with this?
I've got a label from the powermon plugin "powermon_battstate" that displays either "charging" or "discharging" I've got a custom font that has a charging symbol for the "Y" character
I need to do three things;
1. display only the first letter of the labels
2. replace "c" with "Y"
3. replace "d" with " "
It doesn't seem to work this way though...
I did this in sections to see where it goes wrong, step 1:
works and displays "c" or "d"Code:"StrLeft;powermon_battstate;1;batterystate"
But in step two:
it displays "Y" but not "d", this doesn't make sense, if the variable "batterystate1" displays both "c" and "d", then replacing just one letter should keep the other one.Code:"StrLeft;powermon_battstate;1;batterystate1||StrRepl;batterystate1;c;Y;batterystate" .
I have this on a timer to have it update every second to make sure it's got the right state.
If I could get this done in one step, that would be ideal. Something like this:
with single pipes maybe? (or some other separator) would be good.Code:"StrRepl;powermon_battstate;charging|discharging;y| ;batterystate" .
Unless there's a better way to do this?
edit: Maybe something where it takes the length of the string, then evaluates it, so if it's 8, then it displays "Y" with byvar, but if it's 11, it displays nothing...
edit2: StrLen doesn"t seem to work:
should display either 8 or 11, but displays nothing.Code:"StrLen;powermon_battstate;batterystate1"
edit3: i d/l'd the newest version, it's working...
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!
This would be my proposed way of doing what your trying to do...
Code:"TIMER","CheckBattState" "CheckBattState","SETVARBYCODE;currbatstate;powermon_battstate||Eval;currbatstate;strcomp("$currbatstate$";"charging")||BYVAR;currbatstate;BatChrg<<BatDisChrg" "BatChrg","SETVAR;batterystate;Y" "BatDisChrg","SETVAR;batterystate; "
RideRunner...The #1 FE, PERIOD.
Current Project: DFXVoice [v1.0 Released]
Next in line: RRMedia v2.0
DFX 5.1.1 Skin
Appstore Link
My RideRunner Plugins
RRMedia
RRExtended
DFXVoice
"There are no bugs - only undocumented features."
I ended up doing this:
in exectbl.ini:
then the label is this:Code:"TIMER","StrLen;powermon_battstate;batterystate1||eval;batterystate;$batterystate1$-7||setvar;battstate;$batterystate$" .
(I did it this way for those that do not have powermon installed, they won't see anything...)Code:L05,784,443,15,39,#FRed#,#FGreen#,#FBlue#,24,"CarPC","byvar;battstate;= <<=Y<<= ","CENTER" .
And it works, but in a roundabout manner...
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!
What is the correct way to delete the km/h text from GPSSPD, and keep only the units?
I've tried something like
StrRepl;GPSSPD;km/h;;mynewtext"
LXX,,,,,"$mynewtext$"
(and setting mynewtext to nothing)
but I haven't done anything....
Any ideas?
Need some help here guys!
Steps I've done:
1)Registered the dll
2)Placed X,RRextended in my menu.skin
3)In the gps.skin I have:
but nothing happens.Code:RRStrings_Strlrepl;GPSSPD;km/h;;myvar L,356,489,82,54,162,174,11,8,"Arial","$myvar$","LEFT"
I've tried different commands but I still haven't figured it out...
okay...obvious suggestion...did you set the gpsport correctly in rr.ini?
Pico-ITX / XP Home with EWF-HORM / RR v12/02/2009 / Winamp v5.13 / RRMedia v1.2.2
Also this function is now in his RRExtended plugin, so it might be better to try that.
Yep, I've placed the label next the the original -working- GPSSPD label.
I'm using RRextended v1.10. I corrected the above code to X,RRextended (mistype)Also this function is now in his RRExtended plugin, so it might be better to try that.
I've also used the strleft command, to show me only the first digit (0), but without success...
As a matter of fact, not even the "RRStrings_StrLeft;TrackPath;6;Myvar" works....
Maybe the DLL needs to be registered somewhere else? Do I have to place anything into the exectbl.ini file?
Bookmarks