0

I’ve been trying to create a cool auto clicker as a little project. How exactly can I create something that will tell me what my mouse coordinates are when I click?

Jerry
  • 1
  • Short answer is you probably can't without a 3rd party library. It's entirely dependent on the platform you're targeting – AlgoRythm Feb 19 '22 at 03:39
  • 1
    See here https://stackoverflow.com/questions/22925599/mouse-position-python-tkinter – pippo1980 Feb 19 '22 at 03:47
  • how about [PyAutoGUI](https://pyautogui.readthedocs.io/en/latest/) - it can show you mouse current position and even send mouse click to window - so you can create autoclicker. – furas Feb 19 '22 at 06:31
  • how about [pynput](https://pynput.readthedocs.io/en/latest/mouse.html) - `mouse.Listener` may show position, `mouse.Controler` can send click to window. – furas Feb 19 '22 at 06:38
  • `PyAutoGUI` and [Programming a Bot to Play the "Sushi Go Round" Flash Game](https://inventwithpython.com/blog/2014/12/17/programming-a-bot-to-play-the-sushi-go-round-flash-game/) – furas Feb 19 '22 at 06:39

0 Answers0