Announcement

Collapse
No announcement yet.

Repeat command on button hold

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

  • Repeat command on button hold

    I'm using COM objects to communicate between RR and Fusion Brain MDX. For my power mirror control pressing the button sends the command that pulses a FB output. Can holding a button send a command over and over again until it is released? At the moment I have to tap, tap, tap my button to make large changes in mirror position.

    Code:
    /, Fusion Control Centre
    X,FusionCOM
    L,134,524,65,25,0,0,0,14,"Verdana:B","fusion_varnum_0_1","RIGHT"
    L,20,524,58,25,0,0,0,14,"Verdana:B","fusion_varnum_11_1","RIGHT"
    INC,Bottomtext.txt
    L3,1025,0,5,5,255,255,255,12,#DFXFont#,"=.",
    B05,626,192,63,73,"fusion_vote_Passdown",
    B05,244,190,63,73,"fusion_vote_Drivdown",
    B05,624,116,63,73,"fusion_vote_Passup",
    B05,245,116,63,73,"fusion_vote_Drivup",
    B05,311,160,89,60,"fusion_vote_Drivin",
    B05,151,161,89,60,@fusion_vote_Drivout@,
    B,538,158,84,63,"fusion_vote_Passin",
    B,697,158,84,63,"fusion_vote_Passout",
    Attached Files

  • #2
    There are only a few commands that are automatically "re-executed" when you press and hold a button. Here's the list:

    PGUP, PGDOWN, RRPREV, RRPREV2, RRNEXT, AUDIOPREV, AUDIONEXT, SLIDER, FREQ+, FREQ-, TUNEUP, TUNEDOWN, FINEUP, FINEDOWN, BROWSE, ZOOM+, ZOOM-, WEBDOWN, WEBUP, SELECT+, CTRLRIGHT, CTRLLEFT, CTRLUP, CTRLDOWN, FFWD, FRWD also anything starting with VOL

    One suggestion would be for you to make the button start the motion when pressed and stop the motion when you press it again. This can be done with SETVAR and a timer event.

    Another possibility is for you to use one of the repeat codes (from the list above) and override the command executed on that specific screen using exectbl.ini. Since you only need 8 commands, this should be simple enough (plus you may be able to use as many VOL commands as needed). For instance:

    B05,626,192,63,73,"VOLPD",""
    B05,244,190,63,73,"VOLDD",""
    B05,624,116,63,73,"VOLPU",""
    B05,245,116,63,73,"VOLDU",""
    B05,311,160,89,60,"VOLDI",""
    B05,151,161,89,60,"VOLDO",""
    B,538,158,84,63,"VOLPI",""
    B,697,158,84,63,"VOLPO",""

    Then in ExecTBL.INI (Be sure to replace myscreen.skin with the name of the .skin file):

    "VOLPD","fusion_vote_Passdown",myscreen.skin
    "VOLDD","fusion_vote_Drivdown",myscreen.skin
    "VOLPU","fusion_vote_Passup",myscreen.skin
    "VOLDU","fusion_vote_Drivup",myscreen.skin
    "VOLDI","fusion_vote_Drivin",myscreen.skin
    "VOLDO","fusion_vote_Drivout",myscreen.skin
    "VOLPI","fusion_vote_Passin",myscreen.skin
    "VOLPO","fusion_vote_Passout",myscreen.skin

    Let me know how that goes..
    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


    • #3
      Thanks again Guino. I used the last method.

      Mirror.skin
      Code:
      B05,152,161,89,60,"VOLDO",""
      ExecTBL.ini
      Code:
      /ACCLR8N's repeat on hold buttons
      
      "VOLDO","fusion_vote_Drivout",Mirror.skin
      "VOLDI","fusion_vote_Drivin",Mirror.skin
      "VOLDU","fusion_vote_Drivup",Mirror.skin
      "VOLDD","fusion_vote_Drivdown",Mirror.skin
      "VOLPO","fusion_vote_Passout",Mirror.skin
      "VOLPI","fusion_vote_Passin",Mirror.skin
      "VOLPU","fusion_vote_Passup",Mirror.skin
      "VOLPD","fusion_vote_Passdown",Mirror.skin

      Comment


      • #4
        I assume you used it AND it worked ? While this is a nice workaround, I should probably make some "documented" way to do 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


        • #5
          Yes, works fine. What don't you like besides controlling the "volume" of my mirror positions? I don't expect this code to be used very often.

          The plus and minus buttons on the Carwings mixer skin don't work for the "CD". Do I use this to correct that as well?

          Comment


          • #6
            Originally posted by ACCLR8N View Post
            The plus and minus buttons on the Carwings mixer skin don't work for the "CD". Do I use this to correct that as well?
            On the Car Wings skin the code "VOL+;CD Audio" is used, if your "CD" line is not called "CD Audio" then you may have to rename that to whatever it is. You can check the name of your CD line in the Windows Mixer or in Debug.txt.
            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


            • #7
              Now that's thinking outside the box for sure...
              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


              • #8
                i need to do something similar..
                i need to send a command to RR to start raising the volume and stop raising it when another command is sent..
                any ideas how to do that with setvar ??

                Comment


                • #9
                  Originally posted by Nomader View Post
                  i need to do something similar..
                  i need to send a command to RR to start raising the volume and stop raising it when another command is sent..
                  any ideas how to do that with setvar ??
                  Yes, I have created loops in rrcode before using the exectbl. I can post a sample code latter when I get home.
                  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
                    thanx blue i would appreciate that..
                    i just need to simulate that constant press of the vol+ and vol- buttons

                    Comment


                    • #11
                      why not use the "startvol+", "startvol-", "stopvol" commands ?
                      [master volume only]
                      Last edited by mitchjs; 02-25-2011, 11:07 PM.
                      -Thanks
                      Mitch
                      www.rush2112.net

                      "Did you test it in carwings??"

                      Sun, Come shine my way
                      May healing waters bury all my pain
                      Wind, Carry me home
                      The fabric of reality is tearing apart
                      The piece of me that died
                      Will return To live again

                      Comment


                      • #12
                        Originally posted by mitchjs View Post
                        why not use the "startvol+", "startvol-", "stopvol" commands ?
                        [master volume only]
                        i never heard of those ..
                        how do u use them?

                        "startvol+;master" ?
                        did u just add those commands cause they are not documented anywhere
                        i will check as soon as i go home

                        EDIT: Ok they work like a charm..this is perfect.. thanks Mitch
                        Last edited by Nomader; 02-26-2011, 12:47 PM.

                        Comment


                        • #13
                          see, just says i pay attention to you
                          -Thanks
                          Mitch
                          www.rush2112.net

                          "Did you test it in carwings??"

                          Sun, Come shine my way
                          May healing waters bury all my pain
                          Wind, Carry me home
                          The fabric of reality is tearing apart
                          The piece of me that died
                          Will return To live again

                          Comment


                          • #14
                            Must have been Extreamly NEW, like times Mitch says "I didn't change anything"...mean while, a bit latter, in comes a RR svn update from the a fore mentioned RR dev team member, refixing said problem of which he "didn't" change... heheh
                            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


                            • #15
                              Guess that's a good thing that Mitch was listening bc my solution was only good for x times of looping as it wouldn't allow ANY cmds till it was done with the loop
                              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