Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Graphics and Multimedia
»
Audio and Video
»
[SOLVED] Systemwide audio mute
Free Pascal
Website
Downloads
Wiki
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Bugtracker
IRC channel
Latest SVN
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
TLineSeries display every...
by
wp
[
Today
at 12:35:34 pm]
Copy File to MTP
by
dbannon
[
Today
at 12:31:09 pm]
Anyone using Fast-Reports...
by
Thaddy
[
Today
at 12:04:32 pm]
S.M.A.R.T.: How to read?
by
JernejL
[
Today
at 10:54:37 am]
doc (CHM) snapshot update...
by
Andrey Sobol
[
Today
at 10:26:09 am]
Streaming video to a web ...
by
BlueIcaro
[
Today
at 10:19:16 am]
ANN: TRichView 19 (rich t...
by
Sergey Tkachenko
[
Today
at 09:52:16 am]
Batch layer export
by
MarkMLl
[
Today
at 09:47:41 am]
QT 6?
by
marcov
[
Today
at 09:43:46 am]
TImagelist load at run ti...
by
torbente
[
Today
at 07:09:38 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: [SOLVED] Systemwide audio mute (Read 317 times)
pcurtis
Sr. Member
Posts: 377
[SOLVED] Systemwide audio mute
«
on:
October 29, 2020, 10:02:25 am »
Hi All,
How do I perform a system wide audio mute (MUTE not just set vol := 0) on Windows 10?
I have indicators on my keyboard that show when the system is muted.
Thanks in advance.
«
Last Edit: October 30, 2020, 05:27:43 am by pcurtis
»
Logged
Windows 10 / Linux Mint 20
Laz 2.10.0
FPC 3.2.0
Jurassic Pork
Hero Member
Posts: 880
Re: Systemwide audio mute
«
Reply #1 on:
October 29, 2020, 01:54:37 pm »
hello,
you want to mute audio with a sendmessage ?
try this :
Code: Pascal
[Select]
[+]
[-]
// uses windows
// const APPCOMMAND_VOLUME_MUTE : Integer = $80000;
// WM_APPCOMMAND : Integer = $319;
SendMessage
(
Application
.
Handle
,
WM_APPCOMMAND
,
0
,
APPCOMMAND_VOLUME_MUTE
)
;
Friendly, J.P
Logged
Jurassic computer : Sinclair ZX81 - Zilog Z80A à 3,25 MHz - RAM 1 Ko - ROM 8 Ko
pcurtis
Sr. Member
Posts: 377
Re: Systemwide audio mute
«
Reply #2 on:
October 29, 2020, 02:30:57 pm »
Just the job. Thanks.
Logged
Windows 10 / Linux Mint 20
Laz 2.10.0
FPC 3.2.0
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Graphics and Multimedia
»
Audio and Video
»
[SOLVED] Systemwide audio mute
TinyPortal
© 2005-2018