mirror of
https://github.com/nmasur/dotfiles
synced 2024-12-24 17:44:52 +00:00
autohotkey v2 for windows
This commit is contained in:
parent
196d2e53e0
commit
7a22e798fc
24
windows/autohotkey/RemapCapsCtrlEscapeV2.ahk
Normal file
24
windows/autohotkey/RemapCapsCtrlEscapeV2.ahk
Normal file
@ -0,0 +1,24 @@
|
||||
#Requires AutoHotkey v2.0
|
||||
#SingleInstance
|
||||
|
||||
ih := InputHook("B L1 T1", "{Esc}")
|
||||
|
||||
*Ctrl::
|
||||
{
|
||||
ih.Start()
|
||||
reason := ih.Wait()
|
||||
if (reason = "Stopped") {
|
||||
Send "{Esc}"
|
||||
} else if (reason = "Max") {
|
||||
Send "{Blind}{Ctrl down}" ih.Input
|
||||
}
|
||||
}
|
||||
|
||||
*Ctrl up::
|
||||
{
|
||||
if (ih.InProgress) {
|
||||
ih.Stop()
|
||||
} else {
|
||||
Send "{Ctrl up}"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user