Is it possible to get the overall cursor position in Windows using the standard Python libraries?
Advertisement
Answer
win32gui.GetCursorPos(point)
This retrieves the cursor’s position, in screen coordinates – point = (x,y)
flags, hcursor, (x,y) = win32gui.GetCursorInfo()
Retrieves information about the global cursor.
Links:
- http://msdn.microsoft.com/en-us/library/ms648389(VS.85).aspx
- http://msdn.microsoft.com/en-us/library/ms648390(VS.85).aspx
I am assuming that you would be using python win32 API bindings or pywin32.