Solved

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

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

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…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

856 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