Announcement

Collapse
No announcement yet.

only run a command after 2 commands?

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

  • only run a command after 2 commands?

    Hello

    I'm using RideRunner with iGOBMW2009 Skin, but with IBuscommunicatoRR Plugin.

    Is it possible to run a command after 2 commands?

    example:
    HOLD = STARTFFWD
    IF HOLD and RELEASE = STOPFFWD
    IF PRES and RELEASE = NEXT

    regards
    RR-Skin: BMW OpenBM Skin for E39 [never ending progress :-(]
    RR-Plugin: IBusCommunicatoRR new Updates

  • #2
    if HOLD is a var that copy the original command in my opinion you could add a check-var on it (because if i understand you whant if a button pressed then do NEXT else do STOPFFWD )
    anyway this if i remember correctly can be done in a premade way (if i remember right)

    Comment


    • #3
      at the moment i have these commands in exectbl.ini. the "BUT_NEXT_..." come from IBuscommunicatoRR

      "BUT_NEXT_PRES","STARTFFWD"
      "BUT_NEXT_HOLD","FFWD"
      "BUT_NEXT_REL","STOPFFWD"
      /"BUT_NEXT_REL","NEXT"

      Now if i get the Commands behind after: "BUT_NEXT_PRES" "BUT_NEXT_REL" it should do "NEXT"
      When the "FFWD" starts, it must cancel the NEXT Command, if i do "NEXT" with "BUT_NEXT_REL"

      How can i work with check-var?
      I know its very difficult to realise.
      RR-Skin: BMW OpenBM Skin for E39 [never ending progress :-(]
      RR-Plugin: IBusCommunicatoRR new Updates

      Comment


      • #4
        Now, i have added these lines to EXECTBL.ini

        "BUT_NEXT_PRES","STARTFFWD"
        "BUT_NEXT_HOLD","FFWD"

        "STARTFFWD","SETVAR;FASTR;NEXT"
        "FFWD","SETVAR;FASTR;STOPFFWD"

        "BUT_NEXT_REL","$FASTL$"

        But RR does not seek.

        PS. Why must every Post of me check by admin?
        RR-Skin: BMW OpenBM Skin for E39 [never ending progress :-(]
        RR-Plugin: IBusCommunicatoRR new Updates

        Comment


        • #5
          Originally posted by harryberlin View Post
          Now, i have added these lines to EXECTBL.ini

          "BUT_NEXT_PRES","STARTFFWD"
          "BUT_NEXT_HOLD","FFWD"

          "STARTFFWD","SETVAR;FASTR;NEXT"
          "FFWD","SETVAR;FASTR;STOPFFWD"

          "BUT_NEXT_REL","$FASTL$"

          But RR does not seek.

          PS. Why must every Post of me check by admin?

          Skin:
          Code:
          Bxx,xxx,xxx,xxx,xxx,"STOPFFWD",@SETVAR;GOFFWD;1||FASTFFWD@
          ExecTBL:
          Code:
          "FASTFFWD","IFVAR;GOFFWD=1;FFWD||FASTFFWD<<"
          "STOPFFWD","IFVAR;GOFFWD=1;SETVAR;GOFFWD;0<<NEXT"
          this is taken from skincommads. code not tested but will give ou some ideas.
          another way is to use a timer. using IFVAR or BYVAR commands.
          i havent used RR code in some time but i think is a starting point for you.
          Last edited by EL CAMINO; 09-24-2012, 01:43 PM.
          BASSRR ==> [Audio Player/MusicDB/Cd Player/Ripper/Rate/Internet Radio/Audio Capture/Youtube Video]
          RRTube ==> [View/Download Youtube Videos]
          WifiMan ==> [Wifi Manager]
          RRec ==> [Audio Capture]

          If You Want To Be Given Everything, Give Everything Up ...
          Bird York -- In The Deep --

          Comment


          • #6
            THX. I try it at home on wednessday.

            there is a small misstake in the commandline "BUT_NEXT_REL","$FASTL$". "BUT_NEXT_REL","$FASTR$"

            For Example, i have one button, wich send following codes:

            by short push: PRESS -> RELEASE
            on hold: PRESS -> HOLD -> HOLD -> HOLD -> ... (every Hold after one second)-> RELEASE
            Because the Hold starts after one second, i'd like to start FFWD jet on PRESS.
            If i get PRESS and RELEASE fast enough behind after -> do NEXT.

            my commands in the last post are working, but RR irgnore the STARTFFWD and FFWD. is this effect normal? only my commands run.
            Last edited by harryberlin; 09-24-2012, 05:28 PM.
            RR-Skin: BMW OpenBM Skin for E39 [never ending progress :-(]
            RR-Plugin: IBusCommunicatoRR new Updates

            Comment


            • #7
              Hello

              It's not working
              because FASTFFWD loops and CPU-Usage over 100% -> RR freeze.
              RR-Skin: BMW OpenBM Skin for E39 [never ending progress :-(]
              RR-Plugin: IBusCommunicatoRR new Updates

              Comment


              • #8
                this workaround is now in use. i don't know an other method.

                /SEEKING
                "ONSKINSTART","SETVAR;GOFFWD;0||SETVAR;GOFRWD; 0"
                "BUT_NEXT_PRES",""
                "BUT_NEXT_HOLD","IFVAR;GOFFWD=1;FFWD<<SETVAR;GOFFW D;1||STARTFFWD"
                "BUT_NEXT_REL","IFVAR;GOFFWD=1;SETVAR;GOFFWD;0||ST OPFFWD<<NEXT"

                "BUT_PREV_PRES",""
                "BUT_PREV_HOLD","IFVAR;GOFRWD=1;FRWD<<SETVAR;GOFRW D;1||STARTFRWD"
                "BUT_PREV_REL","IFVAR;GOFRWD=1;SETVAR;GOFRWD;0||ST OPFRWD<<PREV2"
                RR-Skin: BMW OpenBM Skin for E39 [never ending progress :-(]
                RR-Plugin: IBusCommunicatoRR new Updates

                Comment


                • #10
                  OK, it's very difficult. i know there is an option, that ibuscomm wait of a telegram before resume his work.

                  the problem is, RR should set an var by running ffwd. if i do "FFWD","SETVAR;GOFFWD;1", RR cancel his own FFWD-command -> no sseking.
                  RR-Skin: BMW OpenBM Skin for E39 [never ending progress :-(]
                  RR-Plugin: IBusCommunicatoRR new Updates

                  Comment


                  • #11
                    and the other problem is, when RR is running commands like "START","CMD1||CMD2||CMD3||CMD4". first after these CMD1-4 are new commands accept to RR.
                    RR-Skin: BMW OpenBM Skin for E39 [never ending progress :-(]
                    RR-Plugin: IBusCommunicatoRR new Updates

                    Comment


                    • #12
                      With an extension plugin you can make any behavior you want, but with just the skin you can have quick push+release command and a "Hold" command, your hold command could be something like a startffwd (whatever you need) and you could add a timer to the screen that would check if it's fast forwarding and stop it. Then add your startffwd command to the repeat command list (using onskinstart or whatever) and it will automatically be repeated over and over (overriding the stop command while you keep pressing it).
                      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

                      Working...
                      X