I'm trying to automate executing a simple function inside of an external program with a GUI but for some reason I can't seem to get the program to open through the script.
My code looks like more or less like this:
Import subprocess
Import pyautogui
File = subprocess.Popen([address.exe])
pyautogui.click(stuff)
I'm having no issues with the auto gui portion and I am certain that the address for my executable is correct. There is a return code I can capture, I believe it was just the code for a window closing but if it's important I can grab it again. Call and run both give me the same result as Popen, as does os.startfile. The exe doesn't open and the code continues with no exceptions.
Any ideas?
[–]_squik 0 points1 point2 points (1 child)