Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
g_LastCtrlKeyDownTime := 0
g_AbortSendBackSpace := false
g_ControlRepeatDetected := false
*CapsLock::
if (g_ControlRepeatDetected)
{
return
}
send,{Ctrl down}
g_LastCtrlKeyDownTime := A_TickCount
g_AbortSendBackSpace := false
g_ControlRepeatDetected := true
return
*CapsLock Up::
send,{Ctrl up}
g_ControlRepeatDetected := false
if (g_AbortSendBackSpace)
{
return
}
current_time := A_TickCount
time_elapsed := current_time - g_LastCtrlKeyDownTime
if (time_elapsed <= 250)
{
SendInput {BackSpace}
}
return
~*^a::
g_AbortSendBackSpace := true
return
~*^b::
g_AbortSendBackSpace := true
return
~*^c::
g_AbortSendBackSpace := true
return
~*^d::
g_AbortSendBackSpace := true
return
~*^e::
g_AbortSendBackSpace := true
return
~*^f::
g_AbortSendBackSpace := true
return
~*^g::
g_AbortSendBackSpace := true
return
~*^h::
g_AbortSendBackSpace := true
return
~*^i::
g_AbortSendBackSpace := true
return
~*^j::
g_AbortSendBackSpace := true
return
~*^k::
g_AbortSendBackSpace := true
return
~*^l::
g_AbortSendBackSpace := true
return
~*^m::
g_AbortSendBackSpace := true
return
~*^n::
g_AbortSendBackSpace := true
return
~*^o::
g_AbortSendBackSpace := true
return
~*^p::
g_AbortSendBackSpace := true
return
~*^q::
g_AbortSendBackSpace := true
return
~*^r::
g_AbortSendBackSpace := true
return
~*^s::
g_AbortSendBackSpace := true
return
~*^t::
g_AbortSendBackSpace := true
return
~*^u::
g_AbortSendBackSpace := true
return
~*^v::
g_AbortSendBackSpace := true
return
~*^w::
g_AbortSendBackSpace := true
return
~*^x::
g_AbortSendBackSpace := true
return
~*^y::
g_AbortSendBackSpace := true
return
~*^z::
g_AbortSendBackSpace := true
return
~*^1::
g_AbortSendBackSpace := true
return
~*^2::
g_AbortSendBackSpace := true
return
~*^3::
g_AbortSendBackSpace := true
return
~*^4::
g_AbortSendBackSpace := true
return
~*^5::
g_AbortSendBackSpace := true
return
~*^6::
g_AbortSendBackSpace := true
return
~*^7::
g_AbortSendBackSpace := true
return
~*^8::
g_AbortSendBackSpace := true
return
~*^9::
g_AbortSendBackSpace := true
return
~*^0::
g_AbortSendBackSpace := true
return
~*^Space::
g_AbortSendBackSpace := true
return
~*^Backspace::
g_AbortSendBackSpace := true
return
~*^Delete::
g_AbortSendBackSpace := true
return
~*^Insert::
g_AbortSendBackSpace := true
return
~*^Home::
g_AbortSendBackSpace := true
return
~*^End::
g_AbortSendBackSpace := true
return
~*^PgUp::
g_AbortSendBackSpace := true
return
~*^PgDn::
g_AbortSendBackSpace := true
return
~*^Tab::
g_AbortSendBackSpace := true
return
~*^Return::
g_AbortSendBackSpace := true
return
~*^,::
g_AbortSendBackSpace := true
return
~*^.::
g_AbortSendBackSpace := true
return
~*^/::
g_AbortSendBackSpace := true
return
~*^;::
g_AbortSendBackSpace := true
return
~*^'::
g_AbortSendBackSpace := true
return
~*^[::
g_AbortSendBackSpace := true
return
~*^]::
g_AbortSendBackSpace := true
return
~*^\::
g_AbortSendBackSpace := true
return
~*^-::
g_AbortSendBackSpace := true
return
~*^=::
g_AbortSendBackSpace := true
return
~*^`::
g_AbortSendBackSpace := true
return
~*^F1::
g_AbortSendBackSpace := true
return
~*^F2::
g_AbortSendBackSpace := true
return
~*^F3::
g_AbortSendBackSpace := true
return
~*^F4::
g_AbortSendBackSpace := true
return
~*^F5::
g_AbortSendBackSpace := true
return
~*^F6::
g_AbortSendBackSpace := true
return
~*^F7::
g_AbortSendBackSpace := true
return
~*^F8::
g_AbortSendBackSpace := true
return
~*^F9::
g_AbortSendBackSpace := true
return
~*^F10::
g_AbortSendBackSpace := true
return
~*^F11::
g_AbortSendBackSpace := true
return
~*^F12::
g_AbortSendBackSpace := true
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment