Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

CSharp&Vista =>Systemlautstärke ändern?

Empfohlene Antworten

Veröffentlicht

Hallo Zusammen,

Ich schreibe gerade an einer PC Steuerung. Ich will den PC mittels einer eigenen Fernbedienung fernsteuern. Das ganze funktioniert auch schon ganz gut.

Was ich jedoch nicht hinbekomme ist, wie ich die Systemlautstärke per CSharp ändern kann.

Also nicht einfach "Lauter" und "Leiser" sondern auf einen gezielten Wert zwischen 0-100.

Ich suche schon länger im INet aber entweder ich finde code der nicht läuft, oder ich finde nur code der die Lautstärke für das aktuelle programm ändert.

z.B.

[DllImport("winmm.dll")]

public static extern int waveOutSetVolume(IntPtr hwo, uint dwVolume);

Aber ich möchte eben nicht die Lautstärke für mein Prog ändern, sondern für alle Progs! So wie wenn ich direkt in der Lautstärkeregelung den Regler auf einen Wert setze.

Kann mir jemand helfen? Das kann doch nicht so schwer sein *verzweifel* :(

Viele Grüße

Stefan

Dokumentation auf MSDN lesen hilft immer:

If a device identifier is used, then the result of the waveOutSetVolume call applies to all instances of the device. If a device handle is used, then the result applies only to the instance of the device referenced by the device handle.

waveSetOutVolume Dokumentation

Den Identifier des Sounddevices müsstetst Du mit WMI kriegen können.

Wie das gemacht erfährt man hier:

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.