1

I would like to make a script that press down the shift button every time i click on something and maintains it pressed until I release click. Something like:

If click then key down shift "when click released" key down shift

Thank you for your help I've been struggling with this one !

  • 3
    Which real-world problem/usage scenario are you trying to solve with this? There might be easier solutions out their than AppleScript, depending on the actual problem you are trying to solve. – nohillside Aug 11 '13 at 20:04
1

I don't know any way to do that with AppleScript, but you could add something like this to KeyRemap4MacBook's private.xml:

<autogen>__PointingButtonToKey__ PointingButton::MIDDLE, KeyCode::SHIFT_L</autogen>

See the source for the key code values and predefined settings.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .