-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmacro_core.py
More file actions
1293 lines (1145 loc) · 60.3 KB
/
macro_core.py
File metadata and controls
1293 lines (1145 loc) · 60.3 KB
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
import threading
import time
from pynput import mouse, keyboard
from pynput.keyboard import Key
import input_utils
import random
from crosshair_overlay import CrosshairOverlay, SHAPE_CROSS
from screen_ocr import ScreenOCR
from color_picker_overlay import select_region, pick_color
import input_utils
class MacroCore:
def __init__(self):
# Recoil Settings
self.recoil_enabled = False
self.recoil_speed_y = 5
self.recoil_speed_x = 0
self.recoil_delay = 0.01
self.recoil_active = False
self.recoil_mode = 0 # 0: LMB, 1: LMB + RMB
# Auto Clicker Settings
self.autoclicker_enabled = False
self.autoclicker_delay = 0.1
# Keyboard Macro Settings
self.kb_macro_enabled = False
self.kb_macro_key = 0x1E
self.kb_macro_delay = 0.1
self.kb_macro_active = False
# Anti-AFK Settings
self.antiafk_enabled = False
self.antiafk_magnitude = 50
self.antiafk_interval = 30.0
# Camera Spin Settings
self.cameraspin_enabled = False
self.cameraspin_speed = 5
self.cameraspin_direction = 0
# Human Typer Settings
self.humantyper_active = False
self.humantyper_wpm_min = 40
self.humantyper_wpm_max = 80
self.humantyper_error_rate = 2
self.humantyper_correction_speed = 100
self.humantyper_max_typos = 1
self.humantyper_typo_mode = 0
self.humantyper_pause_min = 500
self.humantyper_pause_max = 2000
self.humantyper_pause_freq = 10
self.humantyper_synonym_enabled = False
self.humantyper_synonym_freq = 5
self.humantyper_sentence_pause_enabled = True
self.humantyper_sentence_pause_freq = 80
self.humantyper_sentence_pause_min = 300
self.humantyper_sentence_pause_max = 1000
self.humantyper_para_pause_enabled = True
self.humantyper_para_pause_freq = 90
self.humantyper_para_pause_min = 500
self.humantyper_para_pause_max = 2000
self.humantyper_text = ""
self.humantyper_paused = False
self.humantyper_token_index = 0
self.on_humantyper_pause = None
self.humantyper_special_char_delay_enabled = False
self.humantyper_crashout_enabled = False
self.humantyper_crashout_count = 1
self.humantyper_nihilism_enabled = False
self.humantyper_nihilism_count = 1
self.humantyper_vamp_enabled = False
self.humantyper_vamp_count = 1
self.humantyper_typealong_enabled = False
self._typealong_event = threading.Event()
# Crosshair Overlay Settings
self.crosshair_enabled = False
self.crosshair_shape = 0 # SHAPE_CROSS
self.crosshair_color = (0, 255, 0) # Green
self.crosshair_size = 10
self.crosshair_thickness = 2
self.crosshair_opacity = 100
self.crosshair_gap = 3
self.crosshair_dot = True
self.crosshair_outline = True
self.crosshair_overlay = CrosshairOverlay()
self.on_crosshair_toggle = None
# Screen OCR
self.screen_ocr = ScreenOCR()
self.on_ocr_capture = None # callback(text) from UI
# Color Clicker Settings
self.colorclicker_enabled = False
self.colorclicker_region = None # (x1, y1, x2, y2) screen coords
self.colorclicker_color = (255, 0, 0) # RGB target color
self.colorclicker_tolerance = 30 # Euclidean RGB tolerance (0-150)
self.colorclicker_delay = 0.0 # Seconds to wait after detection
self.colorclicker_scan_interval = 0.05 # Seconds between scans
self.on_colorclicker_toggle = None
self._colorclicker_last_click = 0.0 # Timestamp of last click (cooldown)
self.colorclicker_use_preset_pos = False # If True, click at a fixed screen position
self.colorclicker_click_pos = None # (x, y) preset click coordinate
self.nihilism_phrases = [
"omggggg bro i hate writing this",
"wat even is the point of writing this",
"i dont even know why im writing ts",
"bro would the world rlly be any different if i wrote this",
"man theres no point in writing this",
"fml bro i cannot write ts",
"bro writing ts genuinely pmo",
"ts is gon take forever to write omgggggggggggg",
"when can i actually finish this and enjoy my life bro",
"why tf am i even writing this",
"bro i suck at writing when can i stop :(((",
"i should be sleeping rn",
"i couldve been playing games rn",
"my bed is calling me fr",
"bro i started this so long ago and im not even halfway",
"how is this still not enough words wtf",
"i hate my past self for procrastinating",
"why did i do this to myself",
"shouldve just took the L on this assignment",
"bro i need a break so bad",
"can my brain like function pls",
"im so cooked if this isnt good",
"teachers dont even grade fairly anyway",
"bro does anyone even read these",
"whats the point of anything fr",
"why do we even have to write ts bro its pointless",
"this assignment is not gon change my life bro",
"nobody cares abt this topic fr",
"in 100 years none of this will matter",
"we all die anyway why am i writing this",
"the universe is infinite and im writing abt ts",
"bro ts is so meaningless",
"50 years from now nobody will remember ts essay existed"
]
self.humantyper_vamp_enabled = False
self.vamp_lyrics = [
"i told my boy go rollup ten blunts for meeee",
"SEEEEEEYAHHHHHH",
"SLAT SLATTTTT SLATTTT",
"2024 MUSICC",
"bah bah bahh",
"RACKS ALL IN MY JEANNNS AND THEY RAF SIMONSSSS",
"YSL 4LLLL",
"I RATHERRR LIE THAN TO LOSEEEEE U GRILLLL",
"MONEY SITTING TALL YAO MINGGGG",
"VWAHHHHHHH",
"weeee lit bruhhh",
"whole lotta ho whole lotta reddddd",
"YOOO PIERRE U WANNA COME OUT HEREEEEE?",
"INNNN NY I MILLY ROCKKKKK",
"i mix allof my problem with prometh till i rollon my deathbedddd",
"LOOOK AT THESE DIAMONDS THEY SHINING LOOK AT THESE BIH THEY LYINGGGG",
"money ontop of me money ontop herrrr",
"DONT SAY YOUD DIE FOR ME LIL BIH JUST DIEEEEEEE",
"TWO TONE YELLOW APEEZY LOOKIN LIKE WHEEZYYYY",
"sick bih sick kid lifes crazy scaryyyy",
"IM IN LUV WITH THE GUAP GIVE IT A WEDDING RINGGGGG",
"shoutout gigi that my boo she know that i claimmmm",
"BAHHH BAHH BAHH BAHHH BAHHH BAHHHB",
"yo pierreee that my slatttttt",
"CARTI AND KP YEHHH THATS LIKE CARTI AND PIERREEEE",
"SWAMP IZZOOOO",
"seeeyah seeyah",
"WRIST IN THE FREEZER IMA CRASHOUT CUS U MINEEE",
"I CANT COME TO UR PARTY IMA COME JUST TO HURT U SEEYAHHHH",
"IMA SOUTHSIDE BABI IM OUTTA CONTROLLLL",
"ME N U GOT NTHING IN COMMONN",
"posted up w my dogs scooby doo typeeeee",
"I WAS IN THE SPOT YESTERDAY W MY POPS MY GRANDMA STILL PLAY BINGOOO",
"before im dyinnnnn everyday im dyinnnnn everyday im dying for luv",
"TURN THAT TAKE THAT AUTOTUNE OFFF",
"what what u cannot hopin my carrrr",
"LIKE IM TOOLIT LIKE OM GAWDDD"
"WE AINT GOT TIMEEEE I DROPP MY DEMONS OFFFF",
"16 29 THROW IT UP THROW IT UP THROW IT UPPPPPP",
"IVE BEEN WINNING ALLDAY I NEED A PITSTOPPP"
]
self.synonym_dict = {
'good': ['great', 'nice', 'fine', 'excellent', 'wonderful', 'fantastic'],
'bad': ['terrible', 'awful', 'poor', 'horrible', 'dreadful', 'lousy'],
'big': ['large', 'huge', 'massive', 'enormous', 'giant', 'vast'],
'small': ['tiny', 'little', 'mini', 'compact', 'petite', 'slight'],
'fast': ['quick', 'rapid', 'speedy', 'swift', 'hasty', 'brisk'],
'slow': ['sluggish', 'gradual', 'leisurely', 'unhurried', 'lazy'],
'happy': ['glad', 'joyful', 'pleased', 'delighted', 'cheerful', 'content'],
'sad': ['unhappy', 'upset', 'down', 'gloomy', 'depressed', 'miserable'],
'smart': ['clever', 'intelligent', 'bright', 'wise', 'sharp', 'brilliant'],
'nice': ['pleasant', 'lovely', 'kind', 'friendly', 'agreeable', 'delightful'],
'easy': ['simple', 'effortless', 'straightforward', 'uncomplicated', 'basic'],
'hard': ['difficult', 'tough', 'challenging', 'demanding', 'tricky'],
'new': ['fresh', 'modern', 'recent', 'latest', 'novel', 'current'],
'old': ['ancient', 'aged', 'vintage', 'outdated', 'antique', 'elderly'],
'beautiful': ['gorgeous', 'stunning', 'lovely', 'pretty', 'attractive'],
'ugly': ['unattractive', 'hideous', 'unsightly', 'grotesque', 'plain'],
'strong': ['powerful', 'mighty', 'sturdy', 'robust', 'tough', 'solid'],
'weak': ['feeble', 'frail', 'fragile', 'delicate', 'flimsy'],
'hot': ['warm', 'heated', 'scorching', 'burning', 'boiling'],
'cold': ['cool', 'chilly', 'freezing', 'icy', 'frigid'],
'rich': ['wealthy', 'affluent', 'prosperous', 'loaded', 'well-off'],
'poor': ['broke', 'needy', 'impoverished', 'destitute'],
'young': ['youthful', 'juvenile', 'teenage', 'adolescent'],
'angry': ['mad', 'furious', 'irritated', 'annoyed', 'upset', 'enraged'],
'scared': ['afraid', 'frightened', 'terrified', 'fearful', 'nervous'],
'brave': ['courageous', 'bold', 'fearless', 'daring', 'valiant'],
'tired': ['exhausted', 'weary', 'fatigued', 'drained', 'sleepy'],
'hungry': ['starving', 'famished', 'ravenous', 'peckish'],
'thirsty': ['parched', 'dehydrated', 'dry'],
'busy': ['occupied', 'engaged', 'swamped', 'hectic'],
'quiet': ['silent', 'hushed', 'peaceful', 'calm', 'still'],
'loud': ['noisy', 'booming', 'deafening', 'thunderous'],
'clean': ['spotless', 'tidy', 'neat', 'pristine', 'immaculate'],
'dirty': ['filthy', 'grimy', 'messy', 'unclean', 'soiled'],
'wet': ['damp', 'moist', 'soaked', 'drenched', 'soggy'],
'dry': ['arid', 'parched', 'dehydrated', 'barren'],
'full': ['complete', 'filled', 'packed', 'stuffed', 'loaded'],
'empty': ['vacant', 'hollow', 'bare', 'blank', 'void'],
'dark': ['dim', 'shadowy', 'gloomy', 'murky', 'black'],
'bright': ['brilliant', 'radiant', 'vivid', 'luminous', 'shiny'],
'safe': ['secure', 'protected', 'guarded', 'sheltered'],
'dangerous': ['risky', 'hazardous', 'perilous', 'unsafe', 'treacherous'],
'true': ['correct', 'accurate', 'right', 'factual', 'genuine'],
'false': ['wrong', 'incorrect', 'untrue', 'fake', 'bogus'],
'strange': ['weird', 'odd', 'unusual', 'bizarre', 'peculiar'],
'normal': ['regular', 'ordinary', 'typical', 'standard', 'usual'],
'perfect': ['flawless', 'ideal', 'excellent', 'impeccable'],
'terrible': ['awful', 'dreadful', 'horrible', 'atrocious'],
'amazing': ['incredible', 'astonishing', 'remarkable', 'astounding'],
'boring': ['dull', 'tedious', 'monotonous', 'uninteresting'],
'interesting': ['fascinating', 'intriguing', 'engaging', 'captivating'],
'funny': ['hilarious', 'amusing', 'comical', 'humorous', 'witty'],
'serious': ['grave', 'solemn', 'earnest', 'stern', 'somber'],
'simple': ['basic', 'plain', 'straightforward', 'uncomplicated'],
'complex': ['complicated', 'intricate', 'elaborate', 'sophisticated'],
'cheap': ['inexpensive', 'affordable', 'economical', 'budget'],
'expensive': ['costly', 'pricey', 'premium', 'high-end'],
'important': ['crucial', 'vital', 'essential', 'key', 'significant'],
'different': ['distinct', 'unique', 'various', 'diverse', 'unlike'],
'same': ['identical', 'similar', 'equal', 'alike', 'matching'],
'certain': ['sure', 'confident', 'positive', 'definite'],
'possible': ['feasible', 'achievable', 'attainable', 'viable'],
'impossible': ['unachievable', 'unfeasible', 'hopeless'],
'real': ['genuine', 'authentic', 'actual', 'true', 'legitimate'],
'fake': ['counterfeit', 'phony', 'bogus', 'false', 'artificial'],
'like': ['enjoy', 'love', 'prefer', 'appreciate', 'fancy', 'adore'],
'want': ['need', 'desire', 'wish', 'require', 'crave', 'demand'],
'think': ['believe', 'consider', 'feel', 'suppose', 'reckon', 'assume'],
'know': ['understand', 'realize', 'recognize', 'comprehend', 'grasp'],
'see': ['notice', 'observe', 'view', 'spot', 'witness', 'perceive'],
'make': ['create', 'build', 'produce', 'craft', 'construct', 'form'],
'use': ['utilize', 'employ', 'apply', 'operate', 'handle'],
'get': ['obtain', 'acquire', 'receive', 'gain', 'fetch', 'grab'],
'help': ['assist', 'aid', 'support', 'guide', 'serve'],
'start': ['begin', 'commence', 'initiate', 'launch', 'kick off'],
'stop': ['halt', 'cease', 'end', 'quit', 'terminate', 'finish'],
'work': ['function', 'operate', 'perform', 'labor', 'toil'],
'change': ['modify', 'alter', 'adjust', 'update', 'revise', 'transform'],
'go': ['move', 'travel', 'proceed', 'head', 'advance'],
'come': ['arrive', 'approach', 'reach', 'appear', 'show up'],
'say': ['state', 'mention', 'declare', 'express', 'announce'],
'tell': ['inform', 'notify', 'explain', 'describe', 'relate'],
'ask': ['inquire', 'question', 'request', 'query'],
'try': ['attempt', 'endeavor', 'strive', 'aim'],
'give': ['provide', 'offer', 'donate', 'present', 'grant'],
'take': ['grab', 'seize', 'capture', 'acquire', 'accept'],
'find': ['discover', 'locate', 'uncover', 'detect', 'spot'],
'look': ['glance', 'stare', 'gaze', 'peer', 'watch'],
'put': ['place', 'set', 'position', 'lay', 'deposit'],
'run': ['sprint', 'dash', 'race', 'jog', 'rush'],
'walk': ['stroll', 'wander', 'march', 'pace', 'stride'],
'talk': ['speak', 'chat', 'converse', 'discuss', 'communicate'],
'eat': ['consume', 'devour', 'munch', 'chew', 'dine'],
'drink': ['sip', 'gulp', 'swallow', 'consume', 'guzzle'],
'sleep': ['rest', 'nap', 'doze', 'slumber', 'snooze'],
'read': ['study', 'browse', 'scan', 'peruse', 'review'],
'write': ['compose', 'draft', 'pen', 'author', 'inscribe'],
'buy': ['purchase', 'acquire', 'obtain', 'procure', 'get'],
'sell': ['trade', 'market', 'vend', 'retail', 'peddle'],
'pay': ['compensate', 'reimburse', 'remit', 'settle'],
'send': ['dispatch', 'transmit', 'forward', 'deliver', 'mail'],
'keep': ['retain', 'hold', 'maintain', 'preserve', 'store'],
'leave': ['depart', 'exit', 'abandon', 'vacate', 'go'],
'call': ['phone', 'contact', 'ring', 'dial', 'summon'],
'wait': ['pause', 'linger', 'stay', 'remain', 'hold on'],
'meet': ['encounter', 'greet', 'join', 'gather', 'assemble'],
'show': ['display', 'present', 'demonstrate', 'exhibit', 'reveal'],
'hide': ['conceal', 'cover', 'mask', 'obscure', 'bury'],
'break': ['shatter', 'smash', 'crack', 'fracture', 'destroy'],
'fix': ['repair', 'mend', 'restore', 'correct', 'patch'],
'hold': ['grasp', 'grip', 'clutch', 'clasp', 'carry'],
'carry': ['transport', 'haul', 'convey', 'bear', 'lug'],
'throw': ['toss', 'hurl', 'fling', 'pitch', 'cast'],
'catch': ['grab', 'snag', 'seize', 'snatch', 'capture'],
'push': ['shove', 'press', 'thrust', 'propel', 'drive'],
'pull': ['tug', 'drag', 'yank', 'haul', 'draw'],
'open': ['unlock', 'unseal', 'unfasten', 'uncover'],
'close': ['shut', 'seal', 'fasten', 'lock', 'secure'],
'turn': ['rotate', 'spin', 'twist', 'pivot', 'revolve'],
'cut': ['slice', 'chop', 'trim', 'carve', 'sever'],
'move': ['shift', 'transfer', 'relocate', 'budge', 'displace'],
'sit': ['rest', 'perch', 'settle', 'recline', 'squat'],
'stand': ['rise', 'erect', 'position', 'halt'],
'jump': ['leap', 'hop', 'skip', 'bounce', 'spring'],
'fall': ['drop', 'tumble', 'plunge', 'collapse', 'descend'],
'hit': ['strike', 'punch', 'slam', 'smack', 'whack'],
'kill': ['eliminate', 'destroy', 'slay', 'terminate'],
'die': ['perish', 'expire', 'pass away', 'decease'],
'live': ['exist', 'reside', 'dwell', 'inhabit', 'survive'],
'win': ['triumph', 'succeed', 'prevail', 'conquer'],
'lose': ['misplace', 'forfeit', 'surrender', 'fail'],
'play': ['perform', 'compete', 'engage', 'participate'],
'learn': ['study', 'discover', 'master', 'absorb', 'grasp'],
'teach': ['instruct', 'educate', 'train', 'coach', 'tutor'],
'grow': ['develop', 'expand', 'increase', 'mature', 'flourish'],
'build': ['construct', 'create', 'assemble', 'erect', 'establish'],
'destroy': ['demolish', 'wreck', 'ruin', 'devastate', 'annihilate'],
'save': ['rescue', 'preserve', 'protect', 'conserve', 'store'],
'spend': ['use', 'expend', 'consume', 'waste', 'invest'],
'choose': ['select', 'pick', 'decide', 'opt', 'prefer'],
'decide': ['determine', 'conclude', 'resolve', 'settle', 'choose'],
'feel': ['sense', 'perceive', 'experience', 'detect'],
'remember': ['recall', 'recollect', 'reminisce', 'retain'],
'forget': ['overlook', 'neglect', 'ignore', 'dismiss'],
'understand': ['comprehend', 'grasp', 'follow', 'fathom', 'get'],
'explain': ['describe', 'clarify', 'illustrate', 'elaborate'],
'agree': ['concur', 'accept', 'consent', 'approve', 'comply'],
'disagree': ['dispute', 'object', 'oppose', 'differ', 'reject'],
'allow': ['permit', 'enable', 'authorize', 'let', 'grant'],
'prevent': ['stop', 'block', 'hinder', 'obstruct', 'prohibit'],
'increase': ['raise', 'boost', 'enhance', 'expand', 'grow'],
'decrease': ['reduce', 'lower', 'diminish', 'shrink', 'cut'],
'improve': ['enhance', 'upgrade', 'better', 'refine', 'advance'],
'damage': ['harm', 'hurt', 'injure', 'impair', 'wreck'],
'follow': ['pursue', 'trail', 'track', 'chase', 'accompany'],
'lead': ['guide', 'direct', 'head', 'conduct', 'steer'],
'join': ['connect', 'unite', 'combine', 'merge', 'link'],
'separate': ['divide', 'split', 'detach', 'disconnect', 'part'],
'enter': ['access', 'join', 'penetrate', 'invade'],
'exit': ['leave', 'depart', 'withdraw', 'vacate'],
'attack': ['assault', 'strike', 'charge', 'raid', 'invade'],
'defend': ['protect', 'guard', 'shield', 'secure', 'safeguard'],
'problem': ['issue', 'trouble', 'difficulty', 'challenge', 'obstacle'],
'answer': ['response', 'reply', 'solution', 'explanation'],
'question': ['query', 'inquiry', 'issue', 'concern'],
'idea': ['thought', 'concept', 'notion', 'plan', 'suggestion'],
'thing': ['object', 'item', 'stuff', 'matter', 'entity'],
'place': ['location', 'spot', 'area', 'site', 'position'],
'time': ['moment', 'period', 'duration', 'occasion', 'instant'],
'way': ['method', 'manner', 'approach', 'path', 'means'],
'person': ['individual', 'human', 'someone', 'somebody', 'being'],
'people': ['individuals', 'folks', 'humans', 'persons', 'citizens'],
'friend': ['buddy', 'pal', 'companion', 'mate', 'ally'],
'enemy': ['foe', 'opponent', 'adversary', 'rival', 'nemesis'],
'money': ['cash', 'funds', 'currency', 'capital', 'wealth'],
'job': ['work', 'occupation', 'career', 'profession', 'position'],
'home': ['house', 'residence', 'dwelling', 'abode', 'place'],
'room': ['chamber', 'space', 'area', 'quarters'],
'car': ['vehicle', 'automobile', 'auto', 'ride', 'wheels'],
'food': ['meal', 'cuisine', 'nourishment', 'fare', 'grub'],
'water': ['liquid', 'fluid', 'beverage', 'drink'],
'game': ['match', 'contest', 'competition', 'sport', 'activity'],
'movie': ['film', 'picture', 'flick', 'feature', 'cinema'],
'book': ['novel', 'publication', 'text', 'volume', 'work'],
'story': ['tale', 'narrative', 'account', 'report', 'legend'],
'part': ['piece', 'section', 'portion', 'segment', 'component'],
'end': ['finish', 'conclusion', 'finale', 'termination', 'close'],
'beginning': ['start', 'opening', 'onset', 'origin', 'launch'],
'mistake': ['error', 'blunder', 'slip', 'fault', 'flaw'],
'chance': ['opportunity', 'possibility', 'occasion', 'shot'],
'reason': ['cause', 'motive', 'purpose', 'explanation', 'basis'],
'example': ['instance', 'sample', 'case', 'illustration', 'model'],
'fact': ['truth', 'reality', 'detail', 'data', 'evidence'],
'information': ['data', 'details', 'facts', 'intel', 'knowledge'],
'power': ['strength', 'force', 'energy', 'authority', 'control'],
'control': ['command', 'authority', 'power', 'dominion', 'rule'],
'result': ['outcome', 'consequence', 'effect', 'product'],
'success': ['achievement', 'victory', 'triumph', 'accomplishment'],
'failure': ['defeat', 'loss', 'flop', 'disaster', 'setback'],
'very': ['extremely', 'highly', 'really', 'incredibly', 'super'],
'really': ['truly', 'genuinely', 'actually', 'indeed', 'honestly'],
'always': ['constantly', 'forever', 'perpetually', 'continually'],
'never': ['not ever', 'at no time', 'not once'],
'often': ['frequently', 'regularly', 'commonly', 'repeatedly'],
'sometimes': ['occasionally', 'periodically', 'at times', 'now and then'],
'quickly': ['rapidly', 'swiftly', 'speedily', 'hastily', 'promptly'],
'slowly': ['gradually', 'leisurely', 'unhurriedly', 'steadily'],
'probably': ['likely', 'possibly', 'perhaps', 'maybe', 'presumably'],
'definitely': ['certainly', 'absolutely', 'surely', 'positively'],
'almost': ['nearly', 'practically', 'virtually', 'about', 'approximately'],
'completely': ['entirely', 'totally', 'fully', 'wholly', 'absolutely'],
'suddenly': ['abruptly', 'unexpectedly', 'instantly', 'immediately'],
'finally': ['eventually', 'ultimately', 'lastly', 'at last'],
'already': ['previously', 'before', 'by now', 'earlier'],
'still': ['yet', 'even now', 'nevertheless', 'however'],
'just': ['merely', 'simply', 'only', 'barely', 'exactly'],
'also': ['too', 'additionally', 'furthermore', 'moreover', 'besides'],
'only': ['just', 'merely', 'solely', 'simply', 'exclusively'],
'especially': ['particularly', 'specifically', 'notably', 'mainly'],
'usually': ['typically', 'normally', 'generally', 'commonly', 'ordinarily'],
'actually': ['really', 'truly', 'genuinely', 'in fact', 'indeed'],
'basically': ['essentially', 'fundamentally', 'primarily', 'mainly'],
'obviously': ['clearly', 'evidently', 'apparently', 'plainly'],
'exactly': ['precisely', 'accurately', 'specifically', 'correctly'],
'mainly': ['primarily', 'chiefly', 'mostly', 'largely', 'principally'],
'mostly': ['mainly', 'largely', 'primarily', 'chiefly', 'generally'],
'enough': ['sufficiently', 'adequately', 'amply', 'plenty'],
'together': ['jointly', 'collectively', 'mutually', 'as one'],
'alone': ['solo', 'independently', 'by oneself', 'solitary'],
}
self.mouse_pressed = False
self.right_mouse_pressed = False
self.custom_macros = []
self.on_recoil_toggle = None
self.on_autoclick_toggle = None
self.on_kb_toggle = None
self.on_antiafk_toggle = None
self.on_cameraspin_toggle = None
self.on_humantyper_toggle = None
self.on_key_bound = None
self.is_binding = False
self.on_action_recorded = None
self.is_recording_action = False
self.pressed_keys = set()
self.active_macro_triggers = set()
self.running = True
self.recoil_thread = threading.Thread(target=self._recoil_loop, daemon=True)
self.autoclicker_thread = threading.Thread(target=self._autoclicker_loop, daemon=True)
self.kb_macro_thread = threading.Thread(target=self._kb_macro_loop, daemon=True)
self.antiafk_thread = threading.Thread(target=self._antiafk_loop, daemon=True)
self.cameraspin_thread = threading.Thread(target=self._cameraspin_loop, daemon=True)
self.colorclicker_thread = threading.Thread(target=self._colorclicker_loop, daemon=True)
self.mouse_listener = mouse.Listener(on_click=self._on_click)
self.key_listener = keyboard.Listener(on_press=self._on_press, on_release=self._on_release)
def start(self):
self.recoil_thread.start()
self.autoclicker_thread.start()
self.kb_macro_thread.start()
self.antiafk_thread.start()
self.cameraspin_thread.start()
self.colorclicker_thread.start()
self.mouse_listener.start()
self.key_listener.start()
self.crosshair_overlay.start()
def set_callback(self, autoclick_callback, kb_callback, recoil_callback=None, antiafk_callback=None, cameraspin_callback=None, humantyper_callback=None, crosshair_callback=None, ocr_capture_callback=None, colorclicker_callback=None):
self.on_autoclick_toggle = autoclick_callback
self.on_kb_toggle = kb_callback
self.on_recoil_toggle = recoil_callback
self.on_antiafk_toggle = antiafk_callback
self.on_cameraspin_toggle = cameraspin_callback
self.on_humantyper_toggle = humantyper_callback
self.on_crosshair_toggle = crosshair_callback
self.on_ocr_capture = ocr_capture_callback
self.on_colorclicker_toggle = colorclicker_callback
def start_key_binding(self, callback):
self.on_key_bound = callback
self.is_binding = True
def start_action_recording(self, callback):
self.on_action_recorded = callback
self.is_recording_action = True
def stop_action_recording(self):
self.is_recording_action = False
self.on_action_recorded = None
def stop(self):
self.running = False
self._release_all_keys()
self.mouse_listener.stop()
self.key_listener.stop()
self.crosshair_overlay.stop()
def _release_all_keys(self):
for macro in self.custom_macros:
for sc in macro.get('actions', []):
try:
input_utils.release_key(int(sc))
except:
pass
common_keys = [0x1D, 0x2A, 0x36, 0x38]
for sc in common_keys:
try:
input_utils.release_key(sc)
except:
pass
def _update_recoil_active(self):
if self.recoil_mode == 0:
self.recoil_active = self.recoil_enabled and self.mouse_pressed
else:
self.recoil_active = self.recoil_enabled and self.mouse_pressed and self.right_mouse_pressed
def _on_click(self, x, y, button, pressed):
if self.is_binding and pressed:
btn_name = str(button).split('.')[-1]
if self.on_key_bound:
self.on_key_bound({'type': 'mouse', 'value': btn_name, 'name': f"Mouse {btn_name.title()}"})
self.is_binding = False
return
if pressed and self.humantyper_active and not self.humantyper_paused:
self.humantyper_paused = True
if self.on_humantyper_pause:
self.on_humantyper_pause(True)
if pressed and self.custom_macros:
btn_name = str(button).split('.')[-1]
for macro in self.custom_macros:
trig = macro.get('trigger')
if trig and trig['type'] == 'mouse' and trig['value'] == btn_name:
threading.Thread(target=self.execute_custom_macro, args=(macro['id'], macro['actions'],), daemon=True).start()
if not pressed and self.custom_macros:
btn_name = str(button).split('.')[-1]
for macro in self.custom_macros:
trig = macro.get('trigger')
if trig and trig['type'] == 'mouse' and trig['value'] == btn_name:
self.active_macro_triggers.discard(macro['id'])
if button == mouse.Button.left:
self.mouse_pressed = pressed
self._update_recoil_active()
elif button == mouse.Button.right:
self.right_mouse_pressed = pressed
self._update_recoil_active()
def _on_press(self, key):
if self.is_recording_action:
try:
if hasattr(key, 'vk'): sc = input_utils.get_scan_code(key.vk)
else: sc = input_utils.get_scan_code(key.value.vk)
if self.on_action_recorded:
self.on_action_recorded(sc)
except:
pass
return
if self.is_binding:
try:
if hasattr(key, 'vk'):
vk = key.vk
sc = input_utils.get_scan_code(vk)
name = key.char if hasattr(key, 'char') else str(vk)
else:
vk = key.value.vk
sc = input_utils.get_scan_code(vk)
name = key.name
trigger_data = {'type': 'key', 'value': sc, 'name': str(name).upper()}
if self.on_key_bound:
self.on_key_bound(trigger_data)
self.is_binding = False
except Exception as e:
print(f"Binding error: {e}")
self.is_binding = False
return
if self.custom_macros:
try:
if hasattr(key, 'vk'): sc = input_utils.get_scan_code(key.vk)
else: sc = input_utils.get_scan_code(key.value.vk)
if sc not in self.pressed_keys:
self.pressed_keys.add(sc)
for macro in self.custom_macros:
trig = macro.get('trigger')
if trig and trig['type'] == 'key' and int(trig['value']) == sc:
threading.Thread(target=self.execute_custom_macro, args=(macro['id'], macro['actions'],), daemon=True).start()
except:
pass
if key == Key.f4:
self.recoil_enabled = not self.recoil_enabled
self._update_recoil_active()
if self.on_recoil_toggle:
self.on_recoil_toggle(self.recoil_enabled)
return
if key == Key.f6:
self.autoclicker_enabled = not self.autoclicker_enabled
if self.on_autoclick_toggle:
self.on_autoclick_toggle(self.autoclicker_enabled)
return
if key == Key.f5:
self.kb_macro_enabled = not self.kb_macro_enabled
if self.on_kb_toggle:
self.on_kb_toggle(self.kb_macro_enabled)
return
if key == Key.f7:
self.antiafk_enabled = not self.antiafk_enabled
if self.on_antiafk_toggle:
self.on_antiafk_toggle(self.antiafk_enabled)
return
if key == Key.f8:
self.cameraspin_enabled = not self.cameraspin_enabled
if self.on_cameraspin_toggle:
self.on_cameraspin_toggle(self.cameraspin_enabled)
return
if key == Key.f9:
self.crosshair_enabled = not self.crosshair_enabled
if self.crosshair_enabled:
self.crosshair_overlay.show()
else:
self.crosshair_overlay.hide()
if self.on_crosshair_toggle:
self.on_crosshair_toggle(self.crosshair_enabled)
return
if key == Key.f10:
if self.on_ocr_capture:
self.on_ocr_capture()
return
if key == Key.f11:
self.colorclicker_enabled = not self.colorclicker_enabled
if self.on_colorclicker_toggle:
self.on_colorclicker_toggle(self.colorclicker_enabled)
return
def execute_custom_macro(self, macro_id, actions):
self.active_macro_triggers.add(macro_id)
try:
while macro_id in self.active_macro_triggers and self.running:
for sc in actions:
input_utils.press_key(int(sc))
time.sleep(0.05)
for sc in actions:
input_utils.release_key(int(sc))
time.sleep(0.05)
finally:
for sc in actions:
try:
input_utils.release_key(int(sc))
except:
pass
def update_custom_macros(self, macros):
self.custom_macros = macros
def _on_release(self, key):
try:
if hasattr(key, 'vk'): sc = input_utils.get_scan_code(key.vk)
else: sc = input_utils.get_scan_code(key.value.vk)
self.pressed_keys.discard(sc)
for macro in self.custom_macros:
trig = macro.get('trigger')
if trig and trig['type'] == 'key' and int(trig['value']) == sc:
self.active_macro_triggers.discard(macro['id'])
except:
pass
def _recoil_loop(self):
while self.running:
if self.recoil_active:
input_utils.move_relative(int(self.recoil_speed_x), int(self.recoil_speed_y))
time.sleep(self.recoil_delay)
else:
time.sleep(0.01)
def _autoclicker_loop(self):
was_enabled = False
while self.running:
if self.autoclicker_enabled:
if not was_enabled:
was_enabled = True
time.sleep(0.5)
input_utils.click()
time.sleep(self.autoclicker_delay)
else:
was_enabled = False
time.sleep(0.01)
def _kb_macro_loop(self):
while self.running:
if self.kb_macro_enabled:
input_utils.press_key(self.kb_macro_key)
time.sleep(0.05)
input_utils.release_key(self.kb_macro_key)
time.sleep(self.kb_macro_delay)
else:
time.sleep(0.01)
def _antiafk_loop(self):
import math
while self.running:
if self.antiafk_enabled:
angle = random.uniform(0, 2 * math.pi)
magnitude = self.antiafk_magnitude
dx_per_step = math.cos(angle)
dy_per_step = math.sin(angle)
step_size = random.randint(1, 3)
steps = int(magnitude / step_size)
for _ in range(steps):
if not self.antiafk_enabled or not self.running:
break
delay_per_step = random.uniform(0.001, 0.005)
move_x = int(round(dx_per_step * step_size))
move_y = int(round(dy_per_step * step_size))
input_utils.move_relative(move_x, move_y)
time.sleep(delay_per_step)
time.sleep(random.uniform(0.03, 0.08))
for _ in range(steps):
if not self.running:
break
delay_per_step = random.uniform(0.001, 0.005)
move_x = int(round(-dx_per_step * step_size))
move_y = int(round(-dy_per_step * step_size))
input_utils.move_relative(move_x, move_y)
time.sleep(delay_per_step)
time.sleep(self.antiafk_interval)
else:
time.sleep(0.1)
def _cameraspin_loop(self):
while self.running:
if self.cameraspin_enabled:
direction = 1 if self.cameraspin_direction == 0 else -1
input_utils.move_relative(self.cameraspin_speed * direction, 0)
time.sleep(0.01)
else:
time.sleep(0.1)
def _colorclicker_loop(self):
"""Background scanner: grabs a screenshot of the target region and
left-clicks when the target color is found within the given tolerance."""
try:
from PIL import ImageGrab
except ImportError:
return
import math
while self.running:
if not self.colorclicker_enabled or self.colorclicker_region is None:
time.sleep(0.05)
continue
try:
x1, y1, x2, y2 = self.colorclicker_region
# Grab just the region (fast)
region_img = ImageGrab.grab(bbox=(x1, y1, x2, y2))
tw, th = region_img.size
if tw == 0 or th == 0:
time.sleep(self.colorclicker_scan_interval)
continue
tr, tg, tb = self.colorclicker_color
tolerance = self.colorclicker_tolerance
found = False
# Sample pixels in a grid (every 3rd pixel) for performance
pixels = region_img.load()
step = max(1, min(tw, th) // 50) # adaptive step
for py in range(0, th, step):
for px in range(0, tw, step):
p = pixels[px, py]
pr, pg, pb = p[0], p[1], p[2]
dist = math.sqrt(
(pr - tr) ** 2 + (pg - tg) ** 2 + (pb - tb) ** 2
)
if dist <= tolerance:
found = True
break
if found:
break
if found:
# Enforce a brief cooldown so we don't spam clicks
now = time.time()
if now - self._colorclicker_last_click >= max(0.3, self.colorclicker_delay + 0.1):
if self.colorclicker_delay > 0:
time.sleep(self.colorclicker_delay)
# Confirm still enabled after delay
if self.colorclicker_enabled:
if self.colorclicker_use_preset_pos and self.colorclicker_click_pos:
# Save where the cursor currently is (physical, any monitor)
orig = input_utils.get_physical_cursor_pos()
cx, cy = self.colorclicker_click_pos
input_utils.click_at(cx, cy)
# Return cursor to its original position
input_utils.move_to(*orig)
else:
input_utils.click()
self._colorclicker_last_click = time.time()
except Exception:
pass
time.sleep(self.colorclicker_scan_interval)
def update_recoil(self, enabled, speed_y, speed_x, delay, mode):
self.recoil_enabled = enabled
self.recoil_speed_y = speed_y
self.recoil_speed_x = speed_x
self.recoil_delay = delay
self.recoil_mode = mode
self._update_recoil_active()
def update_autoclicker(self, enabled, delay):
self.autoclicker_enabled = enabled
self.autoclicker_delay = delay
def update_kb_macro(self, enabled, key_code, delay):
self.kb_macro_enabled = enabled
self.kb_macro_key = key_code
self.kb_macro_delay = delay
def update_antiafk(self, enabled, magnitude, interval):
self.antiafk_enabled = enabled
self.antiafk_magnitude = magnitude
self.antiafk_interval = interval
def update_crosshair(self, enabled, shape=None, color=None, size=None,
thickness=None, opacity=None, gap=None, dot=None, outline=None):
self.crosshair_enabled = enabled
if shape is not None:
self.crosshair_shape = shape
if color is not None:
self.crosshair_color = color
if size is not None:
self.crosshair_size = size
if thickness is not None:
self.crosshair_thickness = thickness
if opacity is not None:
self.crosshair_opacity = opacity
if gap is not None:
self.crosshair_gap = gap
if dot is not None:
self.crosshair_dot = dot
if outline is not None:
self.crosshair_outline = outline
self.crosshair_overlay.update_settings(
shape=shape, color=color, size=size,
thickness=thickness, opacity=opacity,
gap=gap, dot=dot, outline=outline
)
if enabled:
self.crosshair_overlay.show()
else:
self.crosshair_overlay.hide()
def update_cameraspin(self, enabled, speed, direction):
self.cameraspin_enabled = enabled
self.cameraspin_speed = speed
self.cameraspin_direction = direction
def update_colorclicker(self, enabled, region=None, color=None,
tolerance=None, delay=None, scan_interval=None,
use_preset_pos=None, click_pos=None):
self.colorclicker_enabled = enabled
if region is not None:
self.colorclicker_region = region
if color is not None:
self.colorclicker_color = color
if tolerance is not None:
self.colorclicker_tolerance = tolerance
if delay is not None:
self.colorclicker_delay = delay
if scan_interval is not None:
self.colorclicker_scan_interval = scan_interval
if use_preset_pos is not None:
self.colorclicker_use_preset_pos = use_preset_pos
if click_pos is not None:
self.colorclicker_click_pos = click_pos
def update_humantyper(self, wpm_min, wpm_max, error_rate, correction_speed, max_typos, typo_mode, pause_min, pause_max, pause_freq, synonym_enabled, synonym_freq, sentence_pause_enabled, sentence_pause_freq, sentence_pause_min, sentence_pause_max, para_pause_enabled, para_pause_freq, para_pause_min, para_pause_max, special_char_delay_enabled, crashout_enabled, crashout_count, nihilism_enabled, nihilism_count, vamp_enabled, vamp_count, typealong_enabled):
self.humantyper_wpm_min = wpm_min
self.humantyper_wpm_max = wpm_max
self.humantyper_error_rate = error_rate
self.humantyper_correction_speed = correction_speed
self.humantyper_max_typos = max_typos
self.humantyper_typo_mode = typo_mode
self.humantyper_pause_min = pause_min
self.humantyper_pause_max = pause_max
self.humantyper_pause_freq = pause_freq
self.humantyper_synonym_enabled = synonym_enabled
self.humantyper_synonym_freq = synonym_freq
self.humantyper_sentence_pause_enabled = sentence_pause_enabled
self.humantyper_sentence_pause_freq = sentence_pause_freq
self.humantyper_sentence_pause_min = sentence_pause_min
self.humantyper_sentence_pause_max = sentence_pause_max
self.humantyper_para_pause_enabled = para_pause_enabled
self.humantyper_para_pause_freq = para_pause_freq
self.humantyper_para_pause_min = para_pause_min
self.humantyper_para_pause_max = para_pause_max
self.humantyper_special_char_delay_enabled = special_char_delay_enabled
self.humantyper_crashout_enabled = crashout_enabled
self.humantyper_crashout_count = crashout_count
self.humantyper_nihilism_enabled = nihilism_enabled
self.humantyper_nihilism_count = nihilism_count
self.humantyper_vamp_enabled = vamp_enabled
self.humantyper_vamp_count = vamp_count
self.humantyper_typealong_enabled = typealong_enabled
def start_humantyper(self, text):
if self.humantyper_active:
return
self.humantyper_text = text
self.humantyper_token_index = 0
self.humantyper_paused = False
self.humantyper_active = True
threading.Thread(target=self._humantyper_run, daemon=True).start()
def _on_typealong_keypress(self):
"""Called by the keyboard hook when a human key is pressed during Type-Along mode."""
self._typealong_event.set()
def _wait_for_human_keypress(self):
"""Wait for a human keypress event. Returns False if typer was stopped."""
while self.humantyper_active and self.running and not self.humantyper_paused:
if self._typealong_event.wait(timeout=0.1):
self._typealong_event.clear()
return True
return False
def _humantyper_run(self):
from pynput.keyboard import Controller as KeyboardController
kb = KeyboardController()
# Type-Along: install keyboard hook if enabled
typealong_active = self.humantyper_typealong_enabled
if typealong_active:
self._typealong_event.clear()
input_utils.install_keyboard_hook(self._on_typealong_keypress)
input_utils.set_keyboard_suppression(True)
try:
self._humantyper_run_inner(kb, typealong_active)
finally:
# Always clean up the hook
if typealong_active:
input_utils.set_keyboard_suppression(False)
input_utils.uninstall_keyboard_hook()
def _humantyper_run_inner(self, kb, typealong_active):
typo_neighbors = {
'a': 'sqwz', 'b': 'vghn', 'c': 'xdfv', 'd': 'erfcxs', 'e': 'rdsw',
'f': 'tgvcd', 'g': 'yhbvf', 'h': 'ujnbg', 'i': 'uojk', 'j': 'ikmnh',
'k': 'olji', 'l': 'pok', 'm': 'njk', 'n': 'bhjm', 'o': 'iplk',
'p': 'ol', 'q': 'wa', 'r': 'etdf', 's': 'wazxde', 't': 'ryfg',
'u': 'yihj', 'v': 'cfgb', 'w': 'qase', 'x': 'zsdc', 'y': 'tugh',
'z': 'asx'
}
def type_char_with_delay(char, remaining_in_word=1):
if typealong_active:
# In Type-Along mode: wait for human keypress before typing each character
if not self._wait_for_human_keypress():
return # Stopped or paused
# Small delay so input feels natural
time.sleep(random.uniform(0.01, 0.03))
delay = None # No WPM-based delay in type-along mode
else:
# Normal auto-typing mode with randomized delays
current_wpm = random.uniform(self.humantyper_wpm_min, self.humantyper_wpm_max)
chars_per_minute = current_wpm * 5
base_delay = 60.0 / chars_per_minute
delay = base_delay * random.uniform(0.7, 1.3)
if self.humantyper_special_char_delay_enabled:
if char not in 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ,.!? \n':
special_pause = random.uniform(0.5, 1.5)
time.sleep(special_pause)
if char in '.!?':