MAP tool automation - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: GUI (https://python-forum.io/forum-10.html) +--- Thread: MAP tool automation (/thread-23719.html) |
MAP tool automation - metro17 - Jan-14-2020 >>>import pyautogui as pag >>> import os >>> os.startfile("C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Microsoft Assessment and Planning Toolkit\Microsoft Assessment and Planning Toolkit") The tool is launched with Yes/No(No is chosen by default) I need to click Yes using pyautogui.How do I do this ? I believe I need to bring that application to the foreground and have my code press Yes using python code. Once I click Yes the tool will launch and then I start configuring. I am stuck near Yes/No.Assistance is appreciated. Thanks RE: MAP tool automation - Denni - Jan-14-2020 Are you sure there is no way to supply the "Yes" as a command line argument ? RE: MAP tool automation - metro17 - Jan-14-2020 no command line RE: MAP tool automation - Denni - Jan-14-2020 Okay well pyautogui is simply a screen automation navigation tool if you dig into the documentation it pretty much outlines the how of it -- but what I would do if I were is learn to use it in pieces -- get a little pyautogui program running that does something simple then expand upon that until you are comfortable with how it works. Maybe work up to having it open a text file on your desktop |