Announcement

Collapse
No announcement yet.

setting multiple keyboard strokes in one button

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

  • setting multiple keyboard strokes in one button

    I've searched for the past hour on here and no luck-
    How can i set a button to execute CONTROL SHIFT and F2 all at the same time?

  • #2
    "sendkey;^+{f2}"

    Comment


    • #3
      For some reason this doesn't work for me. I am trying to send the same combination of keys for a button. I've tried every possible combination with no luck.

      I have two buttons on my skin...one that I want ctrl+space to work for and one that I want ctrl+shift+f2 to work for. Just to test I set the first button to work for just s and it works fine with "SENDKEY;s". But I can't get the combinations to work for either button.

      For ctrl+space, I have tried:

      ^{ }
      ^{SPACE}
      ^
      ^" "

      For ctrl+shift+F2, I have tried:

      ^+{f2}
      ^+{F2}
      ^(+{F2})
      ^(+({F2}))

      etc, etc, etc.

      If I press ctrl+shift+f2 on my keyboard it works fine, but I can't find the syntax that RideRunner wants for the button to send that combination. Also, I have tried it with ACTIVATE as well, but it's not needed in this case, since the SENDKEY;s worked just fine.


      Thanks

      Comment


      • #4
        I would still like to know about the above question, but I solved this just by making a script in AutoIT and compiling it to an .exe and using the RUN command for the button to call the compiled .exe.

        Comment


        • #5
          BTW I also have problems sending {SPACE} with the SENDKEY command. Simple letters work fine.

          Comment


          • #6
            are you activating the window before using sendkey ?
            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
              Yep, it didn't work with ACTIVATE, either. But, just to test it out, I did a simple sendkey for the character 's' and it worked fine, even without activate.

              I have it solved with my AutoIT exe, but I would like to know what the correct syntax is so RideRunner will recognize it. Simple one letter commands work fine. But when I try multiple combinations, like for ctrl+shift+f2, it just doesn't work.

              Comment


              • #8
                Variables in skin.ini:
                Code:
                vid_playpause={SPACE}
                vid_stop=s
                vid_prev=p
                vid_next=n
                vid_frwd=^{LEFT}
                vid_ffwd=^{RIGHT}
                vid_dvdmenu=+m
                vid_aspect=a
                Commands in ExecTBL.ini:
                Code:
                "VIDEO_EXT_PREV","ACTIVATE;$vid_name$||WAIT;0.1||SENDKEY;$vid_prev$||WAIT;0.1||GETFOCUS"
                "VIDEO_EXT_FRWD","ACTIVATE;$vid_name$||WAIT;0.1||SENDKEY;$vid_frwd$||WAIT;0.1||GETFOCUS"
                "VIDEO_EXT_PLAYPAUSE","ACTIVATE;$vid_name$||WAIT;0.1||SENDKEY;$vid_playpause$||WAIT;0.1||GETFOCUS"
                "VIDEO_EXT_STOP","ACTIVATE;$vid_name$||WAIT;0.1||SENDKEY;$vid_stop$||WAIT;0.1||GETFOCUS"
                "VIDEO_EXT_FFWD","ACTIVATE;$vid_name$||WAIT;0.1||SENDKEY;$vid_ffwd$||WAIT;0.1||GETFOCUS"
                "VIDEO_EXT_NEXT","ACTIVATE;$vid_name$||WAIT;0.1||SENDKEY;$vid_next$||WAIT;0.1||GETFOCUS"
                As you can see the commands just vary in the variable they send to the external app.
                "{SPACE}" f.ex. doesn't work though, whereas "a" does. Can't test any further atm, but can it be that RR has problems with the sendkeys written in {} ?

                Comment


                • #9
                  I don't really know if sendkey can send special key combnations (i.e. SHIFT+ALT+? or CTRL+ALT+? or SHIFT+CTRL+?), that's not covered in the definitions: http://msdn.microsoft.com/en-us/libr...83(VS.85).aspx
                  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


                  • #10
                    AFAIK it does. Saw VB examples with that, if I remember right.

                    Comment


                    • #11
                      I was having issues sending for eg a "ctrl shift f" i think it was...using a keyboard it works.

                      the ctrl f worked fine...

                      i think my work around was to use the pull down menus commands
                      so a %Rf worked.

                      ahh magic brackets
                      this works now. so yes you can

                      Code:
                      "ESC||ACTIVATE;nRoute||SENDKEY;(^+f)" find near

                      Comment

                      Working...
                      X