autohotkey
原文链接: autohotkey
AutoHotkey 中文手册
如何学习 AutoHotkey?
尋找Linux的AutoHotkey:Autokey差強人意
ahk 存储数据的各种方法
[](https://github.com/usi3/emacs.ahk)
常用按键映射
; Notes: #==win ^==Ctr !==Alt +==shift
;===============================================================================
;用来修改win10默认的窗口快捷键,使左手可以单手操作
;用win + ctrl + a和s代替win + ctrl + ←和→(桌面切换)
;用win + ctrl + x代替win + ctrl + F4*(关闭当前虚拟桌面)*
;用win + q代替alt + F4(关闭当前窗口)
;===============================================================================
^#a::
send, {lwin down}{ctrl down}{left}
sleep 50
send, {lwin up}{ctrl up}
return
;按下ctrl + win + a等于按下ctrl + win + 左方向键
^#s::
send, {lwin down}{ctrl down}{right}
sleep 50
send, {lwin up}{ctrl up}
return
;按下ctrl + win + s等于按下ctrl + win + 右方向键
^#x::
send, {lwin down}{ctrl down}{f4}
sleep 50
send, {lwin up}{ctrl up}
return
;按下ctrl + win + x等于按下ctrl + win + F4
#q::
send, {alt down}{f4}
sleep 50
send, {alt up}
return
;按下win + q等于按下alt + F4
#w::
send, {lwin down}{up}
sleep 50
send, {lwin up}
return
;按下win + w ,将窗口最大化,接下来的按键都是窗口缩放操作
#a::
send, {lwin down}{left}
sleep 50
send, {lwin up}
return
;按下win + a ,将窗口向左移动
#s::
send, {lwin down}{right}
sleep 50
send, {lwin up}
return
;按下win + s ,将窗口向右移动
#z::
send, {lwin down}{down}
sleep 50
send, {lwin up}
return
;按下win + z ,将窗口变小