VEDANTA adlı üyeden alıntı: mesajı görüntüle
bir denermisiniz

from pynput.mouse import Listener, Button
import pyautogui
import time
if __name__ == "__main__":
 
    # Global variable to store the click coordinates
    click_coordinates = None
    def on_click(x, y, button, pressed):
        global click_coordinates
    
        # Check if the left button was pressed
        if pressed and button == Button.left:
            # Store the click coordinates
            click_coordinates = (x, y)
            print(f'Click position set at: {click_coordinates}')
 
            return False
    
    
    with Listener(on_click=on_click) as listener:
        # Wait for the user to perform a manual click
        listener.join()  
    
    x, y = click_coordinates
 
    # Perform 100 clicks at the specified position
    for _ in range(100):
        pyautogui.click(x, y)
        time.sleep(0.01)  # 10 milliseconds between clicks
 
    print('Spamming complete.')
Çalıştı