Hi there,
Can someone tell me how I can detect media buttons (play, stop etc) in
VB.NET. KeyPress, up, down events don't seem to capture them.
Thanks
Devron 3 4817
Hi Devron,
Do you mean the WindowsMediapla y ActiveX control?
What do you mean by capture the play or stop?
If you mean the key press on the AxWindowsMediaP layer1, you may try to
e(AxWMPLib._WMP OCXEvents_KeyDo wnEvent),
if you mean the status of the windows media you may use the status of
AxWindowsMediaP layer1.
Here is my code.
Private Sub Form2_Load(ByVa l sender As System.Object, ByVal e As
System.EventArg s) Handles MyBase.Load
AxWindowsMediaP layer1.URL = "c:\intro.w mv"
AxWindowsMediaP layer1.Ctlcontr ols.play()
End Sub
Private Sub AxWindowsMediaP layer1_KeyDownE vent(ByVal sender As Object,
ByVal e As AxWMPLib._WMPOC XEvents_KeyDown Event) Handles
AxWindowsMediaP layer1.KeyDownE vent
MsgBox(e.nKeyCo de.ToString())
MsgBox(AxWindow sMediaPlayer1.s tatus.ToString( ))
End Sub
I look forward to hearing from you.
Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
-------------------- From: "Devron Blatchford" <de****@auspine .com.au> Subject: Media Buttons Date: Tue, 4 Nov 2003 12:38:32 +1030 Lines: 9 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 Message-ID: <eI************ **@TK2MSFTNGP09 .phx.gbl> Newsgroups: microsoft.publi c.dotnet.langua ges.vb NNTP-Posting-Host: 203.108.249.179 Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP09.phx.g bl Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.vb:153360 X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.vb
Hi there,
Can someone tell me how I can detect media buttons (play, stop etc) in VB.NET. KeyPress, up, down events don't seem to capture them.
Thanks Devron
I have written my own media player interface, I wish to capture extended
keyboard keys/button. The idea being that when the user presses the KB
extended key Play > or Skip >> etc that I can respond in my application. The
events you describe below only fire (I think) if the media play AXcontrol is
embeded and visible.
Basically I am looking for an event that will fire when one of these
keys/buttons are pressed.
Am I missing something?
Thanks
Devron
"Peter Huang" <v-******@online.m icrosoft.com> wrote in message
news:tO******** ******@cpmsftng xa06.phx.gbl... Hi Devron,
Do you mean the WindowsMediapla y ActiveX control? What do you mean by capture the play or stop? If you mean the key press on the AxWindowsMediaP layer1, you may try to e(AxWMPLib._WMP OCXEvents_KeyDo wnEvent), if you mean the status of the windows media you may use the status of AxWindowsMediaP layer1.
Here is my code. Private Sub Form2_Load(ByVa l sender As System.Object, ByVal e As System.EventArg s) Handles MyBase.Load AxWindowsMediaP layer1.URL = "c:\intro.w mv" AxWindowsMediaP layer1.Ctlcontr ols.play() End Sub
Private Sub AxWindowsMediaP layer1_KeyDownE vent(ByVal sender As Object, ByVal e As AxWMPLib._WMPOC XEvents_KeyDown Event) Handles AxWindowsMediaP layer1.KeyDownE vent MsgBox(e.nKeyCo de.ToString()) MsgBox(AxWindow sMediaPlayer1.s tatus.ToString( )) End Sub
I look forward to hearing from you.
Regards, Peter Huang Microsoft Online Partner Support Get Secure! www.microsoft.com/security This posting is provided "as is" with no warranties and confers no rights. --------------------From: "Devron Blatchford" <de****@auspine .com.au> Subject: Media Buttons Date: Tue, 4 Nov 2003 12:38:32 +1030 Lines: 9 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 Message-ID: <eI************ **@TK2MSFTNGP09 .phx.gbl> Newsgroups: microsoft.publi c.dotnet.langua ges.vb NNTP-Posting-Host: 203.108.249.179 Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP09.phx.g bl Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.vb:153360 X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.vb
Hi there,
Can someone tell me how I can detect media buttons (play, stop etc) in VB.NET. KeyPress, up, down events don't seem to capture them.
Thanks Devron
Hi Devron,
Since Windows Form's messge works by a message window.
Usually a UI control will have a messge window, so I think you may try to
capture the KB extended key on the Form to see if they can be captured.
And I want to know what is the interface you are developing, can you
capture other message on the your interface?
So that we can isolate the problem.
I look forward to hearding from you.
Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
-------------------- From: "Devron Blatchford" <de****@auspine .com.au> References: <eI************ **@TK2MSFTNGP09 .phx.gbl>
<tO************ **@cpmsftngxa06 .phx.gbl>Subject: Re: Media Buttons Date: Tue, 4 Nov 2003 15:35:17 +1030 Lines: 76 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 Message-ID: <#q************ **@TK2MSFTNGP09 .phx.gbl> Newsgroups: microsoft.publi c.dotnet.langua ges.vb NNTP-Posting-Host: 203.108.249.179 Path:
cpmsftngxa06.ph x.gbl!cpmsftngx a09.phx.gbl!TK2 MSFTNGP08.phx.g bl!TK2MSFTNGP09 .
phx.gblXref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.vb:153377 X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.vb
I have written my own media player interface, I wish to capture extended keyboard keys/button. The idea being that when the user presses the KB extended key Play > or Skip >> etc that I can respond in my application.
Theevents you describe below only fire (I think) if the media play AXcontrol
isembeded and visible.
Basically I am looking for an event that will fire when one of these keys/buttons are pressed.
Am I missing something?
Thanks Devron
"Peter Huang" <v-******@online.m icrosoft.com> wrote in message news:tO******* *******@cpmsftn gxa06.phx.gbl.. . Hi Devron,
Do you mean the WindowsMediapla y ActiveX control? What do you mean by capture the play or stop? If you mean the key press on the AxWindowsMediaP layer1, you may try to e(AxWMPLib._WMP OCXEvents_KeyDo wnEvent), if you mean the status of the windows media you may use the status of AxWindowsMediaP layer1.
Here is my code. Private Sub Form2_Load(ByVa l sender As System.Object, ByVal e As System.EventArg s) Handles MyBase.Load AxWindowsMediaP layer1.URL = "c:\intro.w mv" AxWindowsMediaP layer1.Ctlcontr ols.play() End Sub
Private Sub AxWindowsMediaP layer1_KeyDownE vent(ByVal sender As
Object, ByVal e As AxWMPLib._WMPOC XEvents_KeyDown Event) Handles AxWindowsMediaP layer1.KeyDownE vent MsgBox(e.nKeyCo de.ToString()) MsgBox(AxWindow sMediaPlayer1.s tatus.ToString( )) End Sub
I look forward to hearing from you.
Regards, Peter Huang Microsoft Online Partner Support Get Secure! www.microsoft.com/security This posting is provided "as is" with no warranties and confers no
rights. -------------------- >From: "Devron Blatchford" <de****@auspine .com.au> >Subject: Media Buttons >Date: Tue, 4 Nov 2003 12:38:32 +1030 >Lines: 9 >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 >Message-ID: <eI************ **@TK2MSFTNGP09 .phx.gbl> >Newsgroups: microsoft.publi c.dotnet.langua ges.vb >NNTP-Posting-Host: 203.108.249.179 >Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP09.phx.g bl >Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.vb:153360 >X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.vb > >Hi there, > >Can someone tell me how I can detect media buttons (play, stop etc) in >VB.NET. KeyPress, up, down events don't seem to capture them. > >Thanks >Devron > > > This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: manoj |
last post by:
hi,
could some one tell how to design progress bar, volume
control and other buttons as in windows media player. I
mean look and feel.
thank you,
manoj
|
by: Jerry Spence1 |
last post by:
I am building an application and I require some media player buttons (play,
record, fast forward etc). They won't be controlling standard audio though.
There doesn't seem to be a set with VB.Net so I pinched the VB6 ones.
However they don't work too well as you have to load it with a media file
before you can enable some of the buttons, and I don't have a media file to
play.
I've been trying to make up some graphics but the result looks...
|
by: Shun |
last post by:
Hello ,
I am Designing an website using ASP.Net. I have designed the HTML template
using Dreamweaver 8, in that i have used the Media flash buttons. now i have
converted the Html page to ASP.net page. now my problem is with the media
flash buttons which i have used on the template can't view in the ASP.Net
page. but it is working in the browser. so please help me.
Thanx in advance
|
by: benmourra |
last post by:
Hi all,
I'm trying to create a web page using VS2005, ASP.NET 2.0, that will
allow me to choose from a list of media files on my computer and then
play my selection within an embedded Windows Media Player on the page.
I've been able to eventually find out how to embed the player into the
page by manually inserting code into the source view of my aspx file.
It plays the file specified in the source view, but I'd like to be able
to...
|
by: Herb |
last post by:
I've found how to use javascript to embed a Windows Media Player in a web
page. How do I go about controlling the player in response to user input?
There should be calls to start, stop and also to play at a certain
position.
For instance, I'd like to have a video playing. Along with that, I'd
present a list of 10 chapters within the video. When a user clicks a link,
the player should play the appropriate chapter or section. Thanks.
| |
by: SeanBoyWalton |
last post by:
Hi,
I'm currently trying to build a website for a DJ friend of mine and I have come stuck with a couple of issues.
I've searched everywhere and put some code together but I still have problems.
I want to be able to map controls of the media player to images on the page
ie - when user clicks play image - song plays. I can currently get it working in IE but I can't get it to work in Firefox.
Problems:
1. The buttons (image buttons)...
|
by: Shaikh shahnawaz |
last post by:
hi
i am using object to use media player and the object is as follows:
here i am also using custom buttons to play and stop media file it's working fine in IE but not work in firefox and opera.
<object id="WMPlay" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
height="340px"...
|
by: Ali Rizwan |
last post by:
Hi all,
How can i handle windows media player.
I have added a gedget which handles media player in my shell app.
If you want to hide media player or want to play mediaplayer in hidden mode my gadget will handle then mediaplayer. It will show the current playing item, playlist items, time, play/pause buttons etc.
If some body has used foxy tunes addon for firefox then he can understand what actually i want to do...
Thanx
>> ALI <<
|
by: sonia.sardana |
last post by:
I have two buttons Play & Full Screen. If u click on Play Button,Movie starts..Movie Starts within 15-20 Seconds.....When u clik on Full Screen Button.,Media Player is Maximised. I want the if the media player is maximised,& when we click on ESC Button, Media player is minimsed.......But I m nota ble to achiev that.. Secondly I do not know that which event is used for dat KeyPress Or keyDown.. I have used both of these,But None is working/..
...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |