]> Tony Duckles's Git Repositories (git.nynim.org) - autohotkey-scripts.git/blob - Winamp.ahk
Init AutoHotKey
[autohotkey-scripts.git] / Winamp.ahk
1 ;##############
2 ;### WINAMP ###
3 ; http://www.autohotkey.com/docs/misc/Winamp.htm
4 ; http://www.autohotkey.com/forum/topic155.html
5 ; http://www.autohotkey.com/forum/topic126.html
6 ; Ctrl+Alt+Z/X/C/V/B/Up/Down/Left/Right = Control Winamp
7 ^!z::
8 IfWinNotExist ahk_class Winamp v1.x
9 return
10 ; Otherwise, the above has set the "last found" window for use below.
11 ;ControlSend, ahk_parent, z ; Previous Track
12 PostMessage, 0x111, 40044, , ,ahk_class Winamp v1.x ; Previous Track
13 return
14
15 ^!x::
16 IfWinNotExist ahk_class Winamp v1.x
17 return
18 ; Otherwise, the above has set the "last found" window for use below.
19 ;ControlSend, ahk_parent, x ; Play/Restart/UnPause
20 PostMessage, 0x111, 40045, , ,ahk_class Winamp v1.x ; Play/Restart/UnPause
21 return
22
23 ^!c::
24 IfWinNotExist ahk_class Winamp v1.x
25 return
26 ; Otherwise, the above has set the "last found" window for use below.
27 ;ControlSend, ahk_parent, c ; Pause/UnPause
28 PostMessage, 0x111, 40046, , ,ahk_class Winamp v1.x ; Pause/UnPause
29 return
30
31 ^!v::
32 IfWinNotExist ahk_class Winamp v1.x
33 return
34 ; Otherwise, the above has set the "last found" window for use below.
35 ;ControlSend, ahk_parent, v ; Stop
36 PostMessage, 0x111, 40047, , ,ahk_class Winamp v1.x ; Stop
37 return
38
39 ^!b::
40 IfWinNotExist ahk_class Winamp v1.x
41 return
42 ; Otherwise, the above has set the "last found" window for use below.
43 ;ControlSend, ahk_parent, b ; Next Track
44 PostMessage, 0x111, 40048, , ,ahk_class Winamp v1.x ; Next Track
45 return
46
47 ;^!Up::
48 ;IfWinNotExist ahk_class Winamp v1.x
49 ; return
50 ;; Otherwise, the above has set the "last found" window for use below.
51 ;;ControlSend, ahk_parent, b ; Next Track
52 ;PostMessage, 0x111, 40058 , , ,ahk_class Winamp v1.x ; Raise Volume
53 ;PostMessage, 0x111, 40058 , , ,ahk_class Winamp v1.x ; Raise Volume
54 ;PostMessage, 0x111, 40058 , , ,ahk_class Winamp v1.x ; Raise Volume
55 ;PostMessage, 0x111, 40058 , , ,ahk_class Winamp v1.x ; Raise Volume
56 ;PostMessage, 0x111, 40058 , , ,ahk_class Winamp v1.x ; Raise Volume
57 ;return
58
59 ;^!Down::
60 ;IfWinNotExist ahk_class Winamp v1.x
61 ; return
62 ;; Otherwise, the above has set the "last found" window for use below.
63 ;;ControlSend, ahk_parent, b ; Next Track
64 ;PostMessage, 0x111, 40059 , , ,ahk_class Winamp v1.x ; Lower Volume
65 ;PostMessage, 0x111, 40059 , , ,ahk_class Winamp v1.x ; Lower Volume
66 ;PostMessage, 0x111, 40059 , , ,ahk_class Winamp v1.x ; Lower Volume
67 ;PostMessage, 0x111, 40059 , , ,ahk_class Winamp v1.x ; Lower Volume
68 ;PostMessage, 0x111, 40059 , , ,ahk_class Winamp v1.x ; Lower Volume
69 ;return
70
71 ^!Left::
72 IfWinNotExist ahk_class Winamp v1.x
73 return
74 ; Otherwise, the above has set the "last found" window for use below.
75 ;ControlSend, ahk_parent, z ; Previous Track
76 PostMessage, 0x111, 40044, , ,ahk_class Winamp v1.x ; Previous Track
77 return
78
79 ^!Right::
80 IfWinNotExist ahk_class Winamp v1.x
81 return
82 ; Otherwise, the above has set the "last found" window for use below.
83 ;ControlSend, ahk_parent, b ; Next Track
84 PostMessage, 0x111, 40048, , ,ahk_class Winamp v1.x ; Next Track
85 return