LShift tapped:: - <--minus
LShift tapped-twice:: _ <--underscore
RShift tapped:: = <--equals sign
RShift tapped-twice:: + <--plus sign
Rshift+Lshift:: ( <--open parens
Lshift+Rshift:: ) <--closed parens
I've been using two scripts below, but I can't seem to modify them to play nice.
Code: Select all
*~LShift::
UserInput =
Input, UserInput, V L1
return
*LShift Up::
If UserInput =
{
Send % ""
Send -
}
return
*~RShift::
UserInput =
Input, UserInput, V L1
return
*RShift Up::
If UserInput =
{
Send % ""
Send {=}
}
return
;;;;; ;;; second script
; LShift + RShift
<+RShift:: )
; RShift + LShift
>+LShift:: (
; 2xLShift
~LShift::
If (A_PriorHotKey = "~LShift Up" AND A_TimeSincePriorHotkey < 200)
send, {BackSpace}+_
return
~LShift Up:: Send, ^c{Shift Up} ; copy
; 2xRShift
~RShift::
If (A_PriorHotKey = "~RShift Up" AND A_TimeSincePriorHotkey < 200)
send {BackSpace}+{+}
return
~RShift Up:: Send,{Shift Up}