Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #72500

RE: Automating windows media player on win7

From Deogratius Musiige <DMusiige@sennheisercommunications.com>
Subject RE: Automating windows media player on win7
Date 2014-06-03 09:56 +0000
References <A804AEE67207BF42BAF8CEC79839C8D613BF3275@kbnmxexc11.Demant.com> <CAPTjJmrN0kUZ2A9Y9h0j_sL=nzmDa7aiVPAnZnbeLjRB=OOVCA@mail.gmail.com> <A804AEE67207BF42BAF8CEC79839C8D613BF4D23@kbnmxexc11.Demant.com> <CAPTjJmo7X809ov70tAvHJP9PDQpG18qLqgUG9ksvmSYezJnB6w@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.10612.1401791226.18130.python-list@python.org> (permalink)

Show all headers | View raw


Thanks for the good info Chris.
I'll look into the project. However, I hope that I can find a solution using OCX dispatch.
The dispatch provides all the functionalities I need.

Best regards / Med venlig hilsen
Deo

-----Original Message-----
From: Python-list [mailto:python-list-bounces+demu=senncom.com@python.org] On Behalf Of Chris Angelico
Sent: 3. juni 2014 11:46
Cc: python-list@python.org
Subject: Re: Automating windows media player on win7

On Tue, Jun 3, 2014 at 7:42 PM, Deogratius Musiige <DMusiige@sennheisercommunications.com> wrote:
> Hi Chris,
>
> I want to have wmplayer as part of my automitized test for a headset 
> via the USB HID.
>
> I want to be able to execute some of the following operations in my 
> python
> script:
>
> 1.       Play
>
> 2.       Get playing track
>
> 3.       Next
>
> 4.       Get active device
>
> 5.       …
>
> I am not sure if you are able to do this with your project

Play, definitely. Next, not specifically, but by sending the letter 'n' you can achieve that. Active device? Not sure what you mean there.

The one part that doesn't exist is "Get playing track". But you could manage this the other way around, by not invoking a playlist at all.
If you run "vlc --play-and-exit some_file.wav", then when that process terminates, the track has finished. Kill the process or send Ctrl-Q to skip to the next track. Keep track (pun intended) of what file you've most recently invoked.

I'm not sure how this ties in with your headset testing, though.

By the look of things, the Yosemite project isn't a "here it is, just deploy it" solution, but you may find that there's some useful code you can borrow.

ChrisA
--
https://mail.python.org/mailman/listinfo/python-list

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

RE: Automating windows media player on win7 Deogratius Musiige <DMusiige@sennheisercommunications.com> - 2014-06-03 09:56 +0000

csiph-web