-
Notifications
You must be signed in to change notification settings - Fork 0
/
frmSpecial.frm
594 lines (555 loc) · 19.6 KB
/
frmSpecial.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
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
VERSION 5.00
Begin VB.Form frmSpecial
BorderStyle = 1 'Fixed Single
Caption = "Include Special characters"
ClientHeight = 3000
ClientLeft = 450
ClientTop = 540
ClientWidth = 6480
KeyPreview = -1 'True
LinkTopic = "Form1"
MaxButton = 0 'False
ScaleHeight = 3000
ScaleWidth = 6480
StartUpPosition = 1 'CenterOwner
Begin VB.CommandButton cmdExclude
Caption = "&Exclude All"
Height = 375
Left = 1560
TabIndex = 33
Top = 2520
Width = 1335
End
Begin VB.CommandButton cmdIncludeAll
Caption = "&Include All"
Height = 375
Left = 120
TabIndex = 32
Top = 2520
Width = 1335
End
Begin VB.CommandButton cmdOkay
Caption = "&OK"
Height = 375
Left = 5040
TabIndex = 34
Top = 2520
Width = 1335
End
Begin VB.Frame fmeInclude
Caption = "Include:"
Height = 2295
Left = 120
TabIndex = 35
Top = 120
Width = 6255
Begin VB.CheckBox chkUnderscore
Caption = "_"
Height = 255
Left = 4560
TabIndex = 26
Top = 720
Value = 1 'Checked
Width = 1575
End
Begin VB.CheckBox chkQuote
Caption = """"
Height = 255
Left = 240
TabIndex = 1
Top = 480
Value = 1 'Checked
Width = 1335
End
Begin VB.CheckBox chkRightBrace
Caption = "}"
Height = 255
Left = 4560
TabIndex = 30
Top = 1680
Value = 1 'Checked
Width = 1575
End
Begin VB.CheckBox chkLeftBrace
Caption = "{"
Height = 255
Left = 4560
TabIndex = 28
Top = 1200
Value = 1 'Checked
Width = 1575
End
Begin VB.CheckBox chkRightBracket
Caption = "]"
Height = 255
Left = 4560
TabIndex = 24
Top = 240
Value = 1 'Checked
Width = 1575
End
Begin VB.CheckBox chkLeftBracket
Caption = "["
Height = 255
Left = 3120
TabIndex = 22
Top = 1680
Value = 1 'Checked
Width = 1335
End
Begin VB.CheckBox chkRightParenthesis
Caption = ")"
Height = 255
Left = 1680
TabIndex = 8
Top = 240
Value = 1 'Checked
Width = 1335
End
Begin VB.CheckBox chkLeftParenthesis
Caption = "("
Height = 255
Left = 240
TabIndex = 7
Top = 1920
Value = 1 'Checked
Width = 1335
End
Begin VB.CheckBox chkPipe
Caption = "|"
Height = 255
Left = 4560
TabIndex = 29
Top = 1440
Value = 1 'Checked
Width = 1575
End
Begin VB.CheckBox chkComma
Caption = ", (Comma)"
Height = 255
Left = 1680
TabIndex = 11
Top = 960
Value = 1 'Checked
Width = 1335
End
Begin VB.CheckBox chkPercent
Caption = "%"
Height = 255
Left = 240
TabIndex = 4
Top = 1200
Value = 1 'Checked
Width = 1335
End
Begin VB.CheckBox chkDollar
Caption = "$"
Height = 255
Left = 240
TabIndex = 3
Top = 960
Value = 1 'Checked
Width = 1335
End
Begin VB.CheckBox chkHash
Caption = "#"
Height = 255
Left = 240
TabIndex = 2
Top = 720
Value = 1 'Checked
Width = 1335
End
Begin VB.CheckBox chkTilde
Caption = "~"
Height = 255
Left = 4560
TabIndex = 31
Top = 1920
Value = 1 'Checked
Width = 1575
End
Begin VB.CheckBox chkGrave
Caption = "` (Grave Accent)"
Height = 255
Left = 4560
TabIndex = 27
Top = 960
Value = 1 'Checked
Width = 1575
End
Begin VB.CheckBox chkPower
Caption = "^"
Height = 255
Left = 4560
TabIndex = 25
Top = 480
Value = 1 'Checked
Width = 1575
End
Begin VB.CheckBox chkBackSlash
Caption = "\"
Height = 255
Left = 3120
TabIndex = 23
Top = 1920
Value = 1 'Checked
Width = 1335
End
Begin VB.CheckBox chkAtSign
Caption = "@"
Height = 255
Left = 3120
TabIndex = 21
Top = 1440
Value = 1 'Checked
Width = 1335
End
Begin VB.CheckBox chkQuestion
Caption = "?"
Height = 255
Left = 3120
TabIndex = 20
Top = 1200
Value = 1 'Checked
Width = 1335
End
Begin VB.CheckBox chkGreaterThan
Caption = ">"
Height = 255
Left = 3120
TabIndex = 19
Top = 960
Value = 1 'Checked
Width = 1335
End
Begin VB.CheckBox chkEquals
Caption = "="
Height = 255
Left = 3120
TabIndex = 18
Top = 720
Value = 1 'Checked
Width = 1335
End
Begin VB.CheckBox chkLessThan
Caption = "<"
Height = 255
Left = 3120
TabIndex = 17
Top = 480
Value = 1 'Checked
Width = 1335
End
Begin VB.CheckBox chkSemiColon
Caption = "; (Semicolon)"
Height = 255
Left = 3120
TabIndex = 16
Top = 240
Value = 1 'Checked
Width = 1335
End
Begin VB.CheckBox chkColon
Caption = ": (Colon)"
Height = 255
Left = 1680
TabIndex = 15
Top = 1920
Value = 1 'Checked
Width = 1335
End
Begin VB.CheckBox chkForwardSlash
Caption = "/"
Height = 255
Left = 1680
TabIndex = 14
Top = 1680
Value = 1 'Checked
Width = 1335
End
Begin VB.CheckBox chkPeriod
Caption = ". (Period)"
Height = 255
Left = 1680
TabIndex = 13
Top = 1440
Value = 1 'Checked
Width = 1335
End
Begin VB.CheckBox chkMinus
Caption = "- (Minus)"
Height = 255
Left = 1680
TabIndex = 12
Top = 1200
Value = 1 'Checked
Width = 1335
End
Begin VB.CheckBox chkPlus
Caption = "+"
Height = 255
Left = 1680
TabIndex = 10
Top = 720
Value = 1 'Checked
Width = 1335
End
Begin VB.CheckBox chkAsterisk
Caption = "*"
Height = 255
Left = 1680
TabIndex = 9
Top = 480
Value = 1 'Checked
Width = 1335
End
Begin VB.CheckBox chkApostrophe
Caption = "' (Apostrophe)"
Height = 255
Left = 240
TabIndex = 6
Top = 1680
Value = 1 'Checked
Width = 1335
End
Begin VB.CheckBox chkAmpersand
Caption = "&&"
Height = 255
Left = 240
TabIndex = 5
Top = 1440
Value = 1 'Checked
Width = 1335
End
Begin VB.CheckBox chkExclamation
Caption = "!"
Height = 255
Left = 240
TabIndex = 0
Top = 240
Value = 1 'Checked
Width = 1335
End
End
End
Attribute VB_Name = "frmSpecial"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub chkAmpersand_Click()
frmPassGen.useAmpersand = chkAmpersand.Value
End Sub
Private Sub chkApostrophe_Click()
frmPassGen.useApostrophe = chkApostrophe.Value
End Sub
Private Sub chkAsterisk_Click()
frmPassGen.useAsterisk = chkAsterisk.Value
End Sub
Private Sub chkAtSign_Click()
frmPassGen.useAtSign = chkAtSign.Value
End Sub
Private Sub chkBackSlash_Click()
frmPassGen.useBackSlash = chkBackSlash.Value
End Sub
Private Sub chkColon_Click()
frmPassGen.useColon = chkColon.Value
End Sub
Private Sub chkComma_Click()
frmPassGen.useComma = chkComma.Value
End Sub
Private Sub chkDollar_Click()
frmPassGen.useDollar = chkDollar.Value
End Sub
Private Sub chkEquals_Click()
frmPassGen.useEquals = chkEquals.Value
End Sub
Private Sub chkExclamation_Click()
frmPassGen.useExclamation = chkExclamation.Value
End Sub
Private Sub chkForwardSlash_Click()
frmPassGen.useForwardSlash = chkForwardSlash.Value
End Sub
Private Sub chkGrave_Click()
frmPassGen.useGrave = chkGrave.Value
End Sub
Private Sub chkGreaterThan_Click()
frmPassGen.useGreaterThan = chkGreaterThan.Value
End Sub
Private Sub chkHash_Click()
frmPassGen.useHash = chkHash.Value
End Sub
Private Sub chkLeftBrace_Click()
frmPassGen.useLeftBrace = chkLeftBrace.Value
End Sub
Private Sub chkLeftBracket_Click()
frmPassGen.useLeftBracket = chkLeftBracket.Value
End Sub
Private Sub chkLeftParenthesis_Click()
frmPassGen.useLeftParenthesis = chkLeftParenthesis.Value
End Sub
Private Sub chkLessThan_Click()
frmPassGen.useLessThan = chkLessThan.Value
End Sub
Private Sub chkMinus_Click()
frmPassGen.useMinus = chkMinus.Value
End Sub
Private Sub chkPercent_Click()
frmPassGen.usePercent = chkPercent.Value
End Sub
Private Sub chkPeriod_Click()
frmPassGen.usePeriod = chkPeriod.Value
End Sub
Private Sub chkPipe_Click()
frmPassGen.usePipe = chkPipe.Value
End Sub
Private Sub chkPlus_Click()
frmPassGen.usePlus = chkPlus.Value
End Sub
Private Sub chkPower_Click()
frmPassGen.usePower = chkPower.Value
End Sub
Private Sub chkQuestion_Click()
frmPassGen.useQuestion = chkQuestion.Value
End Sub
Private Sub chkQuote_Click()
frmPassGen.useQuote = chkQuote.Value
End Sub
Private Sub chkRightBrace_Click()
frmPassGen.useRightBrace = chkRightBrace.Value
End Sub
Private Sub chkRightBracket_Click()
frmPassGen.useRightBracket = chkRightBracket.Value
End Sub
Private Sub chkRightParenthesis_Click()
frmPassGen.useRightParenthesis = chkRightParenthesis.Value
End Sub
Private Sub chkSemiColon_Click()
frmPassGen.useSemiColon = chkSemiColon.Value
End Sub
Private Sub chkTilde_Click()
frmPassGen.useTilde = chkTilde.Value
End Sub
Private Sub chkUnderscore_Click()
frmPassGen.useUnderscore = chkUnderscore.Value
End Sub
Private Sub cmdExclude_Click()
If chkExclamation.Value = 1 Then chkExclamation.Value = 0
If chkQuote.Value = 1 Then chkQuote.Value = 0
If chkHash.Value = 1 Then chkHash.Value = 0
If chkDollar.Value = 1 Then chkDollar.Value = 0
If chkPercent.Value = 1 Then chkPercent.Value = 0
If chkAmpersand.Value = 1 Then chkAmpersand.Value = 0
If chkApostrophe.Value = 1 Then chkApostrophe.Value = 0
If chkLeftParenthesis.Value = 1 Then chkLeftParenthesis.Value = 0
If chkRightParenthesis.Value = 1 Then chkRightParenthesis.Value = 0
If chkAsterisk.Value = 1 Then chkAsterisk.Value = 0
If chkPlus.Value = 1 Then chkPlus.Value = 0
If chkComma.Value = 1 Then chkComma.Value = 0
If chkMinus.Value = 1 Then chkMinus.Value = 0
If chkPeriod.Value = 1 Then chkPeriod.Value = 0
If chkForwardSlash.Value = 1 Then chkForwardSlash.Value = 0
If chkColon.Value = 1 Then chkColon.Value = 0
If chkSemiColon.Value = 1 Then chkSemiColon.Value = 0
If chkLessThan.Value = 1 Then chkLessThan.Value = 0
If chkEquals.Value = 1 Then chkEquals.Value = 0
If chkGreaterThan.Value = 1 Then chkGreaterThan.Value = 0
If chkQuestion.Value = 1 Then chkQuestion.Value = 0
If chkAtSign.Value = 1 Then chkAtSign.Value = 0
If chkLeftBracket.Value = 1 Then chkLeftBracket.Value = 0
If chkBackSlash.Value = 1 Then chkBackSlash.Value = 0
If chkRightBracket.Value = 1 Then chkRightBracket.Value = 0
If chkPower.Value = 1 Then chkPower.Value = 0
If chkUnderscore.Value = 1 Then chkUnderscore.Value = 0
If chkGrave.Value = 1 Then chkGrave.Value = 0
If chkLeftBrace.Value = 1 Then chkLeftBrace.Value = 0
If chkPipe.Value = 1 Then chkPipe.Value = 0
If chkRightBrace.Value = 1 Then chkRightBrace.Value = 0
If chkTilde.Value = 1 Then chkTilde.Value = 0
' `-> ASCII table order.
End Sub
Private Sub cmdIncludeAll_Click()
If chkExclamation.Value = 0 Then chkExclamation.Value = 1
If chkQuote.Value = 0 Then chkQuote.Value = 1
If chkHash.Value = 0 Then chkHash.Value = 1
If chkDollar.Value = 0 Then chkDollar.Value = 1
If chkPercent.Value = 0 Then chkPercent.Value = 1
If chkAmpersand.Value = 0 Then chkAmpersand.Value = 1
If chkApostrophe.Value = 0 Then chkApostrophe.Value = 1
If chkLeftParenthesis.Value = 0 Then chkLeftParenthesis.Value = 1
If chkRightParenthesis.Value = 0 Then chkRightParenthesis.Value = 1
If chkAsterisk.Value = 0 Then chkAsterisk.Value = 1
If chkPlus.Value = 0 Then chkPlus.Value = 1
If chkComma.Value = 0 Then chkComma.Value = 1
If chkMinus.Value = 0 Then chkMinus.Value = 1
If chkPeriod.Value = 0 Then chkPeriod.Value = 1
If chkForwardSlash.Value = 0 Then chkForwardSlash.Value = 1
If chkColon.Value = 0 Then chkColon.Value = 1
If chkSemiColon.Value = 0 Then chkSemiColon.Value = 1
If chkLessThan.Value = 0 Then chkLessThan.Value = 1
If chkEquals.Value = 0 Then chkEquals.Value = 1
If chkGreaterThan.Value = 0 Then chkGreaterThan.Value = 1
If chkQuestion.Value = 0 Then chkQuestion.Value = 1
If chkAtSign.Value = 0 Then chkAtSign.Value = 1
If chkLeftBracket.Value = 0 Then chkLeftBracket.Value = 1
If chkBackSlash.Value = 0 Then chkBackSlash.Value = 1
If chkRightBracket.Value = 0 Then chkRightBracket.Value = 1
If chkPower.Value = 0 Then chkPower.Value = 1
If chkUnderscore.Value = 0 Then chkUnderscore.Value = 1
If chkGrave.Value = 0 Then chkGrave.Value = 1
If chkLeftBrace.Value = 0 Then chkLeftBrace.Value = 1
If chkPipe.Value = 0 Then chkPipe.Value = 1
If chkRightBrace.Value = 0 Then chkRightBrace.Value = 1
If chkTilde.Value = 0 Then chkTilde.Value = 1
' `-> ASCII table order.
End Sub
Private Sub cmdOkay_Click()
Unload Me
End Sub
Private Sub Form_KeyPress(KeyAscii As Integer)
If KeyAscii = vbKeyEscape Then Unload Me
End Sub
Private Sub Form_Load()
chkExclamation.Value = IIf(frmPassGen.useExclamation = 1, 1, 0)
chkQuote.Value = IIf(frmPassGen.useQuote = 1, 1, 0)
chkHash.Value = IIf(frmPassGen.useHash = 1, 1, 0)
chkDollar.Value = IIf(frmPassGen.useDollar = 1, 1, 0)
chkPercent.Value = IIf(frmPassGen.usePercent = 1, 1, 0)
chkAmpersand.Value = IIf(frmPassGen.useAmpersand = 1, 1, 0)
chkApostrophe.Value = IIf(frmPassGen.useApostrophe = 1, 1, 0)
chkLeftParenthesis.Value = IIf(frmPassGen.useLeftParenthesis = 1, 1, 0)
chkRightParenthesis.Value = IIf(frmPassGen.useRightParenthesis = 1, 1, 0)
chkAsterisk.Value = IIf(frmPassGen.useAsterisk = 1, 1, 0)
chkPlus.Value = IIf(frmPassGen.usePlus = 1, 1, 0)
chkComma.Value = IIf(frmPassGen.useComma = 1, 1, 0)
chkMinus.Value = IIf(frmPassGen.useMinus = 1, 1, 0)
chkPeriod.Value = IIf(frmPassGen.usePeriod = 1, 1, 0)
chkForwardSlash.Value = IIf(frmPassGen.useForwardSlash = 1, 1, 0)
chkColon.Value = IIf(frmPassGen.useColon = 1, 1, 0)
chkSemiColon.Value = IIf(frmPassGen.useSemiColon = 1, 1, 0)
chkLessThan.Value = IIf(frmPassGen.useLessThan = 1, 1, 0)
chkEquals.Value = IIf(frmPassGen.useEquals = 1, 1, 0)
chkGreaterThan.Value = IIf(frmPassGen.useGreaterThan = 1, 1, 0)
chkQuestion.Value = IIf(frmPassGen.useQuestion = 1, 1, 0)
chkAtSign.Value = IIf(frmPassGen.useAtSign = 1, 1, 0)
chkLeftBracket.Value = IIf(frmPassGen.useLeftBracket = 1, 1, 0)
chkBackSlash.Value = IIf(frmPassGen.useBackSlash = 1, 1, 0)
chkRightBracket.Value = IIf(frmPassGen.useRightBracket = 1, 1, 0)
chkPower.Value = IIf(frmPassGen.usePower = 1, 1, 0)
chkUnderscore.Value = IIf(frmPassGen.useUnderscore = 1, 1, 0)
chkGrave.Value = IIf(frmPassGen.useGrave = 1, 1, 0)
chkLeftBrace.Value = IIf(frmPassGen.useLeftBrace = 1, 1, 0)
chkPipe.Value = IIf(frmPassGen.usePipe = 1, 1, 0)
chkRightBrace.Value = IIf(frmPassGen.useRightBrace = 1, 1, 0)
chkTilde.Value = IIf(frmPassGen.useTilde = 1, 1, 0)
' `-> ASCII table order.
End Sub
Private Sub Form_Terminate()
End
' `-> I doubt this has any use; but just incase...
End Sub
Private Sub Form_Unload(Cancel As Integer)
frmPassGen.makeSpecialString
End Sub
' EOF