Solved

How can I make my program respond to the Play/Stop/Next Track... buttons on newer keyboards?

Posted on 2004-03-29
2
158 Views
Last Modified: 2010-05-02
I made an MP3-playing program (Quinnsoft MP3 Player, www.quinnsoft.com/programs/qsmp3.htm) and would like it to be able to respond to pressing the Play/Pause, Stop, Next Track, and Previous Track buttons on some Logitech and Microsoft keyboards.  How can I do this?
0
Comment
Question by:darkshadow88
2 Comments
 
LVL 53

Expert Comment

by:Dhaest
ID: 10710748
Add the form_keydown to your project. Run it once and break everytime when you press a special key. So you'll get the keycode of the key you pressed. Just add a corresponding action to the key.
0
 
LVL 7

Accepted Solution

by:
Z_Beeblebrox earned 75 total points
ID: 10715515
I think you will need to subclass your form. If you don't know how to do this, there are lots of tutorials on the web. Once you have done that, you need to handle some special windows messages. They are explained in this link:

http://www.codeguru.com/Cpp/W-P/system/keyboard/article.php/c5655/

Zaphod.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now