🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.basic.visual
Article #222

Put WMP on Pause using a command-button

#222
From: sjoerd
Date: Sun, 06 Jul 2003 12:21
18 lines
1715 bytes
Hi,

I want to use a command-button to PAUSE the WindowsMediaPlayer. From the
WindowsMediaPlayer1.PlayState I know that pushing the Play/Pause-button on
the WindowsMediaPlayer changes the status from  (= Play) into 2 (= Pause).

So I thought code below should work to put the player on Pause. But it
doesn't.

Private Sub Command4_Click()
WindowsMediaPlayer.PlayState = 2
End Sub

Anyone any idea?

Thanks,

Sjoerd
Technical Details
Message-ID: <be948l$e9t$1@news2.tilbu1.nb.home.nl>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!skynet.be!skynet.be!213.51.129.3.MISMATCH!newshub1.home.nl!home.nl!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 110e3b,ebf17a129e600d3c,start
X-Google-Attributes: gid110e3b,public
X-Google-Thread: f645d,ebf17a129e600d3c,start
X-Google-Attributes: gidf645d,public
X-Google-Thread: f51ba,ebf17a129e600d3c,start
X-Google-Attributes: gidf51ba,public
X-Google-ArrivalTime: 2003-07-06 05:21:42 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!skynet.be!skynet.be!213.51.129.3.MISMATCH!newshub1.home.nl!home.nl!not-for-mail
From: "sjoerd" <iwi@iwi.myweb.nl>
Newsgroups: comp.lang.basic.visual,comp.lang.basic.visual.misc,dk.edb.programmering.basic.visual-basic
Subject: Put WMP on Pause using a command-button
Date: Sun, 6 Jul 2003 14:21:41 +0200
Organization: @Home Benelux
Lines: 20
Message-ID: <be948l$e9t$1@news2.tilbu1.nb.home.nl>
NNTP-Posting-Host: cc91542-a.hnglo1.ov.home.nl
X-Trace: news2.tilbu1.nb.home.nl 1057494101 14653 212.120.101.44 (6 Jul 2003 12:21:41 GMT)
X-Complaints-To: abuse@home.nl
NNTP-Posting-Date: Sun, 6 Jul 2003 12:21:41 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165