Python Forum
MAP tool automation
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MAP tool automation
#1
>>>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
Reply
#2
Are you sure there is no way to supply the "Yes" as a command line argument ?
Reply
#3
no command line
Reply
#4
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
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020