Autor Beitrag
LonghornUser
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 796



BeitragVerfasst: So 22.04.07 16:24 
Hallo,

ich möchte mit meinem Programm die systemweite Lautstärke ändern.
Am besten wäre eine Komponente (Ich hatte mal den "TSSVolumeController" von Torry.net probiert, hat aber keine Wirkung gezeigt) aber Code geht natürlich auch.

Danke schonmal.

Ciao LHUser
patrick dee
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 311

Win 98SE, WinXP
D3,D6
BeitragVerfasst: Mo 23.04.07 11:45 
Hei,

evtl. Hilft dir das weiter :

www.swissdelphicente.../showcode.php?id=630

gruss

Patrick

_________________
Glauben heißt nichts wissen ...
LonghornUser Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 796



BeitragVerfasst: Di 06.04.10 20:11 
Nach langer Zeit grabe ich diesen Thread mal wieder aus, denn nun brauche ich die Lösung doch wieder.

Ich habe obigen Code mal ausprobiert und er funktioniert auch. Allerdings nur für meine eigene Anwendung (Form1 ;)). Systemweit passiert hier gar nichts.

Wie bekomme ich es hin, dass die Änderungen auch systemweite Auswirkungen haben.
Xentar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2077
Erhaltene Danke: 2

Win XP
Delphi 5 Ent., Delphi 2007 Prof
BeitragVerfasst: Di 06.04.10 22:51 
Nach 3 Jahren? Respekt.. ;)

Du könntest nen Tastendruck simulieren, auf eine der virtuellen Tasten VK_VOLUME_UP VK_VOLUME_DOWN oder VK_VOLUME_MUTE.

_________________
PROGRAMMER: A device for converting coffee into software.
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Di 06.04.10 23:38 
Meine Tastatur hat die Tasten nicht. Und nu?

Zitat:
Nach 3 Jahren? Respekt..

Unter Vista gab es auch grundlegende Änderungen im Soundsubsystem.
blogs.msdn.com/larry...05/09/23/473351.aspx
blogs.msdn.com/larry...06/03/07/545451.aspx
blogs.msdn.com/larry...05/12/15/504158.aspx
Zitat:
Before Vista, all of the controls available to applications were system-wide - when you changed the volume using the wave volume APIs, you changed the hardware volume, thus effecting all the applications in the system.

Das hat sich zum Beispiel geändert.
LonghornUser Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 796



BeitragVerfasst: Mi 07.04.10 00:30 
user profile iconLuckie hat folgendes geschrieben Zum zitierten Posting springen:
Meine Tastatur hat die Tasten nicht. Und nu?


Dann funktioniert das ganze nicht? Das hätte ich nicht erwartet.

Ich wusste aber nicht, dass es hierfür sogar einen eigenen VirtualKey gibt :o

Ich habe mal eine Beispielanwendung erstellt. Kannst du die mal bei dir ausprobieren? Wäre sehr nett ;)
Einloggen, um Attachments anzusehen!
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mi 07.04.10 01:32 
OK, funktioniert. Wieder was gelernt. ;)