Python Forum
Python & Windows Media Player
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python & Windows Media Player
#1
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.


  #-------------------------------------------------------------------------------------
                                #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)
Reply


Messages In This Thread
Python & Windows Media Player - by Extra - Apr-01-2022, 11:04 PM
RE: Python & Windows Media Player - by menator01 - Apr-02-2022, 06:21 AM
RE: Python & Windows Media Player - by Extra - Apr-02-2022, 06:51 PM
RE: Python & Windows Media Player - by ndc85430 - Apr-02-2022, 07:16 PM
RE: Python & Windows Media Player - by deanhystad - Apr-02-2022, 07:31 PM
RE: Python & Windows Media Player - by menator01 - Apr-02-2022, 08:44 PM
RE: Python & Windows Media Player - by Extra - Apr-03-2022, 09:15 PM
RE: Python & Windows Media Player - by menator01 - Apr-03-2022, 10:01 PM
RE: Python & Windows Media Player - by bowlofred - Apr-03-2022, 11:56 PM
RE: Python & Windows Media Player - by Extra - Apr-05-2022, 10:34 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How would I be able to detect a media player app playing a video. phpjunkie 2 660 Oct-16-2023, 02:09 PM
Last Post: phpjunkie
  Adding variable to Python code - media sentiment analysis Marietje 3 2,625 May-25-2021, 05:15 PM
Last Post: jefsummers
  Python - Import file sequence into Media Pool jensenni 1 2,192 Feb-02-2021, 05:11 PM
Last Post: buran
  Open windows media player minimised TamP 1 2,289 Aug-02-2020, 08:40 PM
Last Post: Larz60+
  MEDIA ROOT ionezation 1 2,240 Mar-29-2019, 02:43 PM
Last Post: ichabod801
  If - a media player exists? Nwb 2 2,837 Jun-15-2018, 06:40 PM
Last Post: snippsat
  Script for media content and redirect in to a file puneet102 0 2,383 May-22-2018, 12:06 PM
Last Post: puneet102
  Pyglet Media: unjustifiable memory usage hbknjr 4 4,679 Aug-20-2017, 02:08 AM
Last Post: hbknjr

Forum Jump:

User Panel Messages

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