You are not logged in.
So yeah, I use arch and I have been trying to code an autoclicker script in Python.
My code works on windows but doesnt work on arch linux.
Thanks for any help
.
Code:
def autoclicker(k, c):
while True:
if keyboard.is_pressed(k): ##possibly problem
randomInt = float(random.uniform(0.01, 0.06)) ## randomization
mouse.click('left') ##problem
SSS = c + randomInt
time.sleep(SSS)
else:
pass
edit: by doesnt work, I mean it doesnt give any error, it just doesnt click.
use mouse.press(Button.left)
mouse.release(Button.left)
Best regards,
SuperBoxes
Last edited by superboxes (2022-05-16 14:05:38)
Offline
I don't know if your issue is Arch specific, but what are your imports? You forgot to put them with the code. Also, please use code tags for code. It makes things easier to read.
Offline