Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import ctypes
- class POINT(ctypes.Structure):
- _fields_ = [("x", ctypes.c_ulong), ("y", ctypes.c_ulong)]
- point = POINT()
- ctypes.windll.user32.GetCursorPos(ctypes.pointer(point))
- print point.x, point.y
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement