Apr-01-2022, 11:04 PM
Hello,
I got python to launch windows media player when I say "play music" and now I'm wondering if I can have it automatically play the "Music" playlist that I have created on WMP(Windows Media Player). Because right now I have to physically click on the "Music" playlist and hit the play button.
Is there a way to do that?
If so, how?
Thanks in advance.
I got python to launch windows media player when I say "play music" and now I'm wondering if I can have it automatically play the "Music" playlist that I have created on WMP(Windows Media Player). Because right now I have to physically click on the "Music" playlist and hit the play button.
Is there a way to do that?
If so, how?
Thanks in advance.
#-------------------------------------------------------------------------------------
#Open Stuff on the Computer
#-------------------------------------------------------------------------------------
#Open Windows Media Player
if ('music' in command) or ('media player' in command):
speak('Launching Music')
command = command.replace("music", "")
command = command.replace("media player", "")
musicApp = "C:\Program Files (x86)\Windows Media Player\wmplayer.exe"
os.startfile(musicApp)
