-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfrmSettings.frm
548 lines (534 loc) · 17.3 KB
/
frmSettings.frm
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
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
VERSION 5.00
Object = "{7888C00A-4808-4D27-9AAE-BD36EC13D16F}#1.0#0"; "LVBUTTONS.OCX"
Begin VB.Form frmSettings
BackColor = &H00000000&
BorderStyle = 0 'None
Caption = "Form1"
ClientHeight = 7470
ClientLeft = 0
ClientTop = 0
ClientWidth = 5355
LinkTopic = "Form1"
Picture = "frmSettings.frx":0000
ScaleHeight = 7470
ScaleWidth = 5355
ShowInTaskbar = 0 'False
StartUpPosition = 3 'Windows Default
Begin VB.OptionButton optUMS
BackColor = &H00000000&
Caption = "UMS"
BeginProperty Font
Name = "Verdana"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 255
Left = 360
TabIndex = 19
Top = 3480
Width = 735
End
Begin VB.OptionButton optMel
BackColor = &H00000000&
Caption = "Melee"
BeginProperty Font
Name = "Verdana"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 255
Left = 4080
TabIndex = 18
Top = 3480
Width = 855
End
Begin VB.OptionButton optTvB
BackColor = &H00000000&
Caption = "TvB"
BeginProperty Font
Name = "Verdana"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 255
Left = 2250
TabIndex = 17
Top = 3480
Width = 735
End
Begin VB.Frame Frame1
BackColor = &H00000000&
Caption = "Detect"
BeginProperty Font
Name = "Verdana"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 735
Left = 120
TabIndex = 16
Top = 3240
Width = 5100
End
Begin VB.TextBox txtTrigger
Alignment = 2 'Center
BeginProperty Font
Name = "Verdana"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 285
Left = 3720
TabIndex = 14
Text = "~"
Top = 1680
Width = 735
End
Begin VB.TextBox txtMaster
Alignment = 2 'Center
BeginProperty Font
Name = "Verdana"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 285
Left = 1920
TabIndex = 12
Text = "Myst"
Top = 1680
Width = 1695
End
Begin VB.TextBox txtHome
Alignment = 2 'Center
BeginProperty Font
Name = "Verdana"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 285
Left = 120
TabIndex = 10
Text = "Op Null"
Top = 1680
Width = 1695
End
Begin VB.TextBox txtServer
Alignment = 2 'Center
BeginProperty Font
Name = "Verdana"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 285
Left = 1920
TabIndex = 9
Text = "useast.battle.net"
Top = 1080
Width = 1695
End
Begin VB.TextBox txtKey
Alignment = 2 'Center
BeginProperty Font
Name = "Verdana"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 285
Left = 120
TabIndex = 7
Text = "1234567891234"
Top = 1080
Width = 1695
End
Begin VB.TextBox txtPass
Alignment = 2 'Center
BeginProperty Font
Name = "Verdana"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 285
Left = 1920
TabIndex = 5
Text = "pas132"
Top = 480
Width = 1695
End
Begin VB.TextBox txtUser
Alignment = 2 'Center
BeginProperty Font
Name = "Verdana"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 285
Left = 120
TabIndex = 3
Text = "GameBot[Myst]"
Top = 480
Width = 1695
End
Begin LVbuttons.LaVolpeButton LaVolpeButton1
Height = 255
Left = 3600
TabIndex = 0
Top = 120
Width = 855
_ExtentX = 1508
_ExtentY = 450
BTYPE = 8
TX = "Apply"
ENAB = -1 'True
BeginProperty FONT {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "Times New Roman"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
COLTYPE = 2
BCOL = 16777215
FCOL = 128
FCOLO = 32896
EMBOSSM = 12632256
EMBOSSS = 16777215
MPTR = 0
MICON = "frmSettings.frx":1F92
ALIGN = 1
IMGLST = "(None)"
IMGICON = "(None)"
ICONAlign = 0
ORIENT = 0
STYLE = 3
IconSize = 2
SHOWF = 0 'False
BSTYLE = 3
End
Begin LVbuttons.LaVolpeButton LaVolpeButton2
Height = 255
Left = 4440
TabIndex = 1
Top = 120
Width = 855
_ExtentX = 1508
_ExtentY = 450
BTYPE = 8
TX = "Cancel"
ENAB = -1 'True
BeginProperty FONT {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "Times New Roman"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
COLTYPE = 2
BCOL = 16777215
FCOL = 128
FCOLO = 32896
EMBOSSM = 12632256
EMBOSSS = 16777215
MPTR = 0
MICON = "frmSettings.frx":1FAE
ALIGN = 1
IMGLST = "(None)"
IMGICON = "(None)"
ICONAlign = 0
ORIENT = 0
STYLE = 3
IconSize = 2
SHOWF = 0 'False
BSTYLE = 1
End
Begin VB.Label Label8
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "Starcraft"
BeginProperty Font
Name = "Verdana"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 375
Left = 1320
TabIndex = 20
Top = 3000
Width = 2655
End
Begin VB.Label Label7
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "Trigger"
BeginProperty Font
Name = "Lucida Console"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 255
Left = 3420
TabIndex = 15
Top = 1440
Width = 1335
End
Begin VB.Label Label6
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "Master"
BeginProperty Font
Name = "Lucida Console"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 255
Left = 2160
TabIndex = 13
Top = 1440
Width = 1335
End
Begin VB.Label Label3
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "Home"
BeginProperty Font
Name = "Lucida Console"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 255
Left = 240
TabIndex = 11
Top = 1440
Width = 1335
End
Begin VB.Label Label5
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "Server"
BeginProperty Font
Name = "Lucida Console"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 255
Left = 2160
TabIndex = 8
Top = 840
Width = 1335
End
Begin VB.Label Label4
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "CDKey"
BeginProperty Font
Name = "Lucida Console"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 255
Left = 240
TabIndex = 6
Top = 840
Width = 1335
End
Begin VB.Label Label2
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "Password"
BeginProperty Font
Name = "Lucida Console"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 255
Left = 2160
TabIndex = 4
Top = 240
Width = 1335
End
Begin VB.Label Label1
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "Account"
BeginProperty Font
Name = "Lucida Console"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 255
Left = 240
TabIndex = 2
Top = 240
Width = 1335
End
End
Attribute VB_Name = "frmSettings"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Declare Function GetWindowLong Lib "User32" Alias "GetWindowLongA" (ByVal hWnd As Long, ByVal nIndex As Long) As Long
Private Declare Function SetWindowLong Lib "User32" Alias "SetWindowLongA" (ByVal hWnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Private Declare Function SetLayeredWindowAttributes Lib "User32" (ByVal hWnd As Long, ByVal crKey As Long, ByVal bAlpha As Byte, ByVal dwFlags As Long) As Long
Private Const GWL_STYLE = (-16)
Private Const GWL_EXSTYLE = (-20)
Private Const WS_EX_LAYERED = &H80000
Private Const LWA_COLORKEY = &H1
Const WS_EX_TRANSPARENT = &H20&
Dim Rgn As Long
Private Sub Form_Load()
Select Case WatchType
Case "UMS"
optUMS = True
Case "TVB"
optTvB = True
Case "MELEE"
optMel = True
End Select
txtUser.Text = IniName
txtPass.Text = IniPass
txtServer.Text = IniServer
txtHome.Text = IniHome
txtKey.Text = IniCDKey
txtMaster.Text = strMast
txtTrigger.Text = IniTrigger
End Sub
Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = vbLeftButton Then
ReleaseCapture
SendMessage hWnd, WM_NCLBUTTONDOWN, 2, 0&
End If
End Sub
Private Sub LaVolpeButton1_Click() 'apply
IniName = txtUser.Text
IniPass = txtPass.Text
IniServer = txtServer.Text
IniHome = txtHome.Text
IniCDKey = txtKey.Text
strMast = txtMaster.Text
IniTrigger = txtTrigger.Text
frmMain.Label1.Caption = IniName & " [" & IniHome & "]"
WriteINI "Options", "Trigger", IniTrigger
WriteINI "Options", "Master", strMast
WriteINI "Connection", "Username", IniName
WriteINI "Connection", "Password", IniPass
WriteINI "Connection", "Server", IniServer
WriteINI "Connection", "CDKey", IniCDKey
WriteINI "Connection", "HomeChan", IniHome
Select Case True
Case optUMS
WriteINI "Options", "Detect", "UMS"
If WatchType <> "UMS" Then 'changed since last
Chat.AddChat2 "&H" & StrReverse("6600CC"), "Detecting UMS games."
End If
WatchType = "UMS"
Case optTvB
WriteINI "Options", "Detect", "TVB"
If WatchType <> "TVB" Then 'changed since last
Chat.AddChat2 "&H" & StrReverse("6600CC"), "Detecting TVB games."
End If
WatchType = "TVB"
Case optMel
WriteINI "Options", "Detect", "MELEE"
If WatchType <> "MELEE" Then 'changed since last
Chat.AddChat2 "&H" & StrReverse("6600CC"), "Detecting MELEE games."
End If
WatchType = "MELEE"
End Select
ChangeBackground
Unload Me
End Sub
Private Sub LaVolpeButton2_Click() 'cancel
Unload Me
End Sub