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

Thread: setting multiple keyboard strokes in one button

  1. #1
    Newbie
    Join Date
    Sep 2006
    Posts
    7

    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. #2
    MGD
    MGD is offline
    FLAC
    Auto Apps:loading...
    MGD's Avatar
    Join Date
    Feb 2005
    Location
    Los Angeles
    Posts
    1,756
    "sendkey;^+{f2}"

  3. #3
    Newbie
    Join Date
    Sep 2005
    Posts
    23
    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

  4. #4
    Newbie
    Join Date
    Sep 2005
    Posts
    23
    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.

  5. #5
    Maximum Bitrate
    Join Date
    Aug 2004
    Location
    Germany
    Posts
    520
    BTW I also have problems sending {SPACE} with the SENDKEY command. Simple letters work fine.

  6. #6
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,817
    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."

  7. #7
    Newbie
    Join Date
    Sep 2005
    Posts
    23
    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.

  8. #8
    Maximum Bitrate
    Join Date
    Aug 2004
    Location
    Germany
    Posts
    520
    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 {} ?

  9. #9
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,817
    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."

  10. #10
    Maximum Bitrate
    Join Date
    Aug 2004
    Location
    Germany
    Posts
    520
    AFAIK it does. Saw VB examples with that, if I remember right.

Page 1 of 2 12 LastLast

Similar Threads

  1. Lsx Void 3.0
    By liquid_smoke in forum RR Skins No Longer Supported
    Replies: 3171
    Last Post: 12-11-2013, 04:05 AM
  2. Steering Wheel Controls
    By god_of_cpu in forum Input Devices
    Replies: 194
    Last Post: 06-23-2009, 12:14 PM
  3. Laptop keyboard to the PS2 port....
    By claylong in forum General Hardware Discussion
    Replies: 8
    Last Post: 09-22-2007, 07:29 AM
  4. 2 part question (keyboard hacks)
    By chuckctv in forum Input Devices
    Replies: 17
    Last Post: 09-07-2004, 09:24 PM
  5. need advice (multiple subjects)
    By chuckctv in forum General Hardware Discussion
    Replies: 0
    Last Post: 09-02-2004, 10:41 PM

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
  •