how can I randomize clicks in an intervall? (for example : 8-15) the clicks goes form 8 to 15 cps(clicks per second) with all values taken randomly
Here's the code you can test it if you want
import pyautogui
import threading
import win32api
from tkinter import *
from tkinter import ttk
import random
def fcclicks():
while True:
x = random.randrange(10,20)
if win32api.GetKeyState(0x02)<0: #if right click is pressed it will press left click
pyautogui.click()
pyautogui.PAUSE = 1/x
print("Pressed")
print(x)
fcclicks()
You can also see the random numbers generated in the terminal thanks to print(x) which proves that randoms between 10 and 20 are indeed generated but the values are not taken when clicking.
It's supposed to take all values randomly in that intervall