/ Forside / Teknologi / Udvikling / VB/Basic / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
VB/Basic
#NavnPoint
berpox 2425
pete 1435
CADmageren 1251
gibson 1230
Phylock 887
gandalf 836
AntonV 790
strarup 750
Benjamin... 700
10  tom.kise 610
Put WMP on Pause using a command-button
Fra : sjoerd


Dato : 06-07-03 13:22

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



 
 
Heiko (06-07-2003)
Kommentar
Fra : Heiko


Dato : 06-07-03 14:22

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
>
>


sjoerd (06-07-2003)
Kommentar
Fra : sjoerd


Dato : 06-07-03 19:06

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
> >
> >
>



sjoerd (06-07-2003)
Kommentar
Fra : sjoerd


Dato : 06-07-03 19:09

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
> >
> >
>



Heiko (06-07-2003)
Kommentar
Fra : Heiko


Dato : 06-07-03 21:11

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
>> >
>> >
>>
>
>


Søg
Reklame
Statistik
Spørgsmål : 177557
Tips : 31968
Nyheder : 719565
Indlæg : 6408878
Brugere : 218888

Månedens bedste
Årets bedste
Sidste års bedste