[Tutor] Running windows media player

MD.Mahbubur Rahman jexca_b1693 at yahoo.com
Tue Nov 15 04:29:59 CET 2011


Hello friends,
I need to run mp3/ogg files with Windows Media Player from a python script.
I have the following code which only can start Windows Media Player. But I
dont know how to run a mp3/ogg file with this instance of Windows Media
Player:


from pywinauto import application

app = application.Application()
try:
    wmp = app.start_(   # connect_(path =
            ur"C:\Program Files\Windows Media Player\wmplayer.exe")
except application.ProcessNotFoundError:
    print "Error Message "

Can someone help me?

Br
Mahbub
-- 
View this message in context: http://old.nabble.com/Running-windows-media-player-tp32845242p32845242.html
Sent from the Python - tutor mailing list archive at Nabble.com.



More information about the Tutor mailing list