Skip to content
Permalink
Fetching contributors…
Cannot retrieve contributors at this time
201 lines (194 sloc) 3.14 KB
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
; LAlt::RCtrl
; LWin::RAlt
; LShift::RCtrl
; LCtrl::RShift
; 类似windows的win+d
; !d::send #d
; 重写,想法参考:http://blog.csdn.net/william_lv/article/details/53320072
; ! Alt
; ^ Control
; + Shift
; # Win
LWin & 0::send,^0
LWin & 1::
SetTitleMatchMode 2
If WinActive("PuTTY") {
send,!1
}
else {
send,^1
}
return
LWin & 2::
SetTitleMatchMode 2
If WinActive("PuTTY") {
send,!2
}
else {
send,^2
}
return
LWin & 3::
SetTitleMatchMode 2
If WinActive("PuTTY") {
send,!3
}
else {
send,^3
}
return
LWin & 4::
SetTitleMatchMode 2
If WinActive("PuTTY") {
send,!4
}
else {
send,^4
}
return
LWin & 5::
SetTitleMatchMode 2
If WinActive("PuTTY") {
send,!5
}
else {
send,^5
}
return
LWin & 6::
SetTitleMatchMode 2
If WinActive("PuTTY") {
send,!6
}
else {
send,^6
}
return
LWin & 7::SetTitleMatchMode 2
If WinActive("PuTTY") {
send,!7
}
else {
send,^7
}
return
LWin & 8::
SetTitleMatchMode 2
If WinActive("PuTTY") {
send,!8
}
else {
send,^8
}
return
LWin & 9::
SetTitleMatchMode 2
If WinActive("PuTTY") {
send,!9
}
else {
send,^9
}
return
LWin & a::send,^a
LWin & b::send,^b
; 参考: https://github.com/mahengyang/code/blob/master/puffin/AutoHotkey.ahk
LWin & c::
SetTitleMatchMode 2
If WinActive("Xshell") {
send,^+c
}
else {
If WinActive("PuTTY") {
send, ^{Insert}
}
else {
send,^c
}
}
return
LWin & d::send,^d
LWin & e::send,^e
LWin & f::send,^f
LWin & g::send,^g
LWin & h::send,^h
LWin & i::send,^i
LWin & j::send,^j
LWin & k::send,^k
LWin & l::send,^l
LWin & m::send,^m
LWin & n::send,^n
LWin & o::send,^o
LWin & p::send,^p
LWin & q::send,^q
LWin & r::send,^r
LWin & s::send,^s
LWin & t::send,^t
LWin & u::send,^u
LWin & v::
SetTitleMatchMode 2
If WinActive("Xshell") {
send,^+v
}
else {
If WinActive("PuTTY") {
send, +{Insert}
}
else {
send,^v
}
}
return
LWin & w::send,^w
LWin & x::send,^x
LWin & y::send,^y
LWin & z::send,^z
LWin & /::send,^/
; https://stackoverflow.com/questions/9696516/how-to-remap-altj-as-alttab-using-autohotkey?rq=1
LWin & Tab::AltTab
LWin & Space::send, !{space}
; LWin & mouseLeftButton
LWin & LButton::send, ^{LButton}
LWin & Up::send, ^{Up}
LWin & Down::send, ^{Down}
; 禁用单独的windows建
LWin::return
LShift::RCtrl
LCtrl::RShift
LAlt & a::send,#a
LAlt & b::send,#b
LAlt & c::send,#c
LAlt & d::send,#d
LAlt & e::send,#e
LAlt & f::send,#f
LAlt & g::send,#g
LAlt & h::send,#h
LAlt & i::send,#i
LAlt & j::send,#j
LAlt & k::send,#k
LAlt & l::send,#l
LAlt & m::send,#m
LAlt & n::send,#n
LAlt & o::send,#o
LAlt & p::send,#p
LAlt & q::send,#q
LAlt & r::send,#r
LAlt & s::send,#s
LAlt & t::send,#t
LAlt & u::send,#u
LAlt & v::send,#v
LAlt & w::send,#w
LAlt & x::send,#x
LAlt & y::send,#y
LAlt & z::send,#z
; HHKB 左上角三个键修改
`::Backspace
\::`
|::~
Backspace::\
RShift & Backspace::|
RShift & Escape::~
You can’t perform that action at this time.