Python Forum
Move mouse and click in particular position - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Move mouse and click in particular position (/thread-29413.html)



Move mouse and click in particular position - biprabu - Sep-01-2020

Hi All,
I am new to python.please help me to solve the requirement

Step
1) I have to open a application
2)move the mouse to its menu area and click on its submenu

Application dont have short cut key to open its menu and sub menu, so the code has to move the mouse to its area and click on it

Thanks


RE: Move mouse and click in particular position - deanhystad - Sep-01-2020

You are trying to write something that will run an application that has a GUI? If so look at PyAutoGui.


RE: Move mouse and click in particular position - Larz60+ - Sep-01-2020

PyAutoGui will get you started, but it won't really help you learn a GUI language.
Other (and in my opinion, better) way would be to use one of the freely available GUI packages:
  • tkinter is built into python and good for fairly simple applications,
    but gets very time consuming with larger apps.
  • KIVY will allow you to write not only cross platform, but cross device as well (phones, display monitors, etc)
  • Qt5 is great if your not building a large commercial product (fees apply for larger commercial applications)
  • wxpython is a very robust GUI package, easy to use, royalty free for commercial products and quick to learn,
    my choice, but that's personal.



RE: Move mouse and click in particular position - deanhystad - Sep-01-2020

I think the OP wants to automatically run some application. Replace the user with a script.