; DoubleTapC begin.
#IfWinActive Modeler
; Keypress detection for DoubleTapC.
c::
if counter >= 0 ; setTimer already started, so we log the keypress instead
{
counter++
return
}
counter = 0 ; Start setTimer and set the number of logged keypresses to 0
setTimer, DoubleTapC, 750
return
DoubleTapC:
setTimer, DoubleTapC, off
if counter = 0 ; The key is pressed once
{
Send, c
}
if counter = 1 ; The key is pressed twice
{
Send, +^g
}
if counter = 2 ; The key is pressed twice
{
Send, +^h
}
counter = -1
return
; DoubleTapC ends.
; ChangeKeyD begin.
; Keypress detection for ChangeKeyD.
d::
if counter >= 0 ; setTimer already started, so we log the keypress instead
{
counter++
return
}
counter = 0 ; Start setTimer and set the number of logged keypresses to 0
setTimer, ChangeKeyD, 600
return
ChangeKeyD:
setTimer, ChangeKeyD, off
if counter = 0 ; The key is pressed once
{
Send, d
}
if counter = 1 ; The key is pressed twice
{
Send, l
}
if counter = 2 ; The key is pressed twice
{
Send, +^t
}
counter = -1
return
; ChangeKeyD ends.
; DoubleTapT begin.
; Keypress detection for DoubleTapT.
t::
if counter >= 0 ; setTimer already started, so we log the keypress instead
{
counter++
return
}
counter = 0 ; Start setTimer and set the number of logged keypresses to 0
setTimer, DoubleTapT, 600
return
DoubleTapT:
setTimer, DoubleTapT, off
if counter = 0 ; The key is pressed once
{
Send, t
}
if counter = 1 ; The key is pressed twice
{
Send, +^i
}
if counter = 2 ; The key is pressed twice
{
Send, +^j
}
counter = -1
return
; DoubleTapT ends.
; DoubleTapQ begin.
; Keypress detection for DoubleTapQ.
q::
if counter >= 0 ; setTimer already started, so we log the keypress instead
{
counter++
return
}
counter = 0 ; Start setTimer and set the number of logged keypresses to 0
setTimer, DoubleTapQ, 750
return
DoubleTapQ:
setTimer, DoubleTapQ, off
if counter = 0 ; The key is pressed once
{
Send, q
}
if counter = 1 ; The key is pressed twice
{
Send, +^k
}
if counter = 2 ; The key is pressed twice
{
Send, +^l
}
counter = -1
return
; DoubleTapQ ends.
; DoubleTapV begin.
; Keypress detection for DoubleTapV.
v::
if counter >= 0 ; setTimer already started, so we log the keypress instead
{
counter++
return
}
counter = 0 ; Start setTimer and set the number of logged keypresses to 0
setTimer, DoubleTapV, 750
return
DoubleTapV:
setTimer, DoubleTapV, off
if counter = 0 ; The key is pressed once
{
Send, v
}
if counter = 1 ; The key is pressed twice
{
Send, +^e
}
if counter = 2 ; The key is pressed twice
{
Send, +^f
}
counter = -1
return
; DoubleTapV ends.
; ChangeKeyB begin.
; Keypress detection for ChangeKeyB.
b::
if counter >= 0 ; setTimer already started, so we log the keypress instead
{
counter++
return
}
counter = 0 ; Start setTimer and set the number of logged keypresses to 0
setTimer, ChangeKeyB, 750
return
ChangeKeyB:
setTimer, ChangeKeyB, off
if counter = 0 ; The key is pressed once
{
Send, b
}
if counter = 1 ; The key is pressed twice
{
Send, +^q
}
if counter = 2 ; The key is pressed twice
{
Send, +^r
}
counter = -1
return
; ChangeKeyB ends.
; ChangeKey1 begin.
; Keypress detection for ChangeKey1.
1::Send, +^l
; ChangeKey1 ends.
; ChangeKey2 begin.
; Keypress detection for ChangeKey2.
2::
if counter >= 0 ; setTimer already started, so we log the keypress instead
{
counter++
return
}
counter = 0 ; Start setTimer and set the number of logged keypresses to 0
setTimer, ChangeKey2, 750
return
ChangeKey2:
setTimer, ChangeKey2, off
if counter = 0 ; The key is pressed once
{
Send, +^b
}
if counter = 1 ; The key is pressed twice
{
Send, +^c
}
if counter = 2 ; The key is pressed twice
{
Send, +^d
}
counter = -1
return
; ChangeKey2 ends.
; ChangeKey3 begin.
; Keypress detection for ChangeKey2.
3::
if counter >= 0 ; setTimer already started, so we log the keypress instead
{
counter++
return
}
counter = 0 ; Start setTimer and set the number of logged keypresses to 0
setTimer, ChangeKey3, 750
return
ChangeKey3:
setTimer, ChangeKey3, off
if counter = 0 ; The key is pressed once
{
Send, +^m
}
if counter = 1 ; The key is pressed twice
{
Send, +^n
}
if counter = 2 ; The key is pressed twice
{
Send, +^p
}
counter = -1
return
; ChangeKey3 ends.
; ChangeKey4 begin.
; Keypress detection for ChangeKey2.
4::
if counter >= 0 ; setTimer already started, so we log the keypress instead
{
counter++
return
}
counter = 0 ; Start setTimer and set the number of logged keypresses to 0
setTimer, ChangeKey4, 750
return
ChangeKey4:
setTimer, ChangeKey4, off
if counter = 0 ; The key is pressed once
{
Send, +^u
}
if counter = 1 ; The key is pressed twice
{
Send, +^v
}
if counter = 2 ; The key is pressed twice
{
Send, +^x
}
counter = -1
return
; ChangeKey4 ends. 4
; MOUSE BUTTON CHANGES.
; BEGIN.
MButton:: Send, {Delete}
WheelUp:: Send, {Up}
WheelDown:: Send, {Down}
+WheelUp:: Send, +]
+WheelDown:: Send, +[
+RButton:: Send, ]
+MButton:: Send, {Right}
^WheelUp:: Send, +^o
^WheelDown:: Send, +^o
; END.