0

Hello Everyone,

i would like to make a file in which i move the mouse to coordinates x and y and click the scroll button(middle button). this is what i want but works for left and right i have on idea how to make it work with scroll/medium button. any help will be much appreciated. thanks

from ctypes import *
import win32api
import win32con

user = windll.user32
x = 1020
y= 390
user.SetCursorPos(x,y)
win32api.mouse_event(win32con.MOUSEEVENTF_LEFTDOWN, 0, 0)
win32api.mouse_event(win32con.MOUSEEVENTF_LEFTUP, 0, 0)

Edited by me4ka86: n/a

2
Contributors
1
Reply
3
Views
7 Years
Discussion Span
Last Post by Gribouillis
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.