AutoHotkey

. ; ; ; , ; .
www.autohotkey.com

“ ”, , .

AVerTV Studio 305 Remote

- AVerTV Studio 305, “” .
zip-.
: 238.90
: 2010-06-13
: 1752 ()
:
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
/*
- AVerTV Studio 305
Big Digger

• Windows XP/Vista/7
• AutoHotkey v1.0.48.03 http://www.autohotkey.com/download/

*/

#NoEnv
#SingleInstance, Force
DetectHiddenWindows, On
SetTitleMatchMode, RegEx

Gui, 1:+LastFound
Gui1Hwnd := WinExist()
Gui, 1:+AlwaysOnTop -Caption -Border
Gui, 1:Margin, 0, 0
Gui, 1:Color, A0A0A0
Gui, 1:Add, Picture, Section x0 y0 w190 h628, %A_ScriptDir%\AVerTVStudio305Remote.bmp
Gui, 1:Add, Text, gDragTop xs ys w190 h92 BackgroundTrans
Gui, 1:Add, Text, gRemoteTVFM xs+22 ys+109 w24 h14 BackgroundTrans
Gui, 1:Add, Text, gRemoteCD xs+63 ys+109 w24 h14 BackgroundTrans
Gui, 1:Add, Text, gRemoteTeletext xs+104 ys+109 w24 h14 BackgroundTrans
Gui, 1:Add, Text, gRemotePower xs+145 ys+104 w24 h24 BackgroundTrans
Gui, 1:Add, Text, gRemote1 xs+23 ys+139 w22 h22 BackgroundTrans
Gui, 1:Add, Text, gRemote2 xs+64 ys+139 w22 h22 BackgroundTrans
Gui, 1:Add, Text, gRemote3 xs+105 ys+139 w22 h22 BackgroundTrans
Gui, 1:Add, Text, gRemoteVideo xs+145 ys+144 w24 h14 BackgroundTrans
Gui, 1:Add, Text, gRemote4 xs+23 ys+174 w22 h22 BackgroundTrans
Gui, 1:Add, Text, gRemote5 xs+64 ys+174 w22 h22 BackgroundTrans
Gui, 1:Add, Text, gRemote6 xs+105 ys+174 w22 h22 BackgroundTrans
Gui, 1:Add, Text, gRemoteAudio xs+145 ys+178 w24 h14 BackgroundTrans
Gui, 1:Add, Text, gRemote7 xs+23 ys+208 w22 h22 BackgroundTrans
Gui, 1:Add, Text, gRemote8 xs+64 ys+208 w22 h22 BackgroundTrans
Gui, 1:Add, Text, gRemote9 xs+105 ys+208 w22 h22 BackgroundTrans
Gui, 1:Add, Text, gRemoteFullScreen xs+145 ys+213 w24 h14 BackgroundTrans
Gui, 1:Add, Text, gRemote0 xs+23 ys+242 w22 h22 BackgroundTrans
Gui, 1:Add, Text, gRemoteDisplay xs+63 ys+246 w24 h14 BackgroundTrans
Gui, 1:Add, Text, gRemoteLoop xs+104 ys+246 w24 h14 BackgroundTrans
Gui, 1:Add, Text, gRemotePreview xs+145 ys+246 w24 h14 BackgroundTrans
Gui, 1:Add, Text, gRemoteAutoscan xs+22 ys+281 w24 h14 BackgroundTrans
Gui, 1:Add, Text, gRemoteFreeze xs+63 ys+281 w24 h14 BackgroundTrans
Gui, 1:Add, Text, gRemoteCapture xs+104 ys+281 w24 h14 BackgroundTrans
Gui, 1:Add, Text, gRemoteMute xs+145 ys+281 w24 h14 BackgroundTrans
Gui, 1:Add, Text, gRemoteRecord xs+22 ys+315 w24 h14 BackgroundTrans
Gui, 1:Add, Text, gRemotePause xs+63 ys+315 w24 h14 BackgroundTrans
Gui, 1:Add, Text, gRemoteStop xs+104 ys+315 w24 h14 BackgroundTrans
Gui, 1:Add, Text, gRemotePlay xs+145 ys+315 w24 h14 BackgroundTrans
Gui, 1:Add, Text, gRemoteRed xs+21 ys+347 w26 h19 BackgroundTrans
Gui, 1:Add, Text, gRemoteVolumeSub xs+63 ys+347 w31 h19 BackgroundTrans
Gui, 1:Add, Text, gRemoteVolumeAdd xs+95 ys+347 w31 h19 BackgroundTrans
Gui, 1:Add, Text, gRemoteYellow xs+143 ys+347 w26 h19 BackgroundTrans
Gui, 1:Add, Text, gRemoteGreen xs+21 ys+381 w26 h19 BackgroundTrans
Gui, 1:Add, Text, gRemoteChannelPrev xs+63 ys+381 w31 h19 BackgroundTrans
Gui, 1:Add, Text, gRemoteChannelNext xs+95 ys+381 w31 h19 BackgroundTrans
Gui, 1:Add, Text, gRemoteBlue xs+143 ys+381 w26 h19 BackgroundTrans
Gui, 1:Add, Text, gDragBottom xs ys+406 w190 h222 BackgroundTrans
Gui, 1:Show, , AVerTV Studio 305 Remote
WinSet, TransColor, A0A0A0, ahk_id %Gui1Hwnd%
WinSet, AlwaysOnTop, On, ahk_id %Gui1Hwnd%

Menu, Tray, Tip, AVerTV Studio 305 Remote

Return


GuiClose:
GuiEscape:
ExitApp

DragTop:
DragBottom:
PostMessage, 0xA1, 2, , , A
Return

RemoteTVFM:
IfWinExist, ahk_class AVerTVApp
PostMessage, 0x497, 3010, , , ahk_class AVerTVApp ; AVerTV v5.5.0: /FM
Else IfWinExist, ahk_class AVerTV_main
PostMessage, 0x4CA, 55, , , ahk_class AVerTV_main ; AVerTV v6.3.0: (/S-Video/FM/)
Return

RemoteCD:
MsgBox, 0, AVerTV Studio 305 Remote,
Return

RemoteTeletext:
IfWinExist, $ ahk_class Afx:400000:0
PostMessage, 0x111, 57665, , , $ ahk_class Afx:400000:0 ; AVerTV v5.5.0: ()
Else IfWinExist, ahk_class AVerTVApp
PostMessage, 0x497, 3009, , , ahk_class AVerTVApp ; AVerTV v5.5.0:
Else IfWinExist, ahk_class AVerTV_main
PostMessage, 0x4CA, 44, , , ahk_class AVerTV_main ; AVerTV v6.3.0:
Return

RemotePower:
Process, Exist, AVerTV.exe
IfEqual, ErrorLevel, 0
{
IfWinExist, ahk_class AVerRemoteApp
PostMessage, 0x111, 40001, , , ahk_class AVerRemoteApp ; AVerTV v5.5.0: QuickTV -> AVerTV
Else IfWinExist, ahk_class AVerQuickAPP
PostMessage, 0x111, 10000, , , ahk_class AVerQuickAPP ; AVerTV v6.3.0: AVerQuick ->
Else
{
RegRead, AppPath, HKEY_LOCAL_MACHINE, SOFTWARE\AVerMedia TECHNOLOGIES`, Inc., Application Path ; AVerTV v5.5.0
IfEqual, ErrorLevel, 1
RegRead, AppPath, HKEY_LOCAL_MACHINE, SOFTWARE\AVerMedia TECHNOLOGIES`, Inc.\AVerTV_RE, Application Path ; AVerTV v6.3.0
IfExist, %AppPath%AVerTV.exe
Run, %AppPath%AVerTV.exe
}
}
Else IfWinExist, ahk_class AVerTVApp
PostMessage, 0x497, 3014, , , ahk_class AVerTVApp ; AVerTV v5.5.0:
Else IfWinExist, ahk_class AVerTV_main
PostMessage, 0x4CA, 1, , , ahk_class AVerTV_main ; AVerTV v6.3.0:
Return

Remote1:
IfWinExist, ahk_class AVerTVApp
PostMessage, 0x497, 3094, 1, , ahk_class AVerTVApp ; AVerTV v5.5.0: 1
Else IfWinExist, ahk_class AVerTV_main
PostMessage, 0x4CA, 32, , , ahk_class AVerTV_main ; AVerTV v6.3.0: 1
Return

Remote2:
IfWinExist, ahk_class AVerTVApp
PostMessage, 0x497, 3094, 2, , ahk_class AVerTVApp ; AVerTV v5.5.0: 2
Else IfWinExist, ahk_class AVerTV_main
PostMessage, 0x4CA, 33, , , ahk_class AVerTV_main ; AVerTV v6.3.0: 2
Return

Remote3:
IfWinExist, ahk_class AVerTVApp
PostMessage, 0x497, 3094, 3, , ahk_class AVerTVApp ; AVerTV v5.5.0: 3
Else IfWinExist, ahk_class AVerTV_main
PostMessage, 0x4CA, 34, , , ahk_class AVerTV_main ; AVerTV v6.3.0: 3
Return

RemoteVideo:
IfWinExist, ahk_class AVerTVApp
PostMessage, 0x497, 3083, , , ahk_class AVerTVApp ; AVerTV v5.5.0: (/S-Video/)
Else IfWinExist, ahk_class AVerTV_main
PostMessage, 0x4CA, 14, , , ahk_class AVerTV_main ; AVerTV v6.3.0: EPG
Return

Remote4:
IfWinExist, ahk_class AVerTVApp
PostMessage, 0x497, 3094, 4, , ahk_class AVerTVApp ; AVerTV v5.5.0: 4
Else IfWinExist, ahk_class AVerTV_main
PostMessage, 0x4CA, 35, , , ahk_class AVerTV_main ; AVerTV v6.3.0: 4
Return

Remote5:
IfWinExist, ahk_class AVerTVApp
PostMessage, 0x497, 3094, 5, , ahk_class AVerTVApp ; AVerTV v5.5.0: 5
Else IfWinExist, ahk_class AVerTV_main
PostMessage, 0x4CA, 36, , , ahk_class AVerTV_main ; AVerTV v6.3.0: 5
Return

Remote6:
IfWinExist, ahk_class AVerTVApp
PostMessage, 0x497, 3094, 6, , ahk_class AVerTVApp ; AVerTV v5.5.0: 6
Else IfWinExist, ahk_class AVerTV_main
PostMessage, 0x4CA, 37, , , ahk_class AVerTV_main ; AVerTV v6.3.0: 6
Return

RemoteAudio:
IfWinExist, ahk_class AVerTVApp
PostMessage, 0x497, 3084, , , ahk_class AVerTVApp ; AVerTV v5.5.0:
Else IfWinExist, ahk_class AVerTV_main
PostMessage, 0x4CA, 43, , , ahk_class AVerTV_main ; AVerTV v6.3.0:
Return

Remote7:
IfWinExist, ahk_class AVerTVApp
PostMessage, 0x497, 3094, 7, , ahk_class AVerTVApp ; AVerTV v5.5.0: 7
Else IfWinExist, ahk_class AVerTV_main
PostMessage, 0x4CA, 38, , , ahk_class AVerTV_main ; AVerTV v6.3.0: 7
Return

Remote8:
IfWinExist, ahk_class AVerTVApp
PostMessage, 0x497, 3094, 8, , ahk_class AVerTVApp ; AVerTV v5.5.0: 8
Else IfWinExist, ahk_class AVerTV_main
PostMessage, 0x4CA, 39, , , ahk_class AVerTV_main ; AVerTV v6.3.0: 8
Return

Remote9:
IfWinExist, ahk_class AVerTVApp
PostMessage, 0x497, 3094, 9, , ahk_class AVerTVApp ; AVerTV v5.5.0: 9
Else IfWinExist, ahk_class AVerTV_main
PostMessage, 0x4CA, 40, , , ahk_class AVerTV_main ; AVerTV v6.3.0: 9
Return

RemoteFullScreen:
IfWinExist, ahk_class AVerTVApp
PostMessage, 0x497, 3091, , , ahk_class AVerTVApp ; AVerTV v5.5.0:
Else IfWinExist, ahk_class AVerTV_main
PostMessage, 0x4CA, 53, , , ahk_class AVerTV_main ; AVerTV v6.3.0:
Return

Remote0:
IfWinExist, ahk_class AVerTVApp
PostMessage, 0x497, 3094, 0, , ahk_class AVerTVApp ; AVerTV v5.5.0: 0
Else IfWinExist, ahk_class AVerTV_main
PostMessage, 0x4CA, 31, , , ahk_class AVerTV_main ; AVerTV v6.3.0: 0
Return

RemoteDisplay:
IfWinExist, ahk_class AVerTVApp
PostMessage, 0x497, 3088, , , ahk_class AVerTVApp ; AVerTV v5.5.0:
Else IfWinExist, ahk_class AVerTV_main
PostMessage, 0x4CA, 41, , , ahk_class AVerTV_main ; AVerTV v6.3.0:
Return

RemoteLoop:
IfWinExist, ahk_class AVerTVApp
PostMessage, 0x497, 3082, , , ahk_class AVerTVApp ; AVerTV v5.5.0:
Else IfWinExist, ahk_class AVerTV_main
PostMessage, 0x4CA, 52, , , ahk_class AVerTV_main ; AVerTV v6.3.0:
Return

RemotePreview:
IfWinExist, ahk_class AVerTVApp
PostMessage, 0x497, 3092, , , ahk_class AVerTVApp ; AVerTV v5.5.0: 16
Else IfWinExist, ahk_class AVerTV_main
PostMessage, 0x4CA, 57, , , ahk_class AVerTV_main ; AVerTV v6.3.0:
WinSet, Topmost, On, ahk_id %Gui1Hwnd%
Return

RemoteAutoscan:
IfWinExist, ahk_class AVerTVApp
{
MsgBox, 1, AVerTV Studio 305 Remote, ?
IfMsgBox, Yes
PostMessage, 0x497, 3081, , , ahk_class AVerTVApp ; AVerTV v5.5.0:
}
Else IfWinExist, ahk_class AVerTV_main
PostMessage, 0x4CA, 54, , , ahk_class AVerTV_main ; AVerTV v6.3.0:
Return

RemoteFreeze:
MsgBox, 0, AVerTV Studio 305 Remote,
Return

RemoteCapture:
IfWinExist, ahk_class AVerTVApp
PostMessage, 0x497, 3090, , , ahk_class AVerTVApp ; AVerTV v5.5.0:
Else IfWinExist, ahk_class AVerTV_main
PostMessage, 0x4CA, 21, , , ahk_class AVerTV_main ; AVerTV v6.3.0:
Return

RemoteMute:
IfWinExist, ahk_class AVerTVApp
PostMessage, 0x497, 3085, , , ahk_class AVerTVApp ; AVerTV v5.5.0:
Else IfWinExist, ahk_class AVerTV_main
PostMessage, 0x4CA, 26, , , ahk_class AVerTV_main ; AVerTV v6.3.0:
Return

RemoteRecord:
IfWinExist, ahk_class AVerTVApp
PostMessage, 0x497, 3065, , , ahk_class AVerTVApp ; AVerTV v5.5.0:
Else IfWinExist, ahk_class AVerTV_main
PostMessage, 0x4CA, 4, , , ahk_class AVerTV_main ; AVerTV v6.3.0:
Return

RemotePause:
IfWinExist, ahk_class AVerTVApp
PostMessage, 0x497, 3062, , , ahk_class AVerTVApp ; AVerTV v5.5.0: Time Shift/
Else IfWinExist, ahk_class AVerTV_main
PostMessage, 0x4CA, 58, , , ahk_class AVerTV_main ; AVerTV v6.3.0:
Return

RemoteStop:
IfWinExist, ahk_class AVerTVApp
PostMessage, 0x497, 3064, , , ahk_class AVerTVApp ; AVerTV v5.5.0:
Else IfWinExist, ahk_class AVerTV_main
PostMessage, 0x4CA, 5, , , ahk_class AVerTV_main ; AVerTV v6.3.0:
Return

RemotePlay:
IfWinExist, ahk_class AVerTVApp
PostMessage, 0x497, 3063, , , ahk_class AVerTVApp ; AVerTV v5.5.0:
Else IfWinExist, ahk_class AVerTV_main
PostMessage, 0x4CA, 8, , , ahk_class AVerTV_main ; AVerTV v6.3.0:
Return

RemoteRed:
IfWinExist, ahk_class AVerTVApp
PostMessage, 0x497, 5010, , , ahk_class AVerTVApp ; AVerTV v5.5.0:
Else IfWinExist, ahk_class AVerTV_main
PostMessage, 0x4CA, 6, , , ahk_class AVerTV_main ; AVerTV v6.3.0:
Return

RemoteVolumeSub:
IfWinExist, ahk_class AVerTVApp
PostMessage, 0x497, 3086, 1, , ahk_class AVerTVApp ; AVerTV v5.5.0:
Else IfWinExist, ahk_class AVerTV_main
PostMessage, 0x4C9, 28, , , ahk_class AVerTV_main ; AVerTV v6.3.0:
Return

RemoteVolumeAdd:
IfWinExist, ahk_class AVerTVApp
PostMessage, 0x497, 3086, , , ahk_class AVerTVApp ; AVerTV v5.5.0:
Else IfWinExist, ahk_class AVerTV_main
PostMessage, 0x4C9, 27, , , ahk_class AVerTV_main ; AVerTV v6.3.0:
Return

RemoteYellow:
IfWinExist, ahk_class AVerTVApp
PostMessage, 0x497, 5012, , , ahk_class AVerTVApp ; AVerTV v5.5.0:
Else IfWinExist, ahk_class AVerTV_main
PostMessage, 0x4CA, 7, , , ahk_class AVerTV_main ; AVerTV v6.3.0:
Return

RemoteGreen:
IfWinExist, ahk_class AVerTVApp
PostMessage, 0x497, 5011, , , ahk_class AVerTVApp ; AVerTV v5.5.0:
Else IfWinExist, ahk_class AVerTV_main
PostMessage, 0x4CA, 9, , , ahk_class AVerTV_main ; AVerTV v6.3.0:
Return

RemoteChannelPrev:
IfWinExist, ahk_class AVerTVApp
PostMessage, 0x497, 3087, 1, , ahk_class AVerTVApp ; AVerTV v5.5.0:
Else IfWinExist, ahk_class AVerTV_main
PostMessage, 0x4C9, 30, , , ahk_class AVerTV_main ; AVerTV v6.3.0:
Return

RemoteChannelNext:
IfWinExist, ahk_class AVerTVApp
PostMessage, 0x497, 3087, , , ahk_class AVerTVApp ; AVerTV v5.5.0:
Else IfWinExist, ahk_class AVerTV_main
PostMessage, 0x4C9, 29, , , ahk_class AVerTV_main ; AVerTV v6.3.0:
Return

RemoteBlue:
IfWinExist, ahk_class AVerTVApp
PostMessage, 0x497, 5013, , , ahk_class AVerTVApp ; AVerTV v5.5.0:
Else IfWinExist, ahk_class AVerTV_main
PostMessage, 0x4CA, 10, , , ahk_class AVerTV_main ; AVerTV v6.3.0:
Return

Copyleft 2009 Big Digger Valid XHTML 1.0 Transitional Valid CSS!