Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 36

Thread: RR Strings/Variables Plugin [ Now in RRExtended ]

  1. #21
    FLAC Sal R.'s Avatar
    Join Date
    Aug 2006
    Location
    Sun Diego
    Posts
    1,448
    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

  2. #22
    The Curator
    Auto Apps:loading...
    Blue ZX3's Avatar
    Join Date
    Aug 2004
    Location
    Chicago area,IL
    Posts
    5,079
    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."

  3. #23
    Wants to make it harder monkeyracer's Avatar
    Join Date
    May 2007
    Location
    Lakehood, CO
    Posts
    1,463
    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:
    Code:
    "StrLeft;powermon_battstate;1;batterystate"
    works and displays "c" or "d"

    But in step two:
    Code:
    "StrLeft;powermon_battstate;1;batterystate1||StrRepl;batterystate1;c;Y;batterystate"
    .
    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.

    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:

    Code:
    "StrRepl;powermon_battstate;charging|discharging;y| ;batterystate"
    .
    with single pipes maybe? (or some other separator) would be good.

    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:

    Code:
    "StrLen;powermon_battstate;batterystate1"
    should display either 8 or 11, but displays nothing.

    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!

  4. #24
    The Curator
    Auto Apps:loading...
    Blue ZX3's Avatar
    Join Date
    Aug 2004
    Location
    Chicago area,IL
    Posts
    5,079
    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."

  5. #25
    Wants to make it harder monkeyracer's Avatar
    Join Date
    May 2007
    Location
    Lakehood, CO
    Posts
    1,463
    I ended up doing this:

    in exectbl.ini:

    Code:
    "TIMER","StrLen;powermon_battstate;batterystate1||eval;batterystate;$batterystate1$-7||setvar;battstate;$batterystate$"
    .
    then the label is this:

    Code:
    L05,784,443,15,39,#FRed#,#FGreen#,#FBlue#,24,"CarPC","byvar;battstate;= <<=Y<<= ","CENTER"
    .
    (I did it this way for those that do not have powermon installed, they won't see anything...)

    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!

  6. #26
    Constant Bitrate
    Join Date
    Jan 2007
    Location
    Greece
    Posts
    134
    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?

  7. #27
    Constant Bitrate
    Join Date
    Jan 2007
    Location
    Greece
    Posts
    134
    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:
    Code:
    RRStrings_Strlrepl;GPSSPD;km/h;;myvar
    L,356,489,82,54,162,174,11,8,"Arial","$myvar$","LEFT"
    but nothing happens.

    I've tried different commands but I still haven't figured it out...

  8. #28
    FLAC Sal R.'s Avatar
    Join Date
    Aug 2006
    Location
    Sun Diego
    Posts
    1,448
    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

  9. #29

  10. #30
    Constant Bitrate
    Join Date
    Jan 2007
    Location
    Greece
    Posts
    134
    Quote Originally Posted by Sal R. View Post
    okay...obvious suggestion...did you set the gpsport correctly in rr.ini?
    Yep, I've placed the label next the the original -working- GPSSPD label.

    Also this function is now in his RRExtended plugin, so it might be better to try that.
    I'm using RRextended v1.10. I corrected the above code to X,RRextended (mistype)


    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?

Page 3 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. RRFusion- My Fusion Brain plugin for RR
    By Sonicxtacy02 in forum RR Released Plugins
    Replies: 497
    Last Post: Yesterday, 07:44 AM
  2. How do I setup the CD Rip plugin ?
    By guino in forum RR FAQ
    Replies: 2
    Last Post: 12-18-2008, 08:28 AM
  3. pc reboot on sd startup
    By duanes7 in forum StreetDeck
    Replies: 3
    Last Post: 12-14-2007, 09:55 AM
  4. IRMAN plugin
    By knyarko in forum StreetDeck
    Replies: 3
    Last Post: 01-05-2007, 09:26 PM
  5. RR doesn't start Phoco on initial load..
    By DutchBurner in forum Road Runner
    Replies: 16
    Last Post: 11-04-2005, 02:17 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •