# Plugin - Win7Audio - Rainmeter官方文档 - 雨滴社区 - Powered by Discuz!
 找回密码
 点击注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 2858|回复: 0

Plugin - Win7Audio

[复制链接]

签到天数: 265 天

[LV.8]以坛为家I

发表于 2012-5-27 14:27:03 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?点击注册

x


【版权声明】
   本文档翻译者:雨滴社区-jyf823691221
   本文档仅用于雨滴社区站内交流,禁止转载,由此引发的一切责任及版权纠纷由转载、传播本文档者负责。

Win7Audio

Plugin=Plugins\Win7AudioPlugin.dll

这个插件在Windows Vista或更新版本系统中控制声音设备和音量.不支持以前版本的系统.这个插件由Reiswaffel编写.

 

用法:

 

[MeasureWin7Audio]

Measure=Plugin

Plugin=Win7AudioPlugin.dll

 

返回当前的声音设备(使用String meter)和当前音量(使用measure需要音量数值时)的百分比大小(0-100).

 

Bangs:

当前声音设备和音量由!CommandMeasure语句控制,将信息发送到插件.查看examples中简单的ini文件配置

!CommandMeasure "MeasureWin7Audio" "ToggleNext"

当最后一个设备处于活动状态时,跳到第一.

!CommandMeasure "MeasureWin7Audio" "TogglePrevious"

当第一个设备处于活动状态时,跳到最后.

!CommandMeasure "MeasureWin7Audio" "SetOutputIndex i"

设置特定设备的索引,这取决您的系统设置和输出设备的数量.

!CommandMeasure "MeasureWin7Audio" "ToggleMute"

切换静音/非静音.

!CommandMeasure "MeasureWin7Audio" "SetVolume x"

将音量设置为x(0-100).这将禁用静音.

!CommandMeasure "MeasureWin7Audio" "ChangeVolume x"

更改音量到x%.使用负数来降低音量.这将禁用静音.

 

示例皮肤

 

[Rainmeter]

DynamicWindowSize=1

BackgroundMode=2

SolidColor=0,0,0,150

Update=1000

 

;  Returns the name of the current sound device and percent volume level

[MeasureWin7Audio]

Measure=Plugin

Plugin=Win7AudioPlugin.dll

 

;  Display the current sound device name

[MeterDeviceName]

Meter=String

MeasureName=MeasureWin7Audio

X=5

Y=0

FontFace=Trebuchet MS

FontSize=11

FontColor=255,255,255,255

StringAlign=LEFT

AntiAlias=1

 

;  Toggle to the next installed sound device (wraps back to first)

[MeterChangeDevice]

Meter=String

FontFace=Trebuchet MS

FontSize=15

FontColor=255,255,255,255

AntiAlias=1

X=90

Y=-3

Text="+"

LeftMouseUpAction=!CommandMeasure "MeasureWin7Audio" "ToggleNext"

 

;  Change the volume down by 10%

[MeterVolumeDown]

Meter=String

FontFace=Trebuchet MS

FontSize=15

FontColor=255,255,255,255

AntiAlias=1

X=0

Y=20

Text="<<"

LeftMouseUpAction=!CommandMeasure "MeasureWin7Audio" "ChangeVolume -10"

 

[MeasureVolBarBackground]

Measure=Calc

Formula=1

[MeterVolBarBackground]

Meter=Bar

MeasureName=MeasureVolBarBackground

BarOrientation=Horizontal

BarColor=150,150,150,255

W=60

H=6

X=25

Y=29

 

; Displays the current volume percentage on a Bar meter

[MeterCurrentVolumeBar]

Meter=Bar

MeasureName=MeasureWin7Audio

BarOrientation=Horizontal

W=60

H=6

X=25

Y=29

 

;  Change the volume up by 10%

[MeterVolumeUp]

Meter=String

FontFace=Trebuchet MS

FontSize=15

FontColor=255,255,255,255

AntiAlias=1

X=83

Y=20

Text=">>"

LeftMouseUpAction=!CommandMeasure "MeasureWin7Audio" "ChangeVolume 10"

 

[MeasureVolPercent]

Measure=Calc

Formula=MeasureWin7Audio

 

;  Displays the percentage volume level as text

[MeterVolPercent]

Meter=String

MeasureName=MeasureVolPercent

X=55

Y=40

W=110

H=15

FontFace=Trebuchet MS

FontSize=10

FontColor=255,255,255,255

StringAlign=Center

AntiAlias=1

Text=%1%

 

;  Toggles "mute" for the current device

[MeterVolToggleMute]

Meter=String

X=5

Y=60

FontFace=Trebuchet MS

FontSize=10

FontColor=255,255,255,255

StringAlign=Left

AntiAlias=1

Text=MUTE

LeftMouseUpAction=!CommandMeasure "MeasureWin7Audio" "ToggleMute"

 

;  Set volume for current device to 50%

[MeterVolSet50%]

Meter=String

X=78

Y=60

FontFace=Trebuchet MS

FontSize=10

FontColor=255,255,255,255

StringAlign=Left

AntiAlias=1

Text=50%

LeftMouseUpAction=!CommandMeasure "MeasureWin7Audio" "SetVolume 50"

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 点击注册

本版积分规则

快速回复 返回顶部 返回列表