Code: Select all
; Change the Up key to Shift and then use Ctrl+Up for normal up
Up::RShift
; Capture the Shift+RCtrl combo to be used for selection
+RCtrl::
Send {Blind}+{Up}
; The timer is required so it doesn't block subsequent requests
SetTimer, RepeatShiftUpKey, 500
return
; This sends the Shift+Up key until RCtrl is released
RepeatShiftUpKey:
loop {
GetKeyState rc, RCtrl, P
; Exit if the key has been released
if rc = U
return
Send {Blind}+{Up}
Sleep, 10
}
return
; Replace the Right Ctrl with Up key
RCtrl::
Send {Blind}{Up}
; The timer is required so it doesn't block subsequent requests
SetTimer, RepeatUpKey, 500
return
; This sends the Up key until RCtrl is released
RepeatUpKey:
loop {
GetKeyState rc, RCtrl, P
; Exit if the key has been released
if rc = U
return
Send {Blind}{Up}
Sleep, 10
}
return