PLAYSOUND Function - Microsoft Docs

文章推薦指數: 80 %
投票人數:10人

Plays a sound file or system sound. Syntax. PLAYSOUND(" filename "|" alias ", isAlias, beep, synch ). Parameters. Name, Required/ ... 跳到主要內容 已不再支援此瀏覽器。

請升級至MicrosoftEdge,以利用最新功能、安全性更新和技術支援。

下載MicrosoftEdge 其他資訊 目錄 結束焦點模式 閱讀英文 儲存 目錄 閱讀英文 儲存 編輯 Twitter LinkedIn Facebook 電子郵件 目錄 PLAYSOUNDFunction 發行項 03/09/2022 閱讀時間2分鐘 3位參與者 本文內容 Playsasoundfileorsystemsound. Syntax PLAYSOUND("filename"|"alias",isAlias,beep,synch) Parameters Name Required/Optional DataType Description filename Required String Thenameofthesoundfileyouwanttoplay. alias Required String Asystemsoundrepresentedbyanalias. isAlias Required Boolean Specifieswhethertheprecedingexpressionisanaliasorfilename;useanon-zerovaluetospecifyanalias. beep Required Boolean SpecifieswhetherMicrosoftVisiobeepswhensoundcan'tbeplayed;useanon-zeronumbertobeep. synch Required Boolean Determineswhethersoundsareplayedasynchronously(0)orsynchronously(1). Remarks YoushouldusuallyplaysoundsasynchronouslysothatVisiocancontinueprocessingwhileitplaysthesound.Tostringseveralsoundstogether,playthemsynchronously,orsomemightfailtoplay. Example1 PLAYSOUND("chord.wav",0,0,0) Playsthewaveaudiofilechord.wavasynchronouslywithnowarningbeep. Example2 PLAYSOUND("SystemExclamation",1,0,0) Playsthesystemexclamationsoundasynchronouslywithnowarningbeep. 本文內容



請為這篇文章評分?