i need help in controlling mouse click in python. Example would be 'clicking File menu --> Save Us--> Save' on its own.
I have this code for launching an app, for example a textfile. but i dont know how to control its mouse click. Advice please.
import os class LaunchApp: def launch(self): os.system("open "+ "/Applications/TextEdit.app") go = LaunchApp() go.launch()
i tried making my own code.. but it does not work
if line.find(phase1) != -1: while 1: try : parent = winDoc.tool_bars.groups.menu_buttons parent.value.get() sleep(0.1) ph.buttonClick(winDoc, 4) except : break parent = winDoc root = parent