[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 186
  • Last Modified:

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

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
darkshadow88
Asked:
darkshadow88
1 Solution
 
DhaestCommented:
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
 
Z_BeeblebroxCommented:
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now