├── README.md
└── PerfectCircle.py
/README.md:
--------------------------------------------------------------------------------
1 | # CircleHackor
2 | Make sure to fullscreen your browser
3 |
4 | Requirements:
5 | pip install pywin32
6 | pip install PyAutoGUI
7 | pip install numpy
8 |
--------------------------------------------------------------------------------
/PerfectCircle.py:
--------------------------------------------------------------------------------
1 | import numpy as np
2 | import win32api
3 | import pyautogui
4 | import time
5 |
6 | #F11 To fullscreen your browser!
7 |
8 | ready = True
9 | aim_key = 0x14 #https://learn.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes
10 | r = 380 #Radius of your circle
11 | circle_steps = 25 #Corners? of your circle i guess?, lower = faster (2 linear 3 = triangle, 4 = square)
12 | width, height = pyautogui.size() #Screen size X , Y
13 | y_offset = (1 / 27) * height #Offset of the center white dot
14 | center_x, center_y = width / 2, (height - y_offset) / 2 #Center point
15 |
16 | #Sleep MS
17 | def Sleep(MS):
18 | time.sleep((MS / 1000))
19 |
20 | #Keystate
21 | def IsKeyHeld(key):
22 | if win32api.GetAsyncKeyState(key) & 0x8000:
23 | return True
24 | else:
25 | return False
26 |
27 |
28 | def Circle(radius, steps):
29 | pyautogui.mouseDown()
30 | Sleep(5)
31 | for i in range(steps + 2): #+2 to fully finish the circle
32 | if IsKeyHeld(aim_key):
33 | angle = i * (2.0 * np.pi / steps)
34 | dx = int(center_x + radius * np.cos(angle))
35 | dy = int(center_y + radius * np.sin(angle))
36 | pyautogui.moveTo(dx,dy)
37 | pyautogui.mouseUp()
38 |
39 | while True:
40 | if win32api.GetAsyncKeyState(aim_key):
41 | if ready:
42 | pyautogui.moveTo((center_x+ r), center_y) #Move mouse to Beginning of circle
43 | Sleep(5)
44 | Circle(r, circle_steps)
45 | ready = False
46 | Sleep(1000)
47 | if not IsKeyHeld(aim_key):
48 | ready = True
--------------------------------------------------------------------------------