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
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
solution for installing F...
by
Cascade
[
Today
at 04:16:40 pm]
Locate current record aft...
by
1HuntnMan
[
Today
at 03:52:59 pm]
StrToDateTime problems
by
cdbc
[
Today
at 03:10:28 pm]
What was your first compu...
by
BeniBela
[
Today
at 03:10:21 pm]
Drag and Drop Files; onDr...
by
Hansaplast
[
Today
at 02:40:25 pm]
How to set the Excel cell...
by
wp
[
Today
at 02:10:13 pm]
RPNCalc in Lazarus
by
Thaddy
[
Today
at 01:31:40 pm]
set zero values not to b...
by
Thaddy
[
Today
at 01:18:38 pm]
How to forward a Class in...
by
zamtmn
[
Today
at 01:12:55 pm]
Fantasy Worldbuilder; Pro...
by
Dzandaa
[
Today
at 12:39:06 pm]
[SOLVED] Transparent back...
by
wp
[
Today
at 11:19:10 am]
Why does FPC behave this ...
by
Thaddy
[
Today
at 10:39:31 am]
Parametrized Access SQL Q...
by
Zvoni
[
Today
at 09:45:53 am]
BS PanelTrans - transform...
by
Xenno
[
Today
at 05:54:55 am]
PngDrop: Reduce the size ...
by
ALLIGATOR
[
Today
at 04:05:04 am]
RTTIPropertyGrid expand
by
jamie
[
Today
at 03:17:43 am]
Sum GNU Anti Reversi 8x8 ...
by
Boleeman
[
Today
at 12:42:53 am]
Picture Process with BGRA...
by
circular
[January 12, 2026, 08:05:53 pm]
[SOLVED] Average color
by
LeP
[January 12, 2026, 06:51:24 pm]
HELP Why the WriteRowHeig...
by
wp
[January 12, 2026, 06:22:24 pm]
building a Calculator usi...
by
Dzandaa
[January 12, 2026, 03:51:20 pm]
How can Lazarus implement...
by
Tommi
[January 12, 2026, 03:46:47 pm]
how to relay a button cli...
by
srvaldez
[January 12, 2026, 01:15:46 pm]
what was your first pasca...
by
BSaidus
[January 12, 2026, 01:01:32 pm]
Lazarus and Libre Office
by
sydenis
[January 12, 2026, 11:07:38 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: [SOLVED] Systemwide audio mute (Read 1965 times)
pcurtis
Hero Member
Posts: 951
[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 20H2
Laz 2.2.0
FPC 3.2.2
Jurassic Pork
Hero Member
Posts: 1290
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
Hero Member
Posts: 951
Re: Systemwide audio mute
«
Reply #2 on:
October 29, 2020, 02:30:57 pm »
Just the job. Thanks.
Logged
Windows 10 20H2
Laz 2.2.0
FPC 3.2.2
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Graphics and Multimedia
»
Audio and Video
»
[SOLVED] Systemwide audio mute
TinyPortal
© 2005-2018