Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to remap a software shortcut, namely ShiftSpaceLbutton to AltRbutton.

I tried this:

+SpaceLbutton::!Rbutton

I want to do a hold down and release.

share|improve this question
add comment

1 Answer 1

"Alt & RButton" behave like the "Shift & Space & Lbutton" combination of keys:

!RButton::
   Send, % "{ShiftDown}{Space Down}{LButton Down}{ShiftUp}"
   KeyWait, RButton
   Send, % "{Space Up}{LButton Up}"
   Return

And vice versa:

$+Space::
   KeyWait, LButton, % "DT.175" ; adjust waiting time here
   Send, % (b:=ErrorLevel) ? "{Space Down}":"{AltDown}{RButton Down}{AltUp}"
   KeyWait, Space
   Send, % b ? "{Space Up}":"{RButton Up}"
   Return
share|improve this answer
    
Thanks for your reply.i don't know why it's not working. –  loumizhu Jul 24 '13 at 2:30
    
i removed the Lbutton and it's good to work with: +Space::!Rbutton . thanks again for help, i don't know what the % sign do in the send command.but will look for it :) –  loumizhu Jul 24 '13 at 2:42
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.