Function Reference

首页  后退  前进

SoundSetWaveVolume

 

设置系统音量的百分比.

 

SoundSetWaveVolume ( percent )

参数

percent

0 到 100 之间的数字

返回值

成功:

返回 1.

失败:

返回 0, 如果 "百分比" 参数值无效, 则 @error 设置为 1.

备注

本函数控制的是波形音量, 而非主音量; 即使设置百分比值为 0, 也不代表静音状态.

 

在 Windows Vista 中, 没有系统级的波形音量.

函数只能修改脚本自己的波形音量, 不能用来改变其他程序的波形音量.

相关

SoundPlay

函数示例

; Set the volume to 50%.
SoundSetWaveVolume(50)

----------------------------------------