Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: How to do tell an indicator to turn on/off after a predetermined amount of time?

  1. #1
    FLAC Sal R.'s Avatar
    Join Date
    Aug 2006
    Location
    Sun Diego
    Posts
    1,448

    How to do tell an indicator to turn on/off after a predetermined amount of time?

    Here's the skin code I'm currently using:
    Code:
    SETIND;CUSTOM_IND01;ON||WAIT;5||SETIND;CUSTOM_IND01;OFF
    
    
    
    .
    The code above works, but the problem with it is that the "WAIT" portion of the command. Until that portion is completed, RR queues all other incoming commands.

    How can I achieve the same thing above, but allow RR to continue processing commands commands while the timer is running down in the background?

    I've set up an AI script to run in the background that does what I would like it do it, but was wondering if there way to do it via plug in or just plain RR skin code.

    TIA!
    Pico-ITX / XP Home with EWF-HORM / RR v12/02/2009 / Winamp v5.13 / RRMedia v1.2.2

  2. #2
    One Sharp Cheddar ThunderStick's Avatar
    Join Date
    Aug 2006
    Location
    West Allis, WI
    Posts
    1,657
    write a script with a sleep command
    autoit example
    ;
    $RR = ObjCreate("RideRunner.SDK");OPEN RR FOR COMMUNICATION
    sleep(500) ; PAUSE TIME IN MS
    $RR.execute("SETIND;CUSTOM_IN01;OFF") ; SETS RR INDICATOR OFF
    exit;END OF SCRIPT
    ;
    New Age Garmin - Skin for RR
    New Age Slider - RR SKin In Progress
    "It's called CODE because I don't want you to know"

  3. #3
    One Sharp Cheddar ThunderStick's Avatar
    Join Date
    Aug 2006
    Location
    West Allis, WI
    Posts
    1,657
    This is the only I can think of with out having RR que anything. Somthing has to be done out side of RR.
    New Age Garmin - Skin for RR
    New Age Slider - RR SKin In Progress
    "It's called CODE because I don't want you to know"

  4. #4
    FLAC Sal R.'s Avatar
    Join Date
    Aug 2006
    Location
    Sun Diego
    Posts
    1,448
    Yeah, I've got that setup already.

    I'm hoping there's away so that I don't have to use another AI script.
    Pico-ITX / XP Home with EWF-HORM / RR v12/02/2009 / Winamp v5.13 / RRMedia v1.2.2

  5. #5
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,817
    The only thing you could do right now is set a timer event and use a variable to count the time.. but it would not work well between different screens unless you used a timer everywhere... I am planning to make a "timed" command of some sort.. perhaps for next release..
    Ride Runner RR's Myspace

    "Being happy is not about having what you want, it's about wanting what you have."
    "The best things in life are always free - but that doesn't mean money can't buy you good things."

  6. #6
    Variable Bitrate
    Join Date
    Sep 2007
    Location
    Export, PA
    Posts
    265
    yeah i was about to suggest a timer as well...

    timer with a byvar toggle/flip-flop
    Planning: [|||||||||-] 90%
    Purchased: [|||||||||/] 99%
    Installation: [|||||||||-] 90% (when is anyone's project ever REALLY done...)

  7. #7
    FLAC Sal R.'s Avatar
    Join Date
    Aug 2006
    Location
    Sun Diego
    Posts
    1,448
    Quote Originally Posted by guino View Post
    The only thing you could do right now is set a timer event and use a variable to count the time.. but it would not work well between different screens unless you used a timer everywhere... I am planning to make a "timed" command of some sort.. perhaps for next release..
    That'd be nice. One less AI script sitting in my folder...
    Pico-ITX / XP Home with EWF-HORM / RR v12/02/2009 / Winamp v5.13 / RRMedia v1.2.2

  8. #8
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,817
    The timed command support is implemented for next release.
    Ride Runner RR's Myspace

    "Being happy is not about having what you want, it's about wanting what you have."
    "The best things in life are always free - but that doesn't mean money can't buy you good things."

  9. #9
    The Curator
    Auto Apps:loading...
    Blue ZX3's Avatar
    Join Date
    Aug 2004
    Location
    Chicago area,IL
    Posts
    5,079
    I do see that no one around here reads... I have global timers in RRExtended...

    One Shot or repeating...chsssss..
    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."

  10. #10
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,817
    The way I implemented it is not really a "timer" per say, but a way to execute any command (or set of commands) after a specified time, non-reoccurring unless you issue another (or the same) timed command. A rather simple and humble approach compared to all that's in RRExtended.
    Ride Runner RR's Myspace

    "Being happy is not about having what you want, it's about wanting what you have."
    "The best things in life are always free - but that doesn't mean money can't buy you good things."

Page 1 of 2 12 LastLast

Similar Threads

  1. can you turn on/off atx with a SPST switch?
    By tekta in forum Power Supplies
    Replies: 6
    Last Post: 02-07-2008, 06:04 AM
  2. Features I would like to see in Streetdeck
    By Gayden in forum StreetDeck
    Replies: 1
    Last Post: 08-04-2006, 01:49 PM
  3. Need Help With The Turn On/Off Buttons
    By james33440 in forum Power Supplies
    Replies: 9
    Last Post: 10-17-2005, 01:53 AM
  4. Replies: 13
    Last Post: 06-08-2005, 11:43 PM
  5. Replies: 0
    Last Post: 07-23-2002, 12:45 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
  •