Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1390 connectés 

  FORUM HardWare.fr
  Programmation
  C++

  Comment recuperer les code des touches multimedia d'un clavier

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Comment recuperer les code des touches multimedia d'un clavier

n°268417
da_s_monk
Awwwww! Good Job!
Posté le 12-12-2002 à 19:12:29  profilanswer
 

Bonjour a tous
 
je voulais savoir comment on recupere les codes des touches des claviers multimedia (je sais pas si c tjrs de l'ascii c pour sa que je mes code)
 
merci d'avance

mood
Publicité
Posté le 12-12-2002 à 19:12:29  profilanswer
 

n°268714
gatorette
Posté le 12-12-2002 à 22:45:09  profilanswer
 

msdn a écrit :

Keyboard Keys for Browsing and Other Functions:
Microsoft Windows® provides support for keyboards with special keys for browser functions, media functions, application launching, and power management. The WM_APPCOMMAND supports the extra keyboard keys. In addition, the ShellProc function is modified to support the extra keyboard keys.
 
It is unlikely that a child window in a component application will be able to directly implement commands for these extra keyboard keys. So when one of these keys is pressed, DefWindowProc will send a WM_APPCOMMAND message to a window. DefWindowProc will also bubble the WM_APPCOMMAND message to its parent window. This is similar to the way context menus are invoked with the right mouse button, which is that DefWindowProc sends a WM_CONTEXTMENU message on a right button click, and bubbles it to its parent. Additionally, if DefWindowProc receives a WM_APPCOMMAND message for a top-level window, it will call a shell hook with code HSHELL_APPCOMMAND.
 
Windows also supports the Microsoft IntelliMouse® Explorer, which is a mouse with five buttons. The two extra buttons support forward and backward browser navigation. For more information, see XBUTTONs.


 
(pris de http://msdn.microsoft.com/library/ [...] input.asp)


---------------
each day I don't die is cheating

Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  C++

  Comment recuperer les code des touches multimedia d'un clavier

 

Sujets relatifs
Recuperer le flux clavier.Cherche le code Acsii de la touche effacé
comment remplir le buffer clavier, mais sans toucher au clavier ?Recuperer un parametre a partir d'un jSP
[php] recuperer l adresse ip du visiteur et l afficherAlleger mon code (inside) siouplait...........
[HTML]Comment recuperer ts les elt selectionnées d'une boîte liste?Code qui permet de virer la barre d'ascenseur à droite inutile. OK
Code souce de XP , qui n'en veut !!! 
Plus de sujets relatifs à : Comment recuperer les code des touches multimedia d'un clavier


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR