So I basically have a python script set up that moves the mouse in a game to specific x and y coordinates, my question now is how can I make it so the mouse is moving slower, yet still smooth from point a to point b? I tried the sleep command but that just makes it not move smooth rather very robotic. My code:
if keyboard.is_pressed("Alt"):
win32api.mouse_event(win32con.MOUSEEVENTF_MOVE, int(x), int(y), 0, 0)
time.sleep(.02)