Delphi application sound volume control

1 answer

Use this simple code to disable the main volume that it runs on my machine:

procedure TForm1.Button1Click(Sender: TObject); var i:Integer; begin for i:=0 to 100 do begin keybd_event($AE, MapVirtualKey($AE,0), 0, 0); keybd_event($AE, MapVirtualKey($AE,0), KEYEVENTF_KEYUP, 0); end; end; 
+2
source

All Articles