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.

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to