Results 1 to 4 of 4

Thread: Rotating through setvar commands?

  1. #1
    Wants to make it harder monkeyracer's Avatar
    Join Date
    May 2007
    Location
    Lakehood, CO
    Posts
    1,463

    Rotating through setvar commands?

    I am trying to finish up my hAv1c+ release, and I want to have the track info cycle through 3-5 items on a timer. I'd like to use setvar and byvar rather than referencing a txt /DEFINE file.

    The problem I have is how to get the setvar back to 0. for example:

    Code:
    "ONSKINSTART","SETVAR;SONGCHOICE;0"
    "TIMER","SETVAR;SONGINFO;$SONGCHOICE$||EVAL;SONGCHOICE;$SONGCHOICE$+1"
    L01,,,,,,,,,,"BYVAR;SONGINFO;TRACKTITLE<<TAGARTIST<<TAGALBUM"
    With this, on skin start, the label displays the Track Title, and on the next interval, it switches to the Artist, and the next interval it switches to the Album, but after that it displays nothing (since the setvar will show 3 or more from $SONGCHOICE$...

    So, how do I cycle back to 0 once it's at the end of the list?
    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!

  2. #2
    FLAC Chuck's Avatar
    Join Date
    Sep 2003
    Location
    Ellicott City, MD
    Posts
    1,671
    Code:
    No need for   "ONSKINSTART","SETVAR;SONGCHOICE;0" they always start at 0 unless you save them
    
    
    
    "TIMER","BYVAR;SONGCHOICE;SETVAR;SONGCHOICE;1<<SETVAR;SONGCHOICE;2<<SETVAR;SONGCHOICE;0"
    
    
    L01,,,,,,,,,,"BYVAR;SONGCHOICE;TRACKTITLE<<TAGARTIST<<TAGALBUM"
    2001 S10 ZR2

    Chucks Skin - to old

  3. #3
    Wants to make it harder monkeyracer's Avatar
    Join Date
    May 2007
    Location
    Lakehood, CO
    Posts
    1,463
    Ah, that makes sense, thanks, I'll try this tonight.
    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. #4
    Wants to make it harder monkeyracer's Avatar
    Join Date
    May 2007
    Location
    Lakehood, CO
    Posts
    1,463
    That worked! Thanks!
    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!

Similar Threads

  1. Commands to control car!
    By CarCoder in forum Engine Management, OBD-II, Engine Diagnostics, etc.
    Replies: 19
    Last Post: 10-01-2012, 05:56 PM
  2. Replies: 0
    Last Post: 05-31-2007, 08:57 PM
  3. Rotating car as rotating logo.
    By BartDP in forum RR Skins
    Replies: 1
    Last Post: 05-07-2007, 02:12 PM
  4. SpeakEasy Voice Recognition - Beta 1
    By ruairi in forum Road Runner
    Replies: 31
    Last Post: 08-23-2006, 12:12 AM
  5. send commands to apps not working?
    By liquid_smoke in forum Road Runner
    Replies: 15
    Last Post: 10-27-2005, 05:42 AM

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
  •