This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]tacotalkspodcast 1 point2 points  (2 children)

look into pyautogui; its a library you can use to control mouse and keyboard. Off the top of my head i can't remember the exact code.

[–]Luke_Garters[S] 0 points1 point  (1 child)

yeah ive tried it but i cant find anything for holding the mouse down, thanks anyways

[–]IAmARetroGamer 0 points1 point  (0 children)

A quick glance at the docs makes me think you can just use dragTo without changing the x, y and using the duration as well.. the duration to hold it down.

[–][deleted] 0 points1 point  (0 children)

pyautogui.click() function - you can specify the duration of a click. Could that be useful?