|
| Comment régler volume windows |
| Iniciado por Arnaud DELARUE, 08,mar. 2017 14:33 - 5 respuestas |
| |
| | | |
|
| |
Miembro registrado 7 mensajes |
|
| Publicado el 08,marzo 2017 - 14:33 |
Bonjour, Savez-vous comment régler le volume sonore global "Windows" par programmation. (Non celui d'un champ multimédia évidement). Interagir sur le volume de la carte son. Merci d'avance,
-- AGUDELO SAS - www.an2e.com - www.vidfit.fr |
| |
| |
| | | |
|
| | |
| |
| Publicado el 08,marzo 2017 - 16:50 |
C'est souvent plus rapide de chercher dans l'aide que de poster sur le forum :
https://doc.pcsoft.fr/fr-FR/?3051012
Ca m'a pris 4 secondes. |
| |
| |
| | | |
|
| | |
| |
| Publicado el 08,marzo 2017 - 17:02 |
Egalement en cherchant dans google :
http://forum.pcsoft.fr/fr-FR/pcsoft.fr.windev/43756-audio-comment-regler-volume-sonore-general/read.awp
Bref, c'est vite trouvé ! |
| |
| |
| | | |
|
| | |
| |
Miembro registrado 953 mensajes |
|
| Publicado el 08,marzo 2017 - 17:15 |
bonjour Arnaud,
voici un petit bout de code d'une classe et des ces méthodes pour mute/monter/descendre le volume windows
c_Volume_Manager est une Classe
CONSTANT APPCOMMAND_VOLUME_MUTE = 0x80000 APPCOMMAND_VOLUME_DOWN = 0x90000 APPCOMMAND_VOLUME_UP = 0xA0000 WM_APPCOMMAND = 0x319 FIN FIN
Procedure GLOBAL Volume_UP()
::Command(::APPCOMMAND_VOLUME_UP)
Procedure GLOBAL PRIVÉ Command(vp_command)
API("user32.dll","SendMessageW",SysFenActive(),::WM_APPCOMMAND,SysFenActive(),vp_command)
Procedure PUBLIQUE GLOBALE Volume_DOWN()
::Command(::APPCOMMAND_VOLUME_DOWN)
Procedure PUBLIQUE GLOBALE Volume_MUTE()
::Command(::APPCOMMAND_VOLUME_MUTE)
Pour l'utiliser ensuite, il suffit de faire :
c_Volume_Manager::Volume_Up() c_Volume_Manager::Volume_Down() c_Volume_Manager::Volume_Mute()
bon dèv  Mensaje modificado, 08,marzo 2017 - 17:18 |
| |
| |
| | | |
|
| | |
| |
Miembro registrado 7 mensajes |
|
| Publicado el 09,marzo 2017 - 11:45 |
Merci Christophe ! c'est impeccable et j'ai pu l'adapter à notre convenance.
Procedure PUBLIQUE GLOBALE Volume_DOWN() API("user32.dll","SendMessageW",SysFenActive(),0x319,SysFenActive(),0x90000)
Procedure PUBLIQUE GLOBAL Volume_UP() API("user32.dll","SendMessageW",SysFenActive(),0x319,SysFenActive(),0xA0000)
-- AGUDELO SAS - www.an2e.com - www.vidfit.fr |
| |
| |
| | | |
|
| | |
| |
Miembro registrado 54 mensajes |
|
| Publicado el 13,mayo 2020 - 09:51 |
| |
| |
| | | |
|
| | | | |
| | |
|