import mouse
import keyboard
import time
isClicking = False
def set_clicker():
global isClicking
if isClicking:
isClicking = False
print('Clicker off')
else:
isClicking = True
print('Clicker on')
keyboard.add_hotkey('Alt + Z', set_clicker)
while True:
if isClicking:
mouse.double_click(button='left')
time.sleep(0.01)
sudo python filename.py
sudo pip3 install library