79610689

Date: 2025-05-07 13:53:25
Score: 1
Natty:
Report link

I guess the proper way would be to use Windows API.
Take a look on GetCursorPos from Win32 API

To call Win32 API you can use something like pywin32 lib I guess

Of course that API will give you the mouse position of the mouse in the entire screen. If you want the mouse position related to your terminal window maybe you can find your window using the Windows API too, get the position and size and do the maths.

I don't know. Sounds a bit overkill but for me is the "Windows way"

Or just: https://www.youtube.com/watch?v=Ks9HWZWMsw4

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Whitelisted phrase (-1.5): you can use
  • No code block (0.5):
  • Low reputation (1):
Posted by: Victor