[Tutor] Running windows media player
Timo
timomlists at gmail.com
Wed Nov 16 11:40:14 CET 2011
Op 15-11-11 04:29, MD.Mahbubur Rahman schreef:
> 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:
I don't have Windows, so can't test, but according to this Microsoft
page [1], you can give some comandline parameters to WMP.
Cheers,
Timo
[1] http://support.microsoft.com/kb/241422/en-us
>
>
> 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
More information about the Tutor
mailing list