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


Groups > comp.lang.python > #72500

RE: Automating windows media player on win7

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <DMusiige@sennheisercommunications.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.004
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'deploy': 0.09; 'finished.': 0.09; 'juni': 0.09; 'next,': 0.09; 'solution,': 0.09; 'testing,': 0.09; 'things,': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'windows': 0.15; '"here': 0.16; "'n'": 0.16; 'chris,': 0.16; 'invoked.': 0.16; 'invoking': 0.16; 'received:10.43.68.248': 0.16; 'skip:[ 50': 0.16; 'subject:media': 0.16; 'subject:windows': 0.16; 'ties': 0.16; 'track.': 0.16; 'win7': 0.16; 'all.': 0.16; 'wrote:': 0.18; 'message-----': 0.19; 'cc:addr:python.org': 0.22; 'skip': 0.24; 'header:Received:8': 0.24; 'cc:2**0': 0.24; 'player': 0.26; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; "doesn't": 0.30; 'received:216.32': 0.30; 'received:bigfish.com': 0.30; "i'm": 0.30; 'url:mailman': 0.30; 'code': 0.31; 'that.': 0.31; 'though.': 0.31; 'file': 0.32; 'there.': 0.32; 'run': 0.32; 'url:python': 0.33; 'device': 0.34; 'could': 0.34; 'info': 0.35; 'operations': 0.35; 'test': 0.35; 'but': 0.35; 'received:10.43': 0.36; 'url:listinfo': 0.36; 'next': 0.36; 'useful': 0.36; 'thanks': 0.36; "i'll": 0.36; 'url:org': 0.36; 'email addr:python.org': 0.37; 'project': 0.37; 'received:10': 0.37; 'skip:- 10': 0.38; 'pm,': 0.38; 'track': 0.38; 'subject:': 0.39; 'sure': 0.39; 'url:mail': 0.40; 'how': 0.40; 'most': 0.60; 'hope': 0.61; "you've": 0.63; 're:': 0.63; 'email name:python-list': 0.65; 'to:addr:gmail.com': 0.65; 'media': 0.66; 'around,': 0.84; 'it"': 0.84; 'subject:player': 0.84; '\xe2\x80\xa6': 0.84
X-Forefront-Antispam-Report CIP:185.34.132.54; KIP:(null); UIP:(null); IPV:NLI; H:mail.demant.com; RD:mail1.demant.com; EFVD:NLI
X-SpamScore 13
X-BigFish VPS13(zz98dI9371Ic89bh542I1432I1447Izz1f42h2148h1ee6h1de0h1fdah2073h2146h1202h1e76h2189h1d1ah1d2ah21bch1fc6h208ch1f8fiz8dhz1de098h8275bh8275dh1de097h186068hz30ih109h2a8h839h93fhd25hf0ah1288h12a5h12a9h12bdh137ah13b6h1441h14ddh1504h1537h153bh15d0h162dh1631h1758h18e1h1946h19b5h1b0ah224fh1cb5h1d0ch1d2eh1d3fh1dfeh1dffh1e1dh1fe8h1ff5h2152h2216h22d0h2336h2438h2461h2487h24ach24d7h2516h2545h255eh25f6h2605h268bh26d3h27e2h28a1h1307i)
Received-SPF fail (mail161-ch1: domain of sennheisercommunications.com does not designate 185.34.132.54 as permitted sender) client-ip=185.34.132.54; envelope-from=DMusiige@sennheisercommunications.com; helo=mail.demant.com ; l.demant.com ;
From Deogratius Musiige <DMusiige@sennheisercommunications.com>
To Chris Angelico <rosuav@gmail.com>
Subject RE: Automating windows media player on win7
Thread-Topic Automating windows media player on win7
Thread-Index Ac9/Ao92/LcZpfCnSxeQrPxiZS+XUP//7ROA///TLzCAADp4gP//3GPw
Date Tue, 3 Jun 2014 09:56:19 +0000
References <A804AEE67207BF42BAF8CEC79839C8D613BF3275@kbnmxexc11.Demant.com> <CAPTjJmrN0kUZ2A9Y9h0j_sL=nzmDa7aiVPAnZnbeLjRB=OOVCA@mail.gmail.com> <A804AEE67207BF42BAF8CEC79839C8D613BF4D23@kbnmxexc11.Demant.com> <CAPTjJmo7X809ov70tAvHJP9PDQpG18qLqgUG9ksvmSYezJnB6w@mail.gmail.com>
In-Reply-To <CAPTjJmo7X809ov70tAvHJP9PDQpG18qLqgUG9ksvmSYezJnB6w@mail.gmail.com>
Accept-Language da-DK, en-US
Content-Language en-US
X-MS-Has-Attach
X-MS-TNEF-Correlator
x-originating-ip [10.100.3.117]
Content-Type text/plain; charset="utf-8"
Content-Transfer-Encoding base64
MIME-Version 1.0
X-OriginatorOrg sennheisercommunications.com
X-FOPE-CONNECTOR Id%0$Dn%*$RO%0$TLS%0$FQDN%$TlsDn%
Cc "python-list@python.org" <python-list@python.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.10612.1401791226.18130.python-list@python.org> (permalink)
Lines 33
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1401791226 news.xs4all.nl 2856 [2001:888:2000:d::a6]:56612
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:72500

Show key headers only | 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