Difference between revisions of "Sound"

From Wiki
Jump to: navigation, search
 
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
__NOTOC__
+
{{command header|Miscellaneous}}
== sound ==
+
 
'''Miscellaneous'''
+
{{body|sound [filename]|The [[sound]] command plays a wave file or the SystemDefault beep.}}
=== Synopsis ===
+
 
[[sound]] [filename]
+
  
=== Description ===
 
The [[sound]] command plays a wave file or the SystemDefault beep.
 
 
==== Example ====
 
==== Example ====
 
<pre>
 
<pre>
Line 16: Line 13:
 
</pre>
 
</pre>
  
''Note: For File Use:''
 
''If the sound file is in a directory which exists in your dos PATH environment variable, you do not need to include a full path. Try this:''
 
  
''sound chimes.wav''
+
{{Note|For File Use:
 +
 
 +
 
 +
If the sound file is in a directory which exists in your dos PATH environment variable, you do not need to include a full path. Try this:
 +
 
 +
sound chimes.wav
 +
 
 +
 
 +
You should hear the windows chimes sound. Sound will also accept absolute paths.
 +
 
 +
sound c:\windows\media\chimes.wav}}
  
''You should hear the windows chimes sound. Sound will also accept absolute paths.''
 
  
''sound c:\windows\media\chimes.wav''
+
=See Also=
----
+
{{Miscellaneous}}
{|
+
| Width=200px | [[Main_Page]] || Width=200px | [[Documentation]] || Width=200px |
+
[[Documentation#Miscellaneous |Miscellaneous ]]
+
|}
+

Latest revision as of 13:23, 13 September 2007


Synopsis

sound [filename]

Description

The sound command plays a wave file or the SystemDefault beep.


Example

if #charghost = YES
{
sound
halt
}


Note: For File Use:


If the sound file is in a directory which exists in your dos PATH environment variable, you do not need to include a full path. Try this:

sound chimes.wav


You should hear the windows chimes sound. Sound will also accept absolute paths.

sound c:\windows\media\chimes.wav


See Also

Miscellaneous

  • Miscellaneous commands
display Shows a message
execute Executes an external program
linesPerCycle Sets the execution speed
set sets a variable to a value (variable assignment)
send Sends a HTTP request to a server and runs the code that is returned
shutDown Shuts your computer down
sound Plays a wave file or the SystemDefault beep
str performs a operation on a string
tile retrieves information about tiles