-
-
Save lvrma/36e809a60157939c506de24967b07a33 to your computer and use it in GitHub Desktop.
import win32api, win32con, math | |
win32api.Sleep(10000) | |
start_x, start_y = win32api.GetCursorPos() | |
win32api.SetCursorPos((start_x,start_y)) | |
for i in range(0, 320 * 2, 10): | |
x = start_x + int(300 * math.cos(float(i)/100.0)) | |
y = start_y + int(300 * math.sin(float(i)/100.0)) | |
win32api.SetCursorPos((x,y)) | |
if i == 0: | |
win32api.mouse_event(win32con.MOUSEEVENTF_LEFTDOWN,x,y,0,0) | |
win32api.Sleep(20) | |
win32api.mouse_event(win32con.MOUSEEVENTF_LEFTUP,x,y,0,0) |
how to use?
how do i use
(warning: Windows-only): Install Python if you don't have it installed already (and choose the add to Path option). Then, open the terminal (or cmd) with Windows Key + R -> type cmd. In that window, type pip install pypiwin32
to install the Windows Python library. Then, type cd DIR
where you replace DIR with the path of the folder where this script circle.py has been downloaded (if you downloaded a ZIP, extract the Py file first and copy the address of that folder). Next, you type python circle.py
in the terminal window and, within 10 seconds, move your mouse to the center of the circle in the browser window open at https://vole.wtf/perfect-circle and click it to start the game, resting your cursor at the center of the circle. After 10 seconds, your mouse will click down and draw a perfect circle on its own. The best score you will get is about 99.5%, but that's up to the website.
how do i use this?