I have a Python script that launches TeamViewer when a condition is met. When I run the script by double-clicking it or edit with IDLE and choose to run everything works. When the condition is met, TeamViewer is launched with GUI.
Task Scheduler: Run a program - C:\Python27\python.exe Add arguments - teamviewer.py Start in - C:\Users\Username\Documents\Scripts
When trying to launch TeamViewer with Task Scheduler it is actually launched, I can see TeamViewer being started when I check Task Manager but there is no GUI.
I tried with os.startfile and with subprocess.Popen with the same result.
Any ideas?