-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSpacePlus.ahk
109 lines (93 loc) · 2.12 KB
/
SpacePlus.ahk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
#SingleInstance, Force
#InstallKeybdHook
#MaxHotkeysPerInterval 2000
;======================================================
~lbutton & enter:: ;鼠标放在任务栏,滚动滚轮实现音量的加减
exitapp
~WheelUp::
if (existclass("ahk_class Shell_TrayWnd")=1)
Send,{Volume_Up}
Return
~WheelDown::
if (existclass("ahk_class Shell_TrayWnd")=1)
Send,{Volume_Down}
Return
;~MButton::
;if (existclass("ahk_class Shell_TrayWnd")=1)
;Send,{Volume_Mute}
;Return
Existclass(class)
{
MouseGetPos,,,win
WinGet,winid,id,%class%
if win = %winid%
Return,1
Else
Return,0
}
;===================================================
;===================================================
;CapsLockFn
#inputlevel,2
$CapsLock::
SetMouseDelay -1
Send {Blind}{F24 DownR}
KeyWait, CapsLock
Send {Blind}{F24 up}
return
#inputlevel,1
F24 & i::Up
F24 & k::Down
F24 & j::Left
F24 & l::Right
F24 & w::Up
F24 & s::Down
F24 & a::Left
F24 & d::Right
F24 & q:: BackSpace
F24 & e:: Enter
F24 & u:: BackSpace
F24 & o:: Enter
F24 & n::PgUp
F24 & m::PgDn
return
;===================================================
;SpaceFn
#inputlevel,2
$Space::
SetMouseDelay -1
Send {Blind}{F23 DownR}
KeyWait, Space
Send {Blind}{F23 up}
; MsgBox, %A_ThisHotkey%-%A_TimeSinceThisHotkey%
if(A_ThisHotkey="$Space" and A_TimeSinceThisHotkey<300)
Send {Blind}{Space DownR}
return
#inputlevel,1
F23 & SC002:: Send +{SC002}
F23 & SC003:: Send +{SC003}
F23 & SC004:: Send +{SC004}
F23 & SC005:: Send +{SC005}
F23 & SC006:: Send +{SC006}
F23 & SC007:: Send +{SC007}
F23 & SC008:: Send +{SC008}
F23 & SC009:: Send +{SC009}
F23 & SC00A:: Send +{SC00A}
F23 & SC00B:: Send +{SC00B}
F23 & SC00C:: Send +{SC00C}
F23 & SC00D:: Send +{SC00D}
F23 & SC01A:: Send +{SC01A}
F23 & SC01B:: Send +{SC01B}
F23 & SC027:: Send +{SC027}
F23 & SC028:: Send +{SC028}
F23 & SC033:: Send +{SC033}
F23 & SC034:: Send +{SC034}
F23 & SC035:: Send +{SC035}
F23 & SC029:: Send +{SC029}
F23 & Enter::Send ^Enter
F23 & e:: Send {Click}
F23 & r:: Send {Click, Right}
F23 & d:: Send {Delete}
F23 & w:: Send {Delete}
F23 & s:: Send {Delete}
return