-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclient.py
More file actions
766 lines (698 loc) · 22.6 KB
/
client.py
File metadata and controls
766 lines (698 loc) · 22.6 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
import asyncio
import requests
import websockets
import socket
import cv2
from mss import mss
import numpy as np
import time
import timeit
import os
import math
import clipboard
import imutils
import multiprocessing
from multiprocessing import Value
import configparser
import bezier
import random
config = configparser.ConfigParser()
config.sections()
config.read('settings.ini')
user = config['server']['host']
# user = os.getlogin()
host = config['server'][user] # if erorr th
server_user = {
"1700_1_1": "1600_1_1",
"1700_2_1": "1600_2_1",
"1700_3_1": "33-32",
"1700_4_1": "Admin",
"1600_1_1": "4-5",
"1600_2_1": "8-9",
"2700_1_1": "24-25",
"3700_1_1": "-",
"8320_1_1": "1700_4_1",
"8350_1_1": "1700_4_1",
"pc-4": "10-11",
"intel": "44-45",
"Admin": "24-25",
"game": "Administrator",
"bot": "Administrator",
}
# user = "intel"
# user = "Administrator"
if __name__ == '__main__':
time.sleep(5)
sct = mss()
scst = mss()
# host = "127.0.0.1"
# host = "192.168.1.100"
port = 4455
addr = (host, port)
mid = 0
if __name__ == '__main__':
print('controlling ' + user + ' host=' + host)
""" Creating the UDP socket """
# client = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
""" Creating the tcp socket """
client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
ortakare = 200
fovlimit = 200
breadth = 960
length = 540
boyutlar = sct.monitors[1]
boyutlar['left'] = int(breadth - (ortakare*3.2))
boyutlar['top'] = int(length - ortakare)
boyutlar['width'] = int(ortakare*6.4)
boyutlar['height'] = int(ortakare*2)
minimap = scst.monitors[1]
minimap['left'] = 172
minimap['top'] = 100
minimap['width'] = 112
minimap['height'] = 144
lower_map = np.array([0, 0, 176])
upper_map = np.array([131, 4, 190])
lower_map2 = np.array([26, 24, 185])
upper_map2 = np.array([34, 47, 196])
# aim trainer
lower = np.array([0, 156, 210])
upper = np.array([4, 255, 243])
# SIGHT
lower = np.array([173, 100, 182])
upper = np.array([179, 173, 193])
# purple
lower = np.array([143, 132, 164])
upper = np.array([156, 211, 255])
keyboardkeys = {
"a": "0x04",
"b": "0x05",
"c": "0x06",
"d": "0x07",
"e": "0x08",
"f": "0x09",
"g": "0x0a",
"h": "0x0b",
"i": "0x0c",
"j": "0x0d",
"k": "0x0e",
"l": "0x0f",
"m": "0x10",
"n": "0x11",
"o": "0x12",
"p": "0x13",
"q": "0x14",
"r": "0x15",
"s": "0x16",
"t": "0x17",
"u": "0x18",
"v": "0x19",
"w": "0x1a",
"x": "0x1b",
"y": "0x1c",
"z": "0x1d",
"1": "0x1e",
"2": "0x1f",
"3": "0x20",
"4": "0x21",
"5": "0x22",
"6": "0x23",
"7": "0x24",
"8": "0x25",
"9": "0x26",
"0": "0x27",
"A": "0x04",
"B": "0x05",
"C": "0x06",
"D": "0x07",
"E": "0x08",
"F": "0x09",
"G": "0x0A",
"H": "0x0B",
"I": "0x0C",
"J": "0x0D",
"K": "0x0E",
"L": "0x0F",
"M": "0x10",
"N": "0x11",
"O": "0x12",
"P": "0x13",
"Q": "0x14",
"R": "0x15",
"S": "0x16",
"T": "0x17",
"U": "0x18",
"V": "0x19",
"W": "0x1A",
"X": "0x1B",
"Y": "0x1C",
"Z": "0x1D",
"ctrl": "0xE0",
"alt": "0xE2",
"shift": "0xE1",
"enter": "0x28",
"win": "0xE3",
"Return": "0x28",
"Escape": "0x29",
"Backspace": "0x2A",
"Tab": "0x2B",
"Spacebar": "0x2C",
"Minus": "0x2D",
"Equals": "0x2E",
"LeftSquareBracket": "0x2F",
"RightSquareBracket": "0x30",
"Backslash": "0x31",
"NonUsHash": "0x32",
"Semicolon": "0x33",
"Quote": "0x34",
"GraveAccent": "0x35",
"Comma": "0x36",
"Period": "0x37",
"Slash": "0x38",
"CapsLock": "0x39",
"F1": "0x3A",
"F2": "0x3B",
"F3": "0x3C",
"F4": "0x3D",
"F5": "0x3E",
"F6": "0x3F",
"F7": "0x40",
"F8": "0x41",
"F9": "0x42",
"F10": "0x43",
"F11": "0x44",
"F12": "0x45",
"PrintScreen": "0x46",
"ScrollLock": "0x47",
"Pause": "0x48",
"Insert": "0x49",
"Home": "0x4A",
"PageUp": "0x4B",
"Delete": "0x4C",
"End": "0x4D",
"PageDown": "0x4E",
"RightArrow": "0x4F",
"LeftArrow": "0x50",
"DownArrow": "0x51",
"UpArrow": "0x52",
"KeypadNumLock": "0x53",
"KeypadDivide": "0x54",
"KeypadMultiply": "0x55",
"KeypadAdd": "0x56",
"KeypadSubtrace": "0x57",
"KeypadReturn": "0x58",
"Keypad1": "0x59",
"Keypad2": "0x5A",
"Keypad3": "0x5B",
"Keypad4": "0x5C",
"Keypad5": "0x5D",
"Keypad6": "0x5E",
"Keypad7": "0x5F",
"Keypad8": "0x60",
"Keypad9": "0x61",
"Keypad0": "0x62",
"enter": "0x28",
"escape": "0x29",
"backspace": "0x2a",
"tab": "0x2b",
"spacebar": "0x2c",
"minus": "0x2d",
"equals": "0x2e",
"left_bracket": "0x2f",
"right_bracket": "0x30",
"backslash": "0x31",
"pound": "0x32",
"semicolon": "0x33",
"quote": "0x34",
"grave_accent": "0x35",
"comma": "0x36",
"period": "0x37",
"forward_slash": "0x38",
"caps_lock": "0x39",
"f1": "0x3a",
"f2": "0x3b",
"f3": "0x3c",
"f4": "0x3d",
"f5": "0x3e",
"f6": "0x3f",
"f7": "0x40",
"f8": "0x41",
"f9": "0x42",
"f10": "0x43",
"f11": "0x44",
"f12": "0x45",
"print_screen": "0x46",
"scroll_lock": "0x47",
"pause": "0x48",
"insert": "0x49",
"home": "0x4a",
"page_up": "0x4b",
"delete": "0x4c",
"end": "0x4d",
"page_down": "0x4e",
"right_arrow": "0x4f",
"left_arrow": "0x50",
"down_arrow": "0x51",
"up_arrow": "0x52",
"keypad_numlock": "0x53",
"keypad_forward_slash": "0x54"
}
inputkeys = {
"mmcal": 8,
"mccal": 9,
"mm": 4,
"mc": 2,
"mp": 5,
"mr": 1,
"key": 3,
"up": 7,
"down": 6
}
keystate = {
"0": 0,
"up": 7,
"down": 6
}
def send_message(message = 'Hi'):
bot_token = ''
chat_id = ''
requests.get(f'https://api.telegram.org/bot{bot_token}/sendMessage?chat_id={chat_id}&text={message}')
def senddataa(q, walkmsg, walkbotloop, aimbotloop, qt):
reconnect_attempts = 0
max_reconnect_attempts = 5
while reconnect_attempts < max_reconnect_attempts:
try:
client.connect(addr)
client.settimeout(0.4)
send_message(user + "connected")
mid = 0
data1 = ''
while True:
if (q.empty() is False) and (aimbotloop.value >= 1):
data = q.get() + "@"
aimbotloop.value = 2
print('aim ' + str(data))
# last = timeit.default_timer()
client.sendall(data.encode("utf-8"))
# try:
# data1 = client.recv(1).decode("utf-8")
# print(f' network letancy ={timeit.default_timer() - last}')
# except:
# print('thr seems an eror')
aimbotloop.value = 1
else:
while not q.empty():
q.get()
if (not walkmsg.empty()) and (walkbotloop.value == 1):
data = walkmsg.get() + "@"
# print('walk ' + str(data))
client.sendall(data.encode("utf-8"))
else:
while not walkmsg.empty():
walkmsg.get()
if qt.empty() is False:
data = qt.get() + "@"
# print(data)
client.sendall(data.encode("utf-8"))
# client.sendto(qt.get().encode("utf-8"), addr)
except (socket.timeout, socket.error) as e:
send_message(user + str(e))
client.close()
reconnect_attempts = 0
while reconnect_attempts < max_reconnect_attempts:
try:
client.connect(addr)
send_message(f'{user} reconnected to server after {reconnect_attempts+1} attempt(s)')
aimbotloop.value = 1
walkbotloop.value = 1
break
except (socket.timeout, socket.error) as e:
reconnect_attempts += 1
time.sleep(5)
continue
if reconnect_attempts == max_reconnect_attempts:
send_message(f'{user} failed to reconnect after {max_reconnect_attempts} attempts')
aimbotloop.value = 0
walkbotloop.value = 0
def senddata(q, walkmsg, walkbotloop, aimbotloop, qt):
while True:
send_message(user + "client gonna connect")
client.connect(addr)
#client.settimeout(0.4)
send_message(user + "client got connected")
try:
while True:
if (q.empty() is False) and (aimbotloop.value >= 1):
data = q.get() + "@"
aimbotloop.value = 2
#print('aim ' + str(data))
#last = timeit.default_timer()
client.sendall(data.encode("utf-8"))
# try:
# data1 = client.recv(1).decode("utf-8")
#print(f' network letancy ={timeit.default_timer() - last}')
# except:
#print('thr seems an eror')
aimbotloop.value = 1
else:
while not q.empty():
q.get()
if (not walkmsg.empty()) and (walkbotloop.value == 1):
data = walkmsg.get() + "@"
#print('walk ' + str(data))
client.sendall(data.encode("utf-8"))
else:
while not walkmsg.empty():
walkmsg.get()
if qt.empty() is False:
data = qt.get() + "@"
# print(data)
client.sendall(data.encode("utf-8"))
# client.sendto(qt.get().encode("utf-8"), addr)
except (socket.timeout, socket.error) as e:
send_message(user + e)
# Code to reconnect to host
client.close()
async def connect_sv(name):
# uri = "ws://localhost:8765"
try:
# async with websockets.connect(uri) as websocket:
client.sendall(name)
# print(f"sent {name}")
# time.sleep(0.1)
except:
pass
lastsign = 0
def walkbot(q, walkbotloop, key_w, key_s):
while True:
if walkbotloop.value == 1: # 1 value kro
walkbot1(q, key_w, key_s, walkbotloop)
def walkbot_screen_coordinates():
img = np.array(sct.grab(minimap))
hsv = cv2.cvtColor(img, cv2.COLOR_BGR2HSV)
mask = cv2.inRange(hsv, lower_map, upper_map)
mask1 = cv2.inRange(hsv, lower_map2, upper_map2)
mask = mask + mask1
kernel = np.ones((2, 2), np.uint8)
erode = cv2.erode(mask, kernel, iterations=2)
dilated = cv2.dilate(erode, kernel, iterations=5)
# cv2.imshow("raw", img)
# cv2.imshow("dilated", dilated)
# cv2.destroyAllWindows()
# find contours in thresholded image
cnts = cv2.findContours(dilated.copy(), cv2.RETR_EXTERNAL,
cv2.CHAIN_APPROX_SIMPLE)
cnts = imutils.grab_contours(cnts)
if len(cnts) != 0: # j lab gea tan
extLeft, extRight, extTop, extBot = 1e9, -1e9, 1e9, -1e9 # values jali likho
for cc in cnts: # extreme points labbo
extLeft = min(cc[:, :, 0].min(), extLeft)
extRight = max(cc[:, :, 0].max(), extRight)
extTop = min(cc[:, :, 1].min(), extTop)
extBot = max(cc[:, :, 1].max(), extBot)
# print(extBot, extTop)
if (extBot > 85) and extLeft < 70 and extRight > 40: # error value na chk lai es lai
return extLeft, extRight, extTop
return -1, -1, -1
def walkbot1(q, key_w, key_s, walkbotloop):
extLeft, extRight, extTop, extBot = 1e9, -1e9, 1e9, -1e9 # values jali likho
try:
extLeft, extRight, extTop = walkbot_screen_coordinates()
except:
pass
if extRight in range(1, 200): # thr is a way
if walkbotloop.value == 0:
return
q.put(str(user+','+'3'+','+str("s") + ','+str('7')))
q.put(str(user+','+'3'+','+str("w") + ','+str('6')))
value = (extRight - 57) if (extRight -
57) > (57 - extLeft) else (extLeft - 57)
q.put(f"{user},8,{math.floor(value*1.59)},0")
return
q.put(str(user+','+'3'+','+str("w") + ','+str('7')))
key_w.value = 0
q.put(str(user+','+'3'+','+str("s") + ','+str('6')))
key_s.value = 1
time.sleep(1)
q.put(str(user+','+'3'+','+str("s") + ','+str('7')))
key_s.value = 0
extTop = 1e9
toppoint = -90
# print(timeit.default_timer() - last)
last = timeit.default_timer()
turnwhere = random.choice(
[random.randint(-500, -100), random.randint(100, 500)])
# find way loop
while walkbotloop.value == 1 and toppoint <= extTop and (timeit.default_timer() - last) < 4:
extLeft, extRight, extTop = walkbot_screen_coordinates() # chking if we have way
if extTop == 1e9 or extTop == 0: # no path found
q.put(str(user+','+'8'+','+str(turnwhere) + ','+str('0')))
time.sleep(0.5)
else: # path found so turning lil bit till longest straight path found
if int(toppoint) < int(extTop): # store longest path
toppoint = extTop
turnwhere = (extRight - 57) if (extRight -
57) > (57 - extLeft) else (extLeft - 57)
q.put(f"{user},8,{math.floor(turnwhere*1.59)},0")
def pixel(q, boyutlar, ortakare, walkbotloop, aimbotloop, key_w, key_s, qt):
lastfov = 200
freez = 0
scale = 1
start = -8888
x_last = 78
y_last = 0
break_now = 0
#cv2.imshow("thresh", cv2.WINDOW_NORMAL)
#cv2.moveWindow('thresh', -1920, 0)
while True:
if aimbotloop.value >= 1:
img = np.array(sct.grab(boyutlar))
# cv2.imshow("Open", img)
hsv = cv2.cvtColor(img, cv2.COLOR_BGR2HSV)
mask = cv2.inRange(hsv, lower, upper)
kernel = np.ones((3, 3), np.uint8)
dilated = cv2.dilate(mask, kernel, iterations=5)
thresh = cv2.threshold(dilated, 60, 255, cv2.THRESH_BINARY)[1]
# print(thresh)
#cv2.imshow("thresh", thresh)
contours, hierarchy = cv2.findContours(
thresh, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_NONE)
if len(contours) >= 1 and aimbotloop.value == 1: # testing 5 as 0 giving problems
contours = sorted(
contours, key=lambda c: cv2.boundingRect(c)[1])
x, y, w, h = cv2.boundingRect(contours[0])
#M = cv2.moments(thresh)
#cX = int(M["m10"] / M["m00"])
#cY = int(M["m01"] / M["m00"])
x = int(x + boyutlar['left'] - 960 + (w/2))
y = y + boyutlar['top'] - 530 # 540
#y_last += y
freez = freez + 1
if freez == 1:
start = timeit.default_timer()
walkbotloop.value = 2
print("stop walkbot by aim")
qt.put(f"{user},3,w,7")
qt.put(f"{user},3,s,7")
q.put(f"{user},9,{x},{y}")
time.sleep(.45) # .35
# to counter any false +ve we implemented this it will shoot at flowers for 5 sec then it will skip
elif freez >= 2 and (timeit.default_timer() - start > 5):
if walkbotloop.value == 2 and aimbotloop.value == 1:
print("start walkbot freez aim seems false +ve")
freez, walkbotloop.value = 0, 1
#y_last = -(y_last)
# q.put(f"{user},8,0,{y_last}")
#y_last = 0
time.sleep(5)
q.put(f"{user},9,{x},{y}")
#wind_mouse(q, user, x, y, '8')
time.sleep(.22) # .18
elif freez >= 1:
stop = timeit.default_timer()
# print('Time: ', stop - start)
if int(stop - start) >= 3:
freez = 0
#y_last = -(y_last)
# if abs(y_last) > 600
# q.put(f"{user},8,0,{y_last}")
#y_last = 0
if walkbotloop.value == 2 and aimbotloop.value == 1:
print("start walkbot")
walkbotloop.value = 1
def wind_mouse(q, user, end_x, end_y, device):
start_x, start_y = 0, 0
end_x, end_y = cal_angle(end_x), cal_angle(end_y)
# Calculate the distance between the starting and ending points
distance = math.sqrt((end_x - start_x)**2 + (end_y - start_y)**2)
# Calculate the maximum distance that the curve can go beyond the end point
max_excess = distance * 0.02
# Calculate the number of steps needed to move the mouse along the line
num_steps = int(distance / 10)
# Loop through each step and move the mouse
for i in range(num_steps):
# Calculate the current position of the mouse along the line
x = start_x + (end_x - start_x) * (i / num_steps)
y = start_y + (end_y - start_y) * (i / num_steps)
# Add a random offset to the current position
x += random.uniform(-5, 5)
y += random.uniform(-5, 5)
# If the current position is beyond the end point, adjust it
if i == num_steps - 1:
excess = math.sqrt((x - end_x)**2 + (y - end_y)**2)
if excess > max_excess:
x -= (excess - max_excess) * (x - end_x) / excess
y -= (excess - max_excess) * (y - end_y) / excess
# Move the mouse to the adjusted position
q.put(f"{user},8,{int(x)},{int(y)}")
# time.sleep(.28)
q.put(f"{user},9,0,2")
angle_table = [1.146666667, 1.104, 1.08, 1.066964286, 1.047272727, 1.027692308, 0.9947089947,
0.9835294118, 0.9620253165, 0.9190207156, 0.9050966608, 0.8817891374, 0.8624260355, 0.844137931]
def cal_angle(newX):
stroke = newX // 50
if stroke < len(angle_table):
return newX * angle_table[stroke]
else:
return newX * 0.8036144578
def togglekeys(key, state, key_w, key_s):
if key == "w":
if state == "0":
key_w.value = 0
q.put(str(user+','+'3'+','+str("w") + ','+str('7')))
print("w released")
else:
key_w.value = "1"
q.put(str(user+','+'3'+','+str("w") + ','+str('6')))
print("w pressed")
elif key == "s":
if state == "0":
key_s.value = 0
q.put(str(user+','+'3'+','+str("s") + ','+str('7')))
print("s released")
else:
key_s.value = 1
q.put(str(user+','+'3'+','+str("s") + ','+str('6')))
print("s pressed")
def keyboardkey(x, y, DeviceEvent, q):
xx = [char for char in x]
for i in xx:
# print(i)
if i.islower() or i.isdigit():
q.put(str(user+','+str(inputkeys[DeviceEvent]) +
','+str(i) + ','+str(keystate[y])))
# time.sleep(0.3)
else:
q.put(str(user+','+str(inputkeys[DeviceEvent])+',' +
str("shift") + ','+str(keystate["down"])))
# time.sleep(0.5)
q.put(str(user+','+str(inputkeys[DeviceEvent]) +
','+str(i) + ','+str(keystate[y])))
# time.sleep(0.5)
q.put(str(user+','+str(inputkeys[DeviceEvent])+',' +
str("shift") + ','+str(keystate["up"])))
# time.sleep(0.5)
def DeviceEvents(DeviceEvent, x, y, q):
if "m" in DeviceEvent:
x = int(float(x))
y = int(float(y))
q.put(
str(user+','+str(inputkeys[DeviceEvent])+','+str(x) + ','+str(y)))
return
try:
zz = keyboardkeys[x] # previously its x = keyboardkeys[x]
except:
keyboardkey(x, y, DeviceEvent, q)
return
q.put(str(user+','+str(inputkeys[DeviceEvent]
)+','+str(x) + ','+str(keystate[y])))
def wasd(text, aimbot, q):
if text == "start":
aimbot = 1
return aimbot
elif text == "stop":
print("stop both")
aimbot = 2
return aimbot
elif text == "walkstop":
aimbot = 3
return aimbot
elif text == "aimstop":
aimbot = 4
return aimbot
else:
nn = text.split(",")
if len(nn) != 3:
print(f'wrong:{text}')
else:
DeviceEvent = nn[0]
x = nn[1]
y = nn[2]
DeviceEvents(DeviceEvent, x, y, q)
return aimbot
text1 = 0
aimbot = 0
lastfov = 0
clipboardcommands = True
if __name__ == '__main__':
print("Ready !")
q = multiprocessing.Queue() # aim pope
qt = multiprocessing.Queue() # main pipe
walkmsg = multiprocessing.Queue() # walks pipe
aimbotloop = Value('d', 0.0)
walkbotloop = Value('d', 0.0)
key_w = Value('d', 0.0)
key_s = Value('d', 0.0)
mwalkbot = multiprocessing.Process(
target=walkbot, args=(walkmsg, walkbotloop, key_w, key_s))
maimbot = multiprocessing.Process(target=pixel, args=(
q, boyutlar, ortakare, walkbotloop, aimbotloop, key_w, key_s, qt))
msenddata = multiprocessing.Process(
target=senddata, args=(q, walkmsg, walkbotloop, aimbotloop, qt))
mwalkbot.start()
maimbot.start()
msenddata.start()
'''''
# 366,-111
#
#
#
#
x = 366
y = -111
# q.put(str(user+','+'9'+','+str(x) + ','+str(y)))
data = str(user+','+'9'+','+str(x) + ','+str(y)).encode("utf-8")
data = "Administrator,3,w,6".encode("utf-8")
print(data)
client.sendto(data, addr)
'''''
config = configparser.ConfigParser()
config.sections()
config.read('settings.ini')
text = 0
while True:
if clipboardcommands == True:
try:
config.read('settings.ini')
text = config['logs']['clipboards']
except:
pass
if text != text1:
print('ahk ' + text)
text1 = text
aimbot = wasd(text, aimbot, qt)
if (aimbot == 1):
print("aim + walk enabled")
aimbot = 0
walkbotloop.value = 1 # ethe 1 krna
aimbotloop.value = 1
elif (aimbot == 2):
aimbotloop.value = 0
walkbotloop.value = 0
print("aim + walk stoped")
aimbot = 0
elif (aimbot == 3):
aimbot = 0
walkbotloop.value = 0
elif (aimbot == 4):
aimbot = 0
aimbotloop.value = 0