-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
47 lines (37 loc) · 1.07 KB
/
main.py
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
import keyboard
import os
import time
from colorama import just_fix_windows_console
from termcolor import cprint
def cls():
os.system("cls" if os.name == "nt" else "clear")
def PrintStart():
cls()
cprint("[!] Press [S] To Start", "blue")
print()
cprint("[!] Hold [Esc] To Stop", "blue")
if os.name == "nt":
os.system("title Anti Afk")
just_fix_windows_console()
PrintStart()
while True:
if keyboard.is_pressed("s"):
while True:
time.sleep(0.5)
for _ in range(5):
time.sleep(0.1)
keyboard.press("w")
time.sleep(0.2)
for _ in range(5):
time.sleep(0.1)
keyboard.press("a")
time.sleep(0.2)
for _ in range(5):
time.sleep(0.1)
keyboard.press("s")
time.sleep(0.2)
for _ in range(5):
time.sleep(0.1)
keyboard.press("d")
if keyboard.is_pressed("esc"):
break