-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.ahk
3860 lines (3222 loc) · 65.5 KB
/
main.ahk
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
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#SingleInstance
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#InstallKeybdHook
;#IfWinActive, Cook`, Serve`, Delicious!
; To Add: Initial IF statements to go to individual food labels. Add color pixel value for 2nd step pasta cooking process.
; double check verification process for pasta
;Check Sushi THEMIX and check errors
;========START UP COMMANDS==============
Startup:
; Always run script as admin
if not A_IsAdmin
{
Run *RunAs "%A_ScriptFullPath%" ; Requires v1.0.92.01+
ExitApp
}
IniRead, OCR_exe, settings.ini, Settings, OCR_exe ;Check saved states in the ini file
IniRead, Dishwasher, settings.ini, Settings, Dishwasher
IniRead, Garbage, settings.ini, Settings, Garbage
IniRead, user_Hotkey, settings.ini, Settings, user_Hotkey
IniRead, user_Speed, settings.ini, Settings, user_Speed
If (Dishwasher = 1) ;Check the save state of the difficulty level
Dishwasher = Checked ;If difficulty was checked before. Re-load variable as Checked
else if (Dishwasher = 0)
Dishwasher =
If (Garbage = 1) ;Check the save state of the garbage upgrade
Garbage = Checked ;If garbage was checked before. Re-load variable as Checked
else if (Garbage = 0)
Garbage =
;=====GUI MENU=====
Menu, SubMenuFile, Add, &About, AboutMenu
Menu, SubMenuFile, Icon, &About, shell32.dll, 24
Menu, SubMenuFile, Add, End and Close Script`tAlt+F4, Guiclose
Menu, SubMenuFile, Icon, End and Close Script`tAlt+F4, shell32.dll, 28
Menu, FileMenu, Add, &File, :SubMenuFile
Gui Menu, FileMenu
Gui Font, Bold Underline, Verdana
Gui Add, Text, x8 y8 w144 h23 +0x200, Macro Settings
Gui Font
Gui Add, CheckBox, %Dishwasher% x16 y40 w150 h23 vuser_Dishwasher, Dishwasher Upgrade
Gui Add, CheckBox, %Garbage% x16 y62 w120 h23 vuser_Garbage, Garbage Upgrade
Gui Add, Text, x16 y93 w120 h20 +0x200, Capture2Text Executable File:
Gui Add, Edit, x16 y116 w198 h20 vOCR_exe, %OCR_exe%
Gui Add, Button, x216 y116 w80 h20, Browse...
Gui Add, Text, x55 y150 w150 h20 +0x200, Choose Hotkey to run macro
Gui Add, Text, x55 y180 w150 h20 +0x200, Hotkey delay (milliseconds)
Gui Add, Hotkey, x16 y150 w30 h20 vuser_Hotkey, %user_Hotkey%
Gui Add, Edit, x16 y180 w30 h20 vuser_Speed Limit4 Number, %user_Speed%
Gui Add, Text, x17 y220 w300 h15 +0x200, Check Readme file before running the program!
Gui Add, Text, x17 y235 w300 h15 +0x200, CSD OCR is a script that uses Optical Character
Gui Add, Text, x17 y250 w300 h15 +0x200, Recognition (OCR) software to run macros.
Gui Add, Button, guser_Close x105 y280 w100 h35, Save Settings and Run Script
Gui Add, StatusBar,, CSD OCR 1.0
Gui Add, Picture, x160 y16 w127 h74, CSD_Logo.png
Gui Show, w310 h350, CSD OCR Configuration
If Dishwasher = Checked ;Reconvert difficulty variable back to binary
user_Dishwasher = 1
else if (Dishwasher = "")
user_Dishwasher = 0
If Garbage = Checked ;Reconvert difficulty variable back to binary
user_Garbage = 1
else if (Garbage = "")
user_Garbage = 0
Return
AboutMenu:
{
Msgbox, 4096, About CSD OCR, CSD OCR Version 1.0`nCreated by Esparko`nhttps://github.com/Esparko/
Return
}
ButtonBrowse...:
{
FileSelectFile, user_OCR_exe, 3, Select file,
If (user_OCR_exe = "")
{
OCR_exe = %OCR_exe%
Return
}
else
{
IniWrite, %user_OCR_exe%, settings.ini, Settings, OCR_exe
IniRead, OCR_exe, settings.ini, Settings, OCR_exe
Msgbox, 4096, CSD OCR ,New path is %OCR_exe%
GuiControl,,OCR_exe, %OCR_exe%
}
}
Return
CloseMenu:
Gui, Submit, NoHide ;this command submits the guis' datas' state
If user_Dishwasher = 1
{
IniWrite, 1, settings.ini, Settings, Dishwasher
IniWrite, %user_Hotkey%, settings.ini, Settings, user_Hotkey
Gui Destroy
Return
}
If user_Dishwasher = 0
{
;Msgbox user_Difficulty variable is %user_Difficulty%
;Msgbox DEBUG: Line 104: Close button clicked
IniWrite, 0, settings.ini, Settings, Dishwasher
IniWrite, %user_Hotkey%, settings.ini, Settings, user_Hotkey
;Msgbox Difficulty variable is %user_Difficulty%
}
IfWinNotExist, Cook`, Serve`, Delicious!
{
Msgbox, 4096, CSD OCR, Error! Please start Cook, Serve, Delicious! before running script.
Return
}
IfWinExist, Cook`, Serve`, Delicious!
{
WinMinimize, CSD OCR Configuration
;Gui Destroy
Return
}
user_Close:
Gui, Submit, NoHide ;this command submits the GUIs' datas' state
If user_Garbage = 1
IniWrite, 1, settings.ini, Settings, Garbage
else if user_Garbage = 0
IniWrite, 0, settings.ini, Settings, Garbage
If user_Dishwasher = 1
{
;Msgbox DEBUG: User hotkey is %user_Hotkey%
IniWrite, 1, settings.ini, Settings, Dishwasher
;Gui Destroy
}
else if user_Dishwasher = 0
{
;Msgbox DEBUG: Line 133: user_Difficulty variable is %user_Dishwasher%
IniWrite, 0, settings.ini, Settings, Dishwasher
}
IfWinNotExist, Cook`, Serve`, Delicious!
{
IniWrite, %user_Hotkey%, settings.ini, Settings, user_Hotkey
IniWrite, %user_Speed%, settings.ini, Settings, user_Speed
Msgbox, 4096, CSD OCR, Error! Please start Cook, Serve, Delicious! before running script.
Return
}
IfWinExist, Cook`, Serve`, Delicious!
{
WinMinimize, CSD OCR Configuration
;Msgbox DEBUG: Close button clicked
IniWrite, %user_Hotkey%, settings.ini, Settings, user_Hotkey
IniWrite, %user_Speed%, settings.ini, Settings, user_Speed
;Msgbox DEBUG: Line 148: user_Dishwasher variable is %user_Difficulty%
;Gui Destroy
Goto, CSDConfigure
Return
}
Return
MenuHandler:
Return
GuiEscape:
GuiClose:
Process, Close, Capture2Text.exe
ExitApp
;================INITIAL SET UP========================
;The macro works with relative pixel location so the window needs to be a specific size.
;If the window is not 1302x776 it will be resized.
;The script will also check if Capture2Text is currently running as it is required.
;ESC:: ;Debugging Purposes
; ExitApp
CSDConfigure:
Hotkey, %user_Hotkey%, Macro ;Declaring saved custom user input as a hotkey and will trigger 'Macro' label
IfWinExist, Cook`, Serve`, Delicious! ;Get current state of CSD window
{
WinActivate, Cook`, Serve`, Delicious!
WinGetPos, X, Y, Width, Height, Cook`, Serve`, Delicious!
}
If (Width != 1302 or Height != 776) ;Check resolution of CSD window
{
Msgbox, 4096, CSD OCR, Cook, Serve, Delicious! needs to be in 1302x776 for this script to work. This script will now resize the window automatically. If the window size is changed after this re-run script using the config window.
WinMove, Cook`, Serve`, Delicious!,,,,1302, 776
WinMove, Cook`, Serve`, Delicious!, 199, 110
;WinMove, Cook`, Serve`, Delicious!,, (A_ScreenWidth/2)-(Width/2), (A_ScreenHeight/2)-(Height/2)
}
Process, Exist, Capture2Text.exe ; check to see if Capture2Text.exe is running
{
If ! errorLevel ;Check for existance of exe. If NOT the same as errorLevel 0 (successful) then run this expression
{
IfExist, %OCR_exe%
{
Run *RunAs %OCR_exe%
Msgbox, 4096, CSD OCR, Capture2Text.exe not running! Enabling now...
Sleep 1500
MouseMove, 813, 18, 2 ;Top right corner of recipe title
Send, +{BS}
MouseMove, 1285, 86, 2
MouseClick left
Sleep 1500
IfWinExist, Capture2Text - OCR Text
WinMove, 1557, 829
}
IfNotExist, %OCR_exe%
{
Msgbox, 4096, CSD OCR, Capture2Text not found! Please locate Capture2Text.exe
FileSelectFile, user_OCR_exe, 3, Select file,
If (user_OCR_exe = "")
{
OCR_exe = %OCR_exe%
Gosub, Startup
Return
}
IniWrite, %user_OCR_exe%, settings.ini, Settings, OCR_exe
IniRead, OCR_exe, settings.ini, Settings, OCR_exe
Msgbox, 4096, CSD OCR, New path is %OCR_exe%
Run *RunAs %OCR_exe%
}
Return
}
else
{
Return
}
}
Return
;================IMAGE OCR ACQUISITION========================
Macro:
; Command to run OCR process
MouseMove, 288, 643, 2 ;Bottom Left Corner of recipe title
Send, +{BS} ;Command to start OCR process
MouseMove, 880, 606, 2 ;Top right corner of recipe title
MouseClick left ;Finalize selection for OCR
ClipWait,2
IfWinNotExist, Capture2Text - OCR Text
Sleep 1000
WinWait, Capture2Text - OCR Text ;Wait for OCR window to pop-up automatically
IfWinExist, Cook`, Serve`, Delicious!
WinActivate
OCR = %clipboard% ;Raw OCR text
;Msgbox DEBUG: Raw Clipboard contents is %OCR% ;TEST OCR OUTPUT
StringReplace, OCR, OCR, %A_Space%,,All ;Remove spaces from string
StringTrimLeft, OCR, OCR, 1 ;Trim One Character from left
StringTrimRight, OCR, OCR, 1 ;Trim one character from right
;Msgbox DEBUG: Cleaned Clipboard contents is %OCR% ;Msgbox to help debug OCR errors
;================FOOD TYPE LIST================
;This area is the first set of if commands that search for the food type labels
;to increase efficiency of the program
SetKeyDelay, %user_Speed%
WinActivate, Cook`, Serve`, Delicious!
CoordMode, Mouse, Window
PixelGetColor, color_FoodType, 507, 347
;Msgbox DEBUG: Line 288: Color value is %color_FoodType%
If color_FoodType = 0x13121A
{
;Msgbox StackedEnchiladas Detected
Goto StackedEnchiladas
}
If color_FoodType = 0x67675B
{
;Msgbox Kabob detected
Goto Kabob
}
If color_FoodType = 0xC6DBDC
Goto Pizza
If color_FoodType = 0x777A80
Goto Coffee
If color_FoodType = 0x12121A
Goto BananaFoster
If color_FoodType = 0x0E36A6
Goto Steak
If color_FoodType = 0x13151A
Goto Sushi
If color_FoodType = 0xB9B1B4
Goto IceCream
If color_FoodType = 0x8A8384
Goto Soups
If color_FoodType = 0x444B4F
Goto Soda
If color_FoodType = 0x969596
Goto ChickenBreast
If color_FoodType = 0xE5B696
Goto Lasagna
If color_FoodType = 0x6A6962
Goto FriedRice
If color_FoodType = 0x1345B2
Goto CornDog
If color_FoodType = 0x198C4E
Goto Salads
If color_FoodType = 0x7C7FC3
Goto Pretzels
If color_FoodType = 0x0F121C
Goto Beer
If color_FoodType = 0x85D2FA ;2nd stage of pasta prep
Goto Pasta
If color_FoodType = 0x589ABA
Goto BakedPotato
If color_FoodType = 0x1835B6
Goto BreakfastSandwich
If color_FoodType = 0x6CD3EC
Goto Lobster
If color_FoodType = 0x746D6E ;stove
{
PixelGetColor, color_FoodType, 1051, 179
;Msgbox hotkey color is %color_FoodType%
If color_FoodType = 0x3E5280
{
;Msgbox hotkey color is %color_FoodType%. LOBSTER STOVE
Goto Lobster
Return
}
If color_FoodType = 0x65A1DB
{
;Msgbox hotkey color is %color_FoodType%. PASTA STOVE
Goto Pasta
Return
}
Return
}
If color_FoodType = 0x464747
{
PixelGetColor, color_FoodType, 1051, 179
;Msgbox hotkey color is %color_FoodType%
If color_FoodType = 0x4454CD
{
;Msgbox hotkey color is %color_FoodType%. BURGER GRILL
Goto Burgers
}
If color_FoodType = 0x575B71
{
;Msgbox hotkey color is %color_FoodType%. NACHO GRILL
Goto Nachos
}
}
If color_FoodType = 0x464747
Goto Grill
If (OCR = "DeliciousLiteSopapillas" or OCR = "DeliciousSopapillas")
Goto Sopapillas
If (OCR = "WorkTicket(Clean)" or OCR = "WorkTicket(Dishes)" or OCR = "WorkTicket(Rodents)" or OCR = "WorkTicket(Trash)")
Goto Chores
If (OCR = "LiteFastFries" or OCR = "FastFries" or OCR = "ThickCutLiteFries" or OCR = "ThickCutFries")
Goto FrenchFries
If (OCR = "LeCheapValu-Wlne" or OCR = "LeCheapValu-Wine" or OCR = "CasuMarzu" or OCR = "SerpentBeard" or OCR = "Elk" or OCR = "DeckardVineyards")
Goto Wine
If (OCR = "HashPatties" or OCR = "LiteHashPatties")
Goto HashBrowns
If (OCR = "GreasyFriedChicken" or OCR = "GreasvFriedChicken" or OCR = "GoldenFriedChicken")
Goto FriedChicken
;================LASAGANA================
Lasagna:
If (OCR = "ClassicItalianLasagna" or OCR = "ClassicItalianLasaqna" or OCR = "ClassicltalianLasagna" or OCR = "ClassicltalianLasaqna" or OCR = "ClassicitalianLasaqna")
{
Send, pscrpscrpscr{enter}
Return
}
If (OCR = "MeatyRomeLasagna" or OCR = "MeatyRomeLasagqna" or OCR = "MeatyRomeLasaqna")
{
Send, psmcrpsmcrpscr{enter}
Return
}
If (OCR = "VegetableLasagna" or OCR = "VegetableLasaqna")
{
Send, psvcrpsvcrpscr{enter}
Return
}
If (OCR = "StuffedPizaLasagna" or OCR = "StuffedPizaLasaqna")
{
Send, psmcrpsvcrpscr{enter}
Return
}
;================FRIED RICE================
FriedRice:
If (OCR = "ClassicFriedRice")
{
Send, fpceo{enter}
Return
}
If (OCR = "LiteFriedRice")
{
Send, fpc{enter}
Return
}
If (OCR = "SourFriedRice")
{
Send, feo{enter}
Return
}
If (OCR = "SweetFriedRice")
{
Send, fpce{enter}
Return
}
If (OCR = "ClassicWhiteRice")
{
Send, wpceo{enter}
Return
}
If (OCR = "YellowWhiteRice")
{
Send, wen{enter}
Return
}
If (OCR = "CrunchyWhiteRice")
{
Send, weon{enter}
Return
}
If (OCR = "SpecialWhiteRice")
{
Send, wpceon{enter}
Return
}
If (OCR = "ClassicBrownRice")
{
Send, bpceo{enter}
Return
}
If (OCR = "DeluxeBrownRice")
{
Send, bpceonr{enter}
Return
}
If (OCR = "DelightWhiteRice")
{
Send, wpceonr{enter}
Return
}
If (OCR = "LiteRice")
{
Send, wnr{enter}
Return
}
If (OCR = "BrownSourRice")
{
Send, beo{enter}
Return
}
If (OCR = "OrientalShrimpRice")
{
Send, fpcers{enter}
Return
}
If (OCR = "OrientalChickenRice")
{
Send, fpcerk{enter}
Return
}
If (OCR = "OrientalBeefRice")
{
Send, fpcem{enter}
Return
}
If (OCR = "GourmetRice")
{
Send, fpceonrmk{enter}
Return
}
If (OCR = "EmperorFriedRice")
{
Send, fpceonrsmk{enter}
Return
}
If (OCR = "EmperorWhiteRice")
{
Send, wpceonrsmk{enter}
Return
}
If (OCR = "EmperorBrownRice")
{
Send, bpceonrsmk{enter}
Return
}
;================KABOB================
Kabob:
If (OCR = "ClassicKabob")
{
Send, tmtgkrgr{enter}
Return
}
If (OCR = "MeatyKabob")
{
Send, mtmkmkgk{enter}
Return
}
If (OCR = "PepperKabob")
{
Send, grtgrmgr{enter}
Return
}
If (OCR = "RedKabob")
{
Send, trmtrtgr{enter}
Return
}
If (OCR = "Kabobber")
{
Send, tmkgrtkm{enter}
Return
}
If (OCR = "ChickenKabob")
{
Send, ktktkgkr{enter}
Return
}
If (OCR = "OnionKabob")
{
Send, otokogor{enter}
Return
}
If (OCR = "TowerKabob")
{
Send, mgrokgro{enter}
Return
}
If (OCR = "TangyKabob" or OCR = "TangvKabob" or OCR = "TanqvKabob")
{
Send, otogorgr{enter}
Return
}
If (OCR = "JuicyKabob" or OCR = "JuicvKabob")
{
Send, mokmokgo{enter}
Return
}
If (OCR = "HawaiianKabob")
{
Send, optopkmk{enter}
Return
}
If (OCR = "PineappleKabob")
{
Send, ptpmpkpo{enter}
Return
}
If (OCR = "Kabomber")
{
Send, pmpkmorg{enter}
Return
}
If (OCR = "KabobSampler")
{
Send, ptpmkgro{enter}
Return
}
If (OCR = "SquashKabob")
{
Send, sgsrpsop{enter}
Return
}
If (OCR = "YellowKabob")
{
Send, spsmspkp{enter}
Return
}
If (OCR = "CrazyKabob" or OCR = "CrazvKabob")
{
Send, gosgoskt{enter}
Return
}
If (OCR = "KabobPlatter")
{
Send, ktkgrops{enter}
Return
}
If (OCR = "VeggieKabob")
{
Send, ozuozutg{enter}
Return
}
If (OCR = "AmericanKabob")
{
Send, susumkro{enter}
Return
}
If (OCR = "GreenKabob")
{
Send, kgzukgzu{enter}
Return
}
If (OCR = "OdessaKabob")
{
Send, mszmzmzu{enter}
Return
}
If (OCR = "KabobSpecial")
{
Send, tgputgpu{enter}
Return
}
If (OCR = "TomatoKabob")
{
Send, tmtuktzu{enter}
Return
}
;================PANCAKE================
If (OCR = "JuniorClassic")
{
Send, pmb{enter}
Return
}
If (OCR = "TripleMaple")
{
Send, pppmb{enter}
Return
}
If (OCR = "DualMapleStack")
{
Send, ppmb{enter}
Return
}
If (OCR = "JuniorRedberry" or OCR = "JuniorRedberrv")
{
Send, psb{enter}
Return
}
If (OCR = "TripleRedStack")
{
Send, pppsb{enter}
Return
}
If (OCR = "DoubleStrawberry" or OCR = "DoubleStrawberrv")
{
Send, ppsb{enter}
Return
}
If (OCR = "DrySingle" or OCR = "DrvSingle" or OCR = "DrvSingale" or OCR = "DrySinqle" or OCR = "DrySingale" or OCR = "DrvSinqle")
{
Send, pb{enter}
Return
}
If (OCR = "TripleDry" or OCR = "TripleDrv")
{
Send, pppb{enter}
Return
}
If (OCR = "DoubleDesert")
{
Send, ppb{enter}
Return
}
If (OCR = "JuniorBlueberry" or OCR = "JuniorBlueberrv")
{
Send, plb{enter}
Return
}
If (OCR = "BlueDoubleStack")
{
Send, pplb{enter}
Return
}
If (OCR = "TripleBerryBlue" or OCR = "TripleBerrvBlue")
{
Send, ppplb{enter}
Return
}
If (OCR = "TheLonelyPancake" or OCR = "TheLonelvPancake")
{
Send, p{enter}
Return
}
If (OCR = "JuniorPecan")
{
Send, peb{enter}
Return
}
If (OCR = "DoublePecanStack")
{
Send, ppeb{enter}
Return
}
If (OCR = "TriplePecanStack")
{
Send, pppeb{enter}
Return
}
If (OCR = "LiteDoublePecan")
{
Send, ppe{enter}
Return
}
If (OCR = "LiteMapleClassic")
{
Send, ppm{enter}
Return
}
;================BEER================
Beer:
If (OCR = "TheRichBrewsky" or OCR = "TheRichBrewskv")
{
Send, {down Down}
sleep 1300
Send, {down Up}{enter}
}
If (OCR = "TheBrewsky" or OCR = "TheBrewskv")
{
Send, {down Down}
sleep 1300
Send, {down Up}{enter}
}
;================CHICKEN BREAST=================
ChickenBreast:
If (OCR = "RichChickenBreast") ;Level 4
{
Send, tttttts{enter}
Return
}
If (OCR = "EdibleChickenBreast") ; Level 1 breast
{
Send, tttttts{enter}
Return
}
If (OCR = "PlumpChickenBreast")
{
Send, tttttts{enter}
Return
}
If (OCR = "ClassicChickenBreast")
{
Send, tttttts{enter}
Return
}
;================SODA FOUNTAIN=================
Soda:
If (OCR = "SmallCola")
{
Send, {down}i{enter}
Return
}
If (OCR = "SmallGrape")
{
Send, {right 2}{down}i{enter}
Return
}
If (OCR = "SmallDiet")
{
Send, {right 4}{down}i{enter}
Return
}
If (OCR = "SmallCola(noice)")
{
Send, {down}{enter}
Return
}
If (OCR = "SmallWater")
{
Send, {right 3}{down}i{enter}
Return
}
If (OCR = "SmallTea")
{
Send, {right}{down}i{enter}
Return
}
If (OCR = "MediumCola")
{
Send, {up}{down}i{enter}
Return
}
If (OCR = "MediumGrape")
{
Send, {up}{right 2}{down}i{enter}
Return
}
If (OCR = "MediumDiet")
{
Send, {up}{right 4}{down}i{enter}
Return
}
If (OCR = "MediumCola(noice)")
{
Send, {up}{down}{enter}
Return
}
If (OCR = "MediumWater")
{
Send, {up}{right 3}{down}i{enter}
Return
}
If (OCR = "MediumTea")
{
Send, {up}{right}{down}i{enter}
Return
}
If (OCR = "LargeCola" or OCR = "LameCola")
{
Send, {up 2}{down}i{enter}
Return
}
If (OCR = "LargeColaw/FlavorBlast" or OCR = "LameColaw/FlavorBlast")
{
Send, {up 2}{down}if{enter}
Return
}
If (OCR = "LargeGrape" or OCR = "LameGrape")
{
Send, {up 2}{right 2}{down}i{enter}
Return
}
If (OCR = "LargeGrapew/FlavorBlast" or OCR = "LameGrapew/FlavorBlast")
{
Send, {up 2}{right 2}{down}if{enter}
Return
}
If (OCR = "LargeDiet" or OCR = "LameDiet")
{
Send, {up 2}{right 4}{down}i{enter}
Return
}
If (OCR = "LargeDietw/FlavorBlast" or OCR = "LameDietw/FlavorBlast")
{
Send, {up 2}{right 4}{down}if{enter}
Return
}
If (OCR = "LargeCola(noice)" or OCR = "LameCola(noice)")
{
Send, {up 2}{down}{enter}
Return
}
If (OCR = "LargeWater" or OCR = "LameWater")
{
Send, {up 2}{right 3}{down}i{enter}
Return
}
If (OCR = "LargeTea" or OCR = "LameTea")
{
Send, {up 2}{right}{down}i{enter}
Return
}