[Python] i keep getting this error: ctypes.ArgumentError: argument 1: TypeError: Don't know...

Discussão em 'Python' iniciado por Stack, Abril 15, 2025.

  1. Stack

    Stack Membro Participativo

    from pynput.mouse import Button, Controller
    import ctypes
    import time
    import math
    mouse = Controller()
    angle=0
    x = 0
    y = 500
    rad = 250
    time.sleep(20)
    for i in range(360):
    angle += 1
    x = rad*math.sin(i)
    y = rad*math.cos(i)
    ctypes.windll.user32.SetCursorPos(x,y)
    mouse.press(Button.left)
    mouse.release(Button.left)


    This code is supposed to trace the path of a circle while holding m1

    Continue reading...

Compartilhe esta Página