🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.lang.basic.visual
5 messages
5 total messages Started by sjoerd Sun, 06 Jul 2003 12:21
Put WMP on Pause using a command-button
#222
Author: 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
Re: Put WMP on Pause using a command-button
#223
Author: Heiko
Date: Sun, 06 Jul 2003 13:22
31 lines
1952 bytes
Dear Sjoerd.
asking myself if you aren't able or willing ?
(to see the objectmodel of the WMP)

Private Sub Command1_Click()
    WindowsMediaPlayer.Pause
End Sub

:-)
"sjoerd" <iwi@iwi.myweb.nl> wrote:

>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
>
>
Re: Put WMP on Pause using a command-button
#224
Author: sjoerd
Date: Sun, 06 Jul 2003 18:05
47 lines
2451 bytes
Hi Heiko,

Sorry to disappoint you... Your solution doesn't work "(Object doesn't
support the property or method").
I tried your solution and many others already before I posted my question,
so I did try ;-) and i admit I ain't able ;-( yet '-)





"Heiko" <hg0180@aol.com> wrote in message
news:3f082227.515748@news.btx.dtag.de...
> Dear Sjoerd.
> asking myself if you aren't able or willing ?
> (to see the objectmodel of the WMP)
>
> Private Sub Command1_Click()
>     WindowsMediaPlayer.Pause
> End Sub
>
> :-)
> "sjoerd" <iwi@iwi.myweb.nl> wrote:
>
> >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
> >
> >
>
Re: Put WMP on Pause using a command-button
#225
Author: sjoerd
Date: Sun, 06 Jul 2003 18:09
40 lines
2229 bytes
Just forgot. Perhaps other (newer) version of WMP. I use version
9.00.00.3008.

sjoerd
"Heiko" <hg0180@aol.com> wrote in message
news:3f082227.515748@news.btx.dtag.de...
> Dear Sjoerd.
> asking myself if you aren't able or willing ?
> (to see the objectmodel of the WMP)
>
> Private Sub Command1_Click()
>     WindowsMediaPlayer.Pause
> End Sub
>
> :-)
> "sjoerd" <iwi@iwi.myweb.nl> wrote:
>
> >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
> >
> >
>
Re: Put WMP on Pause using a command-button
#226
Author: Heiko
Date: Sun, 06 Jul 2003 20:10
57 lines
2626 bytes
Hello Sjoerd

The Control to use is msdxm.ocx

Windows Media Player 2 ActiveX Control
Version 6.4.07.1119

dated about 1999, which shipped with Visual Interdev.
This has nothing to do with the GUI of your WMP, i use Version 8
parallel. There are several Versions of this Control. Try to download
another.
Heiko
:-)
"sjoerd" <iwi@iwi.myweb.nl> wrote:

>Just forgot. Perhaps other (newer) version of WMP. I use version
>9.00.00.3008.
>
>sjoerd
>"Heiko" <hg0180@aol.com> wrote in message
>news:3f082227.515748@news.btx.dtag.de...
>> Dear Sjoerd.
>> asking myself if you aren't able or willing ?
>> (to see the objectmodel of the WMP)
>>
>> Private Sub Command1_Click()
>>     WindowsMediaPlayer.Pause
>> End Sub
>>
>> :-)
>> "sjoerd" <iwi@iwi.myweb.nl> wrote:
>>
>> >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
>> >
>> >
>>
>
>
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads