-
Notifications
You must be signed in to change notification settings - Fork 2
/
AutoHotkey.ahk
53 lines (41 loc) · 1.03 KB
/
AutoHotkey.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
#IfWinActive ahk_exe vlc.exe
h::send, {left} ; Makes the 'h' key send a left-arrow key, but only in VLC.
j::send, {down}
k::send, {up}
l::send, {right}
^u::send, {Volume_Up} ; Makes the Ctrl-u key send volume-up key, but only in VLC.
^d::send, {Volume_Down}
u::send, {Volume_Up} ; Makes the u key send volume-up key, but only in VLC.
d::send, {Volume_Down}
#IfWinActive
$Volume_Mute::playpause()
playpause()
{
Process,Exist, vlc.exe
If ( ErrorLevel != 0 )
{
; SoundBeep
ControlSend , , {space}, ahk_exe vlc.exe
Return
}
Send {Volume_Mute}
SetTitleMatchMode, 2
If (WinExist("Netflix - Google Chrome"))
{
; TODO: this is still not working!!!@#$!!
; Chrome_RenderWidgetHostHWND1
; WinActivate "Netflix - Google Chrome"
; Send {space}
;CoordMode, ToolTip, Screen
ControlSend , , {space}, "Netflix - Google Chrome"
;click, -800, 500, 2
}
}
#IfWinActive ahk_exe chrome.exe
; !d::SoundBeep
; ^l::SoundBeep
!j::send, {down}
!k::send, {up}
#IfWinActive
!j::send, {down}
!k::send, {up}