- Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconsole.py
More file actions
Latest commit
44 lines (42 loc) · 1.43 KB
/
Copy pathconsole.py
File metadata and controls
44 lines (42 loc) · 1.43 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
importtime
importkeyboard
importctypes
importrandom
print("PythonAutoClicker by Fexooo")
print("GitHub: github.com/Fexooo")
varstart=1;
varend=1;
time.sleep(1)
print("How much Clicks per Second?")
speed=input("CPS: ")
print("Which Key should trigger it? (Key has to be in lower case!)")
ckey=input("Key: ")
print("Which Key should close this Program?")
ekey=input("Key: ")
print("Constant CPS? y/n")
constant=input(">")
ifconstant!="y":
print("Variation Start and End: (open README.MD for more Information on how to use Variation)")
varstart=input("Start (leave free for constant): ")
varend=input("End (leave free for constant): ")
whileTrue:
speedfl=float(speed)
speedfi=float(1/speedfl)
ifkeyboard.is_pressed(ckey):
ctypes.windll.user32.mouse_event(2, 0, 0, 0, 0)
ctypes.windll.user32.mouse_event(4, 0, 0, 0, 0)
time.sleep(speedfi*random.uniform(float(varstart), float(varend)))
ifkeyboard.is_pressed(ekey):
print("Shutdown by Key!")
exit()
else:
whileTrue:
speedfl=float(speed)
speedfi=float(1/speedfl)
ifkeyboard.is_pressed(ckey):
ctypes.windll.user32.mouse_event(2, 0, 0, 0, 0)
ctypes.windll.user32.mouse_event(4, 0, 0, 0, 0)
time.sleep(speedfi)
ifkeyboard.is_pressed(ekey):
print("Shutdown by Key!")
exit()