python3.6.5下如何获取全局鼠标坐标

2025-03-10 14:24:22
推荐回答(1个)
回答1:

from ctypes import *
def get_mouse_point():
   po = POINT()
   windll.user32.GetCursorPos(byref(po))
   return int(po.x), int(po.y)