0

So I am trying to detect when my mouse cursor is selecting a link or becoming like this. ---> enter image description here

I looked around and found nothing related to this. Is there a Python method to do this? If no any other solutions?

  • Is this cursor hovering on your own python program, or are you looking to detect the mouse cursor globally? – Martheen Jun 17 '20 at 03:10
  • Doing it globally. – Programmer Unknown Jun 17 '20 at 03:13
  • This is a dupe of https://stackoverflow.com/questions/26752051/periodically-detect-change-of-mouse-pointer-type but that question is also abandoned and the mentioned libraries in the comment all point to dead libraries. Can you clarify what's exactly are you trying to do? – Martheen Jun 17 '20 at 03:17
  • Trying to catch when my mouse cursor is hovering over a link in a browser. So I can then run functions with it. – Programmer Unknown Jun 17 '20 at 03:22
  • Would be much easier to use Selenium, [detect](https://stackoverflow.com/questions/7790725/javascript-track-mouse-position) cursor position then [identify](https://stackoverflow.com/questions/31910534/executing-javascript-elementfrompoint-through-selenium-driver) the element under the cursor, that way you can interact and parse the actual HTML element. – Martheen Jun 17 '20 at 03:34
  • I don't know anything about Javascript or C#, so thats not easy for me. – Programmer Unknown Jun 17 '20 at 03:46
  • Ah Selenium is language-agnostic, you can use it from Python. But unless you're up to resurrecting the libraries mentioned in the dupe question, you'll have to use Javascript. – Martheen Jun 17 '20 at 03:48

0 Answers0