-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfrmSearch.frm
8978 lines (8732 loc) · 362 KB
/
frmSearch.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
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "comdlg32.ocx"
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "mscomctl.ocx"
Begin VB.Form frmSearch
BorderStyle = 1 'Fixed Single
Caption = "StackView Search"
ClientHeight = 6630
ClientLeft = 45
ClientTop = 330
ClientWidth = 8760
Icon = "frmSearch.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MDIChild = -1 'True
MinButton = 0 'False
ScaleHeight = 6630
ScaleWidth = 8760
Begin VB.CommandButton TargetDeckButton
Height = 315
Left = 1440
TabIndex = 1
Top = 480
Width = 585
End
Begin MSComctlLib.ProgressBar SearchProgress
Height = 240
Left = 240
TabIndex = 54
Top = 3585
Visible = 0 'False
Width = 5700
_ExtentX = 10054
_ExtentY = 423
_Version = 393216
Appearance = 1
End
Begin MSComDlg.CommonDialog SearchCommonDialog
Left = 5775
Top = 60
_ExtentX = 847
_ExtentY = 847
_Version = 393216
End
Begin VB.Frame SearchItems
Height = 2655
Left = 90
TabIndex = 49
Top = 3915
Width = 8595
Begin VB.CheckBox SearchInFaroSpecialTopAll
Caption = "Check1"
Height = 240
Left = 5895
TabIndex = 29
TabStop = 0 'False
Top = 1455
Width = 210
End
Begin VB.CheckBox SearchInFaroSpecialTopInvAll
Caption = "Check1"
Height = 240
Left = 5895
TabIndex = 31
TabStop = 0 'False
Top = 1755
Width = 210
End
Begin VB.CheckBox SearchInFaroSpecialBottomAll
Caption = "Check1"
Height = 240
Left = 5895
TabIndex = 33
TabStop = 0 'False
Top = 2055
Width = 210
End
Begin VB.CheckBox SearchInFaroSpecialBottomInvAll
Caption = "Check1"
Height = 240
Left = 5895
TabIndex = 35
TabStop = 0 'False
Top = 2355
Width = 210
End
Begin VB.CheckBox SearchCutDeckPreciseAll
Caption = "Check1"
Height = 240
Left = 225
TabIndex = 5
TabStop = 0 'False
Top = 870
Width = 210
End
Begin VB.CheckBox SearchMoveCardAll
Caption = "Check1"
Height = 240
Left = 225
TabIndex = 7
TabStop = 0 'False
Top = 1170
Width = 210
End
Begin VB.CheckBox SearchRunSingleCardsAll
Caption = "Check1"
Height = 240
Left = 225
TabIndex = 9
TabStop = 0 'False
Top = 1470
Width = 210
End
Begin VB.CheckBox SearchRunSingleCardsInvAll
Caption = "Check1"
Height = 240
Left = 225
TabIndex = 11
TabStop = 0 'False
Top = 1770
Width = 210
End
Begin VB.CheckBox SearchShiftTopBlockAll
Caption = "Check1"
Height = 240
Left = 225
TabIndex = 14
TabStop = 0 'False
Top = 2070
Width = 210
End
Begin VB.CheckBox SearchShiftTopBlockInvAll
Caption = "Check1"
Height = 240
Left = 225
TabIndex = 15
TabStop = 0 'False
Top = 2370
Width = 210
End
Begin VB.CheckBox SearchOutFaroSpecialTopAll
Caption = "Check1"
Height = 240
Left = 3060
TabIndex = 19
TabStop = 0 'False
Top = 1455
Width = 210
End
Begin VB.CheckBox SearchOutFaroSpecialTopInvAll
Caption = "Check1"
Height = 240
Left = 3060
TabIndex = 21
TabStop = 0 'False
Top = 1755
Width = 210
End
Begin VB.CheckBox SearchOutFaroSpecialBottomAll
Caption = "Check1"
Height = 240
Left = 3060
TabIndex = 23
TabStop = 0 'False
Top = 2055
Width = 210
End
Begin VB.CheckBox SearchOutFaroSpecialBottomInvAll
Caption = "Check1"
Height = 240
Left = 3060
TabIndex = 25
TabStop = 0 'False
Top = 2355
Width = 210
End
Begin VB.CommandButton SearchUncheckAllButton
Caption = "Uncheck All"
Height = 315
Left = 7260
TabIndex = 37
Top = 225
Width = 1200
End
Begin VB.CheckBox SearchInFaroSpecialBottomInv
Caption = "In Faro Special Bottom Inv"
Height = 285
Left = 6120
TabIndex = 36
TabStop = 0 'False
Top = 2325
Width = 2415
End
Begin VB.CheckBox SearchInFaroSpecialBottom
Caption = "In Faro Special Bottom"
Height = 285
Left = 6120
TabIndex = 34
TabStop = 0 'False
Top = 2025
Width = 2190
End
Begin VB.CheckBox SearchInFaroSpecialTopInv
Caption = "In Faro Special Top Inv"
Height = 285
Left = 6120
TabIndex = 32
TabStop = 0 'False
Top = 1725
Width = 2190
End
Begin VB.CheckBox SearchInFaroSpecialTop
Caption = "In Faro Special Top"
Height = 285
Left = 6120
TabIndex = 30
TabStop = 0 'False
Top = 1425
Width = 2190
End
Begin VB.CheckBox SearchInFaroInverse
BackColor = &H00C0C0C0&
Enabled = 0 'False
Height = 285
Left = 6120
TabIndex = 52
TabStop = 0 'False
Top = 1125
Width = 195
End
Begin VB.CheckBox SearchInFaro
Enabled = 0 'False
Height = 285
Left = 6120
TabIndex = 51
TabStop = 0 'False
Top = 825
Width = 225
End
Begin VB.CheckBox SearchOutFaroSpecialBottomInv
Caption = "Out Faro Special Bottom Inv"
Height = 285
Left = 3285
TabIndex = 26
TabStop = 0 'False
Top = 2325
Width = 2445
End
Begin VB.CheckBox SearchOutFaroSpecialBottom
Caption = "Out Faro Special Bottom"
Height = 285
Left = 3285
TabIndex = 24
TabStop = 0 'False
Top = 2025
Width = 2190
End
Begin VB.CheckBox SearchOutFaroSpecialTopInv
Caption = "Out Faro Special Top Inv"
Height = 285
Left = 3285
TabIndex = 22
TabStop = 0 'False
Top = 1725
Width = 2190
End
Begin VB.CheckBox SearchOutFaroSpecialTop
Caption = "Out Faro Special Top"
Height = 285
Left = 3285
TabIndex = 20
TabStop = 0 'False
Top = 1425
Width = 2190
End
Begin VB.CheckBox SearchOutFaroInverse
Enabled = 0 'False
Height = 285
Left = 3285
TabIndex = 50
TabStop = 0 'False
Top = 1125
Width = 195
End
Begin VB.CheckBox SearchOutFaro
Enabled = 0 'False
Height = 285
Left = 3285
TabIndex = 39
TabStop = 0 'False
Top = 825
Width = 195
End
Begin VB.CheckBox SearchShiftTopBlockInv
Caption = "Shift Top Block Inv"
Height = 285
Left = 450
TabIndex = 16
TabStop = 0 'False
Top = 2340
Width = 2190
End
Begin VB.CheckBox SearchShiftTopBlock
Caption = "Shift Top Block"
Height = 285
Left = 450
TabIndex = 13
TabStop = 0 'False
Top = 2040
Width = 2190
End
Begin VB.CheckBox SearchRunSingleCardsInv
Caption = "Run Single Cards Inv"
Height = 285
Left = 450
TabIndex = 12
TabStop = 0 'False
Top = 1740
Width = 2190
End
Begin VB.CheckBox SearchRunSingleCards
Caption = "Run Single Cards"
Height = 285
Left = 450
TabIndex = 10
TabStop = 0 'False
Top = 1440
Width = 2190
End
Begin VB.CheckBox SearchMoveCard
Caption = "Move Card"
Height = 285
Left = 450
TabIndex = 8
TabStop = 0 'False
Top = 1140
Width = 2190
End
Begin VB.CheckBox SearchCutDeckPrecise
Caption = "Cut Deck Precise"
Height = 285
Left = 450
TabIndex = 6
TabStop = 0 'False
Top = 840
Width = 2190
End
Begin VB.CheckBox SearchOutFaroAll
Caption = " Out Faro"
Height = 240
Left = 3060
TabIndex = 17
TabStop = 0 'False
Top = 855
Width = 2085
End
Begin VB.CheckBox SearchOutFaroInverseAll
Caption = " Out Faro Inverse"
Height = 240
Left = 3060
TabIndex = 18
TabStop = 0 'False
Top = 1155
Width = 2175
End
Begin VB.CheckBox SearchInFaroAll
Caption = " In Faro"
Height = 240
Left = 5895
TabIndex = 27
TabStop = 0 'False
Top = 855
Width = 1965
End
Begin VB.CheckBox SearchInFaroInverseAll
Caption = " In Faro Inverse"
Height = 240
Left = 5895
TabIndex = 28
TabStop = 0 'False
Top = 1155
Width = 1950
End
Begin VB.Label Label8
Caption = "All | Specific"
BeginProperty Font
Name = "Arial Narrow"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 3075
TabIndex = 58
Top = 630
Width = 855
End
Begin VB.Label Label7
Caption = "All | Specific"
BeginProperty Font
Name = "Arial Narrow"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 5910
TabIndex = 57
Top = 630
Width = 855
End
Begin VB.Label Label6
Caption = "All | Specific"
BeginProperty Font
Name = "Arial Narrow"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 240
TabIndex = 56
Top = 630
Width = 855
End
Begin VB.Label Label5
Caption = "Identify Manipulations to Include in Search"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 345
Left = 135
TabIndex = 53
Top = 240
Width = 4395
End
End
Begin VB.TextBox SearchLevelsTextBox
Alignment = 2 'Center
Height = 315
Left = 1455
TabIndex = 4
Top = 1170
Width = 585
End
Begin VB.CommandButton StartDeckButton
Height = 315
Left = 1440
TabIndex = 0
Top = 105
Width = 585
End
Begin VB.CommandButton TransferToSession
Caption = "Transfer List to Sessions"
Height = 390
Left = 6210
TabIndex = 38
Top = 3480
Width = 2355
End
Begin VB.ListBox MatchListBox
Height = 2790
Left = 6075
TabIndex = 40
TabStop = 0 'False
Top = 540
Width = 2535
End
Begin VB.Frame SearchMatchFrame
BorderStyle = 0 'None
Height = 405
Left = 420
TabIndex = 59
Top = 765
Width = 4710
Begin VB.OptionButton SearchMatchPartialOption
Caption = "Partial Deck Match"
Height = 240
Left = 1965
TabIndex = 3
TabStop = 0 'False
Top = 90
Width = 2400
End
Begin VB.OptionButton SearchMatchWholeOption
Caption = "Whole Deck Match"
Height = 240
Left = 135
TabIndex = 2
TabStop = 0 'False
Top = 90
Value = -1 'True
Width = 1770
End
End
Begin VB.Line Line1
BorderColor = &H00808080&
X1 = 5820
X2 = 165
Y1 = 2355
Y2 = 2355
End
Begin VB.Label ProgressLabel
BeginProperty Font
Name = "Arial Narrow"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00C00000&
Height = 285
Left = 210
TabIndex = 63
Top = 2400
Width = 5580
End
Begin VB.Label ManipulationsLabel
Caption = "0"
ForeColor = &H00C00000&
Height = 255
Left = 4140
TabIndex = 62
Top = 1245
Width = 1875
End
Begin VB.Label Label14
Alignment = 1 'Right Justify
Caption = "Manipulations per Move"
Height = 285
Left = 2205
TabIndex = 61
Top = 1245
Width = 1785
End
Begin VB.Label TargetDeckLabel
Caption = "Set Start Deck"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00C00000&
Height = 300
Left = 2130
TabIndex = 45
Top = 525
Visible = 0 'False
Width = 3840
End
Begin VB.Shape Shape1
BorderColor = &H00808080&
Height = 1125
Left = 165
Top = 1575
Width = 5670
End
Begin VB.Label Label13
Alignment = 1 'Right Justify
Caption = "Elapsed Time"
Height = 285
Left = 240
TabIndex = 60
Top = 2100
Width = 1530
End
Begin VB.Image ContinueSearchToggle
Height = 600
Index = 0
Left = 2055
Picture = "frmSearch.frx":1CCA
Top = 2835
Width = 3750
End
Begin VB.Image ContinueSearchToggle
Height = 600
Index = 1
Left = 2055
Picture = "frmSearch.frx":2E3D
Top = 2835
Width = 3750
End
Begin VB.Label TimerResult
ForeColor = &H00C00000&
Height = 255
Left = 1920
TabIndex = 55
Top = 2100
Width = 3855
End
Begin VB.Image SearchToggle
Height = 600
Index = 3
Left = 225
Picture = "frmSearch.frx":3E21
Top = 2835
Visible = 0 'False
Width = 1740
End
Begin VB.Image SearchToggle
Height = 600
Index = 2
Left = 225
Picture = "frmSearch.frx":5190
Top = 2835
Visible = 0 'False
Width = 1740
End
Begin VB.Image SearchToggle
Height = 600
Index = 1
Left = 225
Picture = "frmSearch.frx":64E2
Top = 2835
Visible = 0 'False
Width = 1740
End
Begin VB.Image SearchToggle
Height = 600
Index = 0
Left = 225
Picture = "frmSearch.frx":77FF
Top = 2835
Width = 1740
End
Begin VB.Label SearchTimeLabel
ForeColor = &H00C00000&
Height = 300
Left = 1890
TabIndex = 48
Top = 1725
Width = 3855
End
Begin VB.Label Label4
Alignment = 1 'Right Justify
Caption = "Estimated Possible Search Time "
Height = 465
Left = 270
TabIndex = 47
Top = 1620
Width = 1530
End
Begin VB.Label Label3
Alignment = 1 'Right Justify
Caption = "Maximum Moves"
Height = 255
Left = 150
TabIndex = 46
Top = 1245
Width = 1230
End
Begin VB.Label StartDeckLabel
Caption = "Set Start Deck"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00C00000&
Height = 300
Left = 2115
TabIndex = 44
Top = 150
Visible = 0 'False
Width = 3870
End
Begin VB.Label Label2
Alignment = 1 'Right Justify
Caption = "Set Target Deck"
Height = 255
Left = 165
TabIndex = 43
Top = 525
Width = 1230
End
Begin VB.Label Label1
Alignment = 1 'Right Justify
Caption = "Set Start Deck"
Height = 255
Left = 150
TabIndex = 42
Top = 135
Width = 1230
End
Begin VB.Label MatchFoundLabel
Alignment = 2 'Center
Caption = "Match Found!"
BeginProperty Font
Name = "MS Sans Serif"
Size = 13.5
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 375
Left = 6045
TabIndex = 41
Top = 135
Visible = 0 'False
Width = 2535
End
Begin VB.Shape Shape2
BackColor = &H00C0C0C0&
BackStyle = 1 'Opaque
Height = 690
Left = 165
Top = 2790
Width = 5685
End
End
Attribute VB_Name = "frmSearch"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub AppendTrapFile()
Dim fso, txtfile
Set fso = CreateObject("Scripting.FileSystemObject")
Set txtfile = fso.OpenTextFile(TrapPathFinal, ForAppending)
txtfile.WriteLine ("Threshold: " & PartialMatchCounter)
For i% = 0 To MatchListBox.ListCount - 1
txtfile.WriteLine (MatchListBox.List(i%))
Next i%
txtfile.WriteBlankLines (1)
txtfile.Close
End Sub
Private Sub ContinueSearchToggle_MouseDown(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
ContinueSearchToggle(0).Visible = False
ContinueSearchToggle(1).Visible = True
End Sub
Private Sub ContinueSearchToggle_MouseUp(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
ContinueSearchToggle(0).Visible = False
ContinueSearchToggle(1).Visible = False
SearchToggle(0).Visible = False
SearchToggle(1).Visible = False
SearchToggle(2).Visible = True
SearchToggle(3).Visible = False
SearchToggle(0).Refresh
SearchToggle(1).Refresh
SearchToggle(2).Refresh
SearchToggle(3).Refresh
SearchingMode = True
SearchContinueReady = 0
'turn off search label
MatchFoundLabel.Visible = False
'disable the controls
SearchItems.Enabled = False
SearchLevelsTextBox.Enabled = False
StartDeckButton.Enabled = False
TargetDeckButton.Enabled = False
TransferToSession.Enabled = False
SearchCutDeckPrecise.Enabled = False
SearchMoveCard.Enabled = False
SearchRunSingleCards.Enabled = False
SearchRunSingleCardsInv.Enabled = False
SearchShiftTopBlock.Enabled = False
SearchShiftTopBlockInv.Enabled = False
SearchOutFaro.Enabled = False
SearchOutFaroInverse.Enabled = False
SearchOutFaroSpecialTop.Enabled = False
SearchOutFaroSpecialTopInv.Enabled = False
SearchOutFaroSpecialBottom.Enabled = False
SearchOutFaroSpecialBottomInv.Enabled = False
SearchInFaro.Enabled = False
SearchInFaroInverse.Enabled = False
SearchInFaroSpecialTop.Enabled = False
SearchInFaroSpecialTopInv.Enabled = False
SearchInFaroSpecialBottom.Enabled = False
SearchInFaroSpecialBottomInv.Enabled = False
SearchCutDeckPreciseAll.Enabled = False
SearchMoveCardAll.Enabled = False
SearchRunSingleCardsAll.Enabled = False
SearchRunSingleCardsInvAll.Enabled = False
SearchShiftTopBlockAll.Enabled = False
SearchShiftTopBlockInvAll.Enabled = False
SearchOutFaroAll.Enabled = False
SearchOutFaroInverseAll.Enabled = False
SearchOutFaroSpecialTopAll.Enabled = False
SearchOutFaroSpecialTopInvAll.Enabled = False
SearchOutFaroSpecialBottomAll.Enabled = False
SearchOutFaroSpecialBottomInvAll.Enabled = False
SearchInFaroAll.Enabled = False
SearchInFaroInverseAll.Enabled = False
SearchInFaroSpecialTopAll.Enabled = False
SearchInFaroSpecialTopInvAll.Enabled = False
SearchInFaroSpecialBottomAll.Enabled = False
SearchInFaroSpecialBottomInvAll.Enabled = False
SearchMatchFrame.Enabled = False
'SearchMatchWholeOption.Enabled = False
'SearchMatchPartialOption.Enabled = False
'start the progress bar and timer
SearchProgress.Value = 0
SearchProgress.Max = 100
SearchProgress.Visible = True
'start timer -- this is for my debugging and procedure time comparisons only
SearchStartTime = Timer
'RUN THE SEARCH
SearchCurrentLevel = SearchCurrentLevelRestart
ShowProgress
SearchTransactionRun
'check for a threshold trap pause (allow continue)
If PartialMatchFound = 1 Then
SearchToggle(0).Visible = True
SearchToggle(1).Visible = False
SearchToggle(2).Visible = False
SearchToggle(3).Visible = False
ContinueSearchToggle(0).Visible = True
ContinueSearchToggle(1).Visible = False
SearchContinueReady = 1
SearchSaved = 0
SearchCurrentLevelRestart = SearchCurrentLevel
PartialMatchFound = 0
End If
'stop timer
If Timer < SearchStartTime Then
SearchStartTime = SearchStartTime - 86400
'error condition is test crosses midnight
End If
SearchElapsedTime = SearchElapsedTime + Timer - SearchStartTime
'TimerResult.Caption = Int(SearchElapsedTime / 60) & " min. " & _
Round((SearchElapsedTime Mod 60), 1) & " sec."
ShowElapsedTime
're-enable the controls
SearchItems.Enabled = True
SearchLevelsTextBox.Enabled = True
StartDeckButton.Enabled = True
TargetDeckButton.Enabled = True
TransferToSession.Enabled = True
SearchCutDeckPrecise.Enabled = True
SearchMoveCard.Enabled = True
SearchRunSingleCards.Enabled = True
SearchRunSingleCardsInv.Enabled = True
SearchShiftTopBlock.Enabled = True
SearchShiftTopBlockInv.Enabled = True
SearchOutFaro.Enabled = False
SearchOutFaroInverse.Enabled = False
SearchOutFaroSpecialTop.Enabled = True
SearchOutFaroSpecialTopInv.Enabled = True
SearchOutFaroSpecialBottom.Enabled = True
SearchOutFaroSpecialBottomInv.Enabled = True
SearchInFaro.Enabled = False
SearchInFaroInverse.Enabled = False
SearchInFaroSpecialTop.Enabled = True
SearchInFaroSpecialTopInv.Enabled = True
SearchInFaroSpecialBottom.Enabled = True
SearchInFaroSpecialBottomInv.Enabled = True
SearchCutDeckPreciseAll.Enabled = True
SearchMoveCardAll.Enabled = True
SearchRunSingleCardsAll.Enabled = True
SearchRunSingleCardsInvAll.Enabled = True
SearchShiftTopBlockAll.Enabled = True
SearchShiftTopBlockInvAll.Enabled = True
SearchOutFaroAll.Enabled = True
SearchOutFaroInverseAll.Enabled = True
SearchOutFaroSpecialTopAll.Enabled = True
SearchOutFaroSpecialTopInvAll.Enabled = True
SearchOutFaroSpecialBottomAll.Enabled = True
SearchOutFaroSpecialBottomInvAll.Enabled = True
SearchInFaroAll.Enabled = True
SearchInFaroInverseAll.Enabled = True
SearchInFaroSpecialTopAll.Enabled = True
SearchInFaroSpecialTopInvAll.Enabled = True
SearchInFaroSpecialBottomAll.Enabled = True
SearchInFaroSpecialBottomInvAll.Enabled = True
SearchingMode = False
SearchToggle(0).Visible = True
SearchToggle(1).Visible = False
SearchToggle(2).Visible = False
SearchToggle(3).Visible = False
SearchProgress.Visible = False
'SearchMatchWholeOption.Enabled = True
'SearchMatchPartialOption.Enabled = True
SearchMatchFrame.Enabled = True
End Sub
Private Sub Form_Load()
SuspendTrapFinal = True
ManipulationsPerSecond = 4000
SpeedMod = 750
MatchFound = 0
NoMatchFound = 0
ThresholdMatchCards = 0
TrapThreshold = False
WholeDeckMatchSet = True
PartialMatchFound = 0
PartialMatchCounter = 0
SearchContinueReady = 0
SearchSpecialCancel = False
SearchProgress.Visible = False
SearchingMode = False
'LoadManipulations
SearchToggle(0).Visible = True
SearchToggle(1).Visible = False
SearchToggle(2).Visible = False
SearchToggle(3).Visible = False
ContinueSearchToggle(0).Visible = False
ContinueSearchToggle(1).Visible = False
SearchMatchStartCard = 1
SearchMatchEndCard = 52
SearchLevelsTextBox.Text = 1
'set the default level depth to 1
SearchTimeLabel.Caption = Empty
ManipulationsLabel.Caption = "0"
SearchCounter = 1
'set the counter to the initial position for it's use in the Manipulations array
SearchCounterMax = 0
'set the max value for SearchCounter. It will be increased based on what is checked
SearchCDPMin = 0
SearchCDPMax = 0
SearchCDP = 0
SearchRSC = 0
SearchRSCMin = 0
SearchRSCMax = 0
SearchRSCR = 0
SearchRSCRMin = 0
SearchRSCRMax = 0
SearchMC1Min = 0
SearchMC2Min = 0
SearchMC1Max = 0
SearchMC2Max = 0
SearchMC = 0
SearchSTB1Min = 0
SearchSTB2Min = 0
SearchSTB1Max = 0
SearchSTB2Max = 0
SearchSTB = 0
SearchSTBR1Min = 0
SearchSTBR2Min = 0
SearchSTBR1Max = 0
SearchSTBR2Max = 0
SearchSTBR = 0
SearchOFST1Min = 0
SearchOFST2Min = 0
SearchOFST1Max = 0
SearchOFST2Max = 0
SearchOFST = 0
SearchOFSTR1Min = 0
SearchOFSTR2Min = 0
SearchOFSTR1Max = 0
SearchOFSTR2Max = 0
SearchOFSTR = 0
SearchOFSB1Min = 0
SearchOFSB2Min = 0
SearchOFSB1Max = 0
SearchOFSB2Max = 0
SearchOFSB = 0
SearchOFSBR1Min = 0
SearchOFSBR2Min = 0
SearchOFSBR1Max = 0
SearchOFSBR2Max = 0
SearchOFSBR = 0
SearchIFST1Min = 0
SearchIFST2Min = 0
SearchIFST1Max = 0
SearchIFST2Max = 0
SearchIFST = 0
SearchIFSTR1Min = 0
SearchIFSTR2Min = 0
SearchIFSTR1Max = 0
SearchIFSTR2Max = 0
SearchIFSTR = 0