how to open apps using python

Solutions on MaxInterview for how to open apps using python by the best coders in the world

showing results for - "how to open apps using python"
Jerónimo
23 Mar 2017
1import os
2
3os.system("program_name") # To open any program by their name recognized by windows
4
5# OR
6
7os.startfile("path to application or any file") # Open any program, text or office document
Eris
05 Aug 2020
1dir = 'C:\\myprogram.exe'
2
3import os
4os.startfile(dir)
5os.system(dir)
6
7import subprocess
8subprocess.Popen([dir])
9subprocess.call(dir)
Elisa
01 Jun 2020
1import pyttsx3
2import subprocess 
3import os
4import time
5
6
7pyttsx3.speak("Hi user")
8time.sleep(2)
9pyttsx3.speak("you can open any apps in this coming list")
10time.sleep(3)
11print("You can open any app from this list:- ")  
12print("NOTEPAD \t GOOGLE\nVirtual Box \t unity \nEXIT ")
13
14while True:
15    # take input
16    
17    print("Chat with me which app to open : ", end='')
18    p = input().upper()
19    print(p)
20  
21    if ("NOTE" in p) or ("NOTES" in p) or ("NOTEPAD" in p) :
22        pyttsx3.speak("Opening , Notepad")
23        os.system("notepad.exe")
24        
25   
26  
27    elif ("GOOGLE" in p or "CHROME" in p):
28        pyttsx3.speak("opening chrome please wait")
29        time.sleep(3)
30        subprocess.call(['C:/Program Files (x86)/Google/Chrome/Application/chrome'])
31
32    
33    elif "UNITY" in p:
34        pyttsx3.speak("Opening unity")
35        subprocess.call(['file path of unity'])
36    
37        
38    elif ("EXIT" in p) or ("QUIT" in p) or ("CLOSE" in p):
39        print("thanks")
40        time.sleep(1)
41        pyttsx3.speak("Exiting this app thanks for using this app")
42        break
43  
44    else:
45        print("Is Invalid,Please Try Again")
46        pyttsx3.speak("its Invalid,Please try again ")
47        
queries leading to this page
open applications from pythonpython to open applicationopen applicaitons on windows with pythonhow to open application with pythonopen an application through pythonopen method in pythonhow to open a program at python windows from application in pythonhow to open an app with pythonopen app in pythonhow to open program in pythonhow to open a program in pythonhow o open any application usin gpythonopen every program using python by namemake apps with pythonhow to open apps using pythonopen other program pythonhow to make python open a app for youpython open application windowshow to open apps via pythonhow to run an application with pythonopen app by name pythonopen applications via pythonpython os open applicationopen applications with pythonopen application in pythonpython opens apppython to start an applicationhow to start an app with pythonopen application via pythonpython open system appsopening applications using pythonhow to open app with pythonhow to open an app using os modulehow to open a application in pythonmake a python program to open applicationhow to go to a open application from pythonopen desktop applications using pythonopening application using pythonopen desktop program by pythonwho to open a app with pythonopen any application using pythonmake python open applicationpython open program pythonhow to open program via pythonmodules to open any app in pythonhow to open external application using pythonpython open windows applicationpython3 open programmpython opening appshow to open programs with pythonhow to open an application useing pythonhow to open applications with pythonmake python go into a specific open programhow to open a app with pythonpython code which opens appshow to open program with pythonopen progrsmd with pythonpython script to open windows applicationhow to launch an application using pythoncall follow up application pythonhow to make python open an applicationopen app using pythonpython how to open an application windowshow to open application from pythonpython code to open applicationpython how to open programwith open pythonmake a program that open application using pythonpython open app codeopen applications by pythonmake python open a programpython how to open an application how to open an application using pythonopen programs with pythonhow to open apps with pythonhow to start an application with pythonopening any app in pythoncan we make app with pythonpython open any appopen other programs with pythonopen application pythonopen apps with pythonstart apps pythonuse python to open an applicationhow to make apps with pythonhow to have python open an application in your computerhow to make apps using python how to open applications in pythonopen an application pythonuse python to open applicationspython how to open a programopening apps using pythonopen application from within pythonopen cv pythonpython open appsopen application using pythonopen application with pythonsubprocess to open desktop appsopen applications from within pythonhow to make apps on pythonhow to open th python app with a codehow to start a application using pythonpython open programhow to make python open a programhow to control an application using pythonpython open appopen a application using pythonopen app pythoncan we open applications using pythonopen another application with python codepython code for opning an appopen apps from pythoncan i open applications with pythonpython open a programhow to open any application using pythonhow to open an application pythonhow to start an application in pythonhow to create apps with pythonhow to open a application using pythonopen an application from desktop pythonhow to open app using pythonhow to start application in pythonhow to open apps in pythonhow to open an app using pythonpython open applicationhow we can open apps with pythoncreate apps using pythonhow to open an application in pythonhow to open a desktop application using pythonopen an application with pythonhow to open program using pythonhow to open application using pythonopen program pythonmake python script open programopen a program with pythonopen an application using pythonways to open apps with pythonhow to open applications on window pythonhow to get running apps information in pythonhow to open a app using pythonhow to open python applicationopen program with pythonhow to open applications using pythonopen app with pythonhow to get python open applicationhow to get python to open an applicationhow to run a application of pythonopen applications pythonhow to open an application with pythonhow to develop apps using pythonhow to open apps using python