Solved

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

Posted on 2004-03-29
2
157 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

707 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

13 Experts available now in Live!

Get 1:1 Help Now