Einzelnen Beitrag anzeigen

CalganX

Registriert seit: 21. Jul 2002
Ort: Bonn
5.403 Beiträge
 
Turbo Delphi für Win32
 
#1

Windows-Systemsounds abspielen

  Alt 16. Okt 2005, 20:09
shmia hat hier gepostet, wie man Windows-Sounds abspielen kann:
Delphi-Quellcode:
uses mmSystem;

// ...
PlaySound('SoundName', 0, SND_ALIAS);
Anstelle von SoundName muss man einen der folgenden Werte einsetzen:
Code:
Sound Events Table
==================
SystemAsterisk   - Asterisk
Default          - Default Beep
EmptyRecycleBin  - when recycle bin is emptied
SystemExclamation - when windows shows a warning
SystemExit       - when Windows shuts down
Maximize         - when a program is maximized
MenuCommand      - when a menu item is clicked on
MenuPopup        - when a (sub)menu pops up
Minimize         - when a program is minimized to taskbar
MailBeep         - when email is received
Open             - when a program is opened
SystemHand       - when a critical stop occurs
AppGPFault       - when a program causes an error
SystemQuestion   - when a system question occurs
RestoreDown      - when a program is restored to normal size
RestoreUp        - when a program is restored to normal size from taskbar
SystemStart      - when Windows starts up
Close            - when program is closed
Ringout          - when (fax) call is made outbound and the line is ringing
RingIn           - incoming (fax) call
Diese Liste kommt von dieser Seite und BenjaminH hat sie hier gepostet.
  Mit Zitat antworten Zitat