![]() |
Windows-Systemsounds abspielen
shmia hat
![]()
Delphi-Quellcode:
Anstelle von SoundName muss man einen der folgenden Werte einsetzen:
uses mmSystem;
// ... PlaySound('SoundName', 0, SND_ALIAS);
Code:
Diese Liste kommt von
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 ![]() ![]() |
Re: Windows-Systemsounds abspielen
In der Unit Windows befindet sich auch noch einiges dazu :roll:
Delphi-Quellcode:
Für Typ hat man folgendes zur Auswahl:
Uses Windows;
// ... MessageBeep(Typ);
Code:
Sound Events Table
================== MB_ICONASTERISK - Asterisk 0 - Default Beep MB_ICONEXCLAMATION - when windows shows a warning MB_ICONHAND - when a critical stop occurs MB_ICONQUESTION - when a system question occurs -1 - internal PC speaker (Beep) |
Alle Zeitangaben in WEZ +1. Es ist jetzt 12:14 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz