Announcement

Collapse
No announcement yet.

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

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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"

    Comment


    • #3
      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"

      Comment


      • #4
        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

        Comment


        • #5
          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."

          Comment


          • #6
            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...)

            Comment


            • #7
              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

              Comment


              • #8
                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."

                Comment


                • #9
                  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."

                  Comment


                  • #10
                    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."

                    Comment


                    • #11
                      Originally posted by Blue ZX3 View Post
                      I do see that no one around here reads... I have global timers in RRExtended...

                      One Shot or repeating...chsssss..
                      Wow...totally missed that feature...

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

                      Comment


                      • #12
                        I don't make this stuff up so that it doesn't get used or b/c I have absolutely nothing better to do with my time..
                        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."

                        Comment

                        Working...
                        X