鼠标滚轮

 

import win32api
import time
import win32clipboard
import win32con
#https://msdn.microsoft.com/en-us/library/windows/desktop/ms646260(v=vs.85).aspx
dwData=-200
for i in range(12):
dwData -= 20
y+=200
win32api.SetCursorPos([x, y])
win32api.mouse_event(win32con.MOUSEEVENTF_WHEEL, x, y, dwData, 0)
time.sleep(3)


posted @ 2018-01-25 23:09  papering  阅读(210)  评论(0编辑  收藏  举报