- UID
- 376221
- 主题
- 注册时间
- 2013-8-15
- 在线时间
- 小时
- 最后登录
- 1970-1-1
签到天数: 3 天 [LV.2]偶尔看看I
|
发表于 2013-8-15 22:08:02
|
显示全部楼层
用不了啊 亲 代码如下 帮忙忙看看吧!2013版的酷我!
[Rainmeter]
Author=无界 & 风飏
Update=200
MouseActionCursor=0
ContextTitle=重置歌词(&R)
ContextTitle2=查看歌词(&L)
ContextTitle3=打开播放器(&W)
ContextTitle4=更新歌词地址列表(&F)
ContextAction=[!CommandMeasure "Lua" "load_lrc()" "#Currentconfig#"]
[!Update]
ContextAction2=[!CommandMeasure "Lua" """SKIN:Bang('"'..url..'"')"""
"#Currentconfig#"]
ContextAction3=[!Commandmeasure "mPlayer" Openplayer]
ContextAction4=[!CommandMeasure "Lua" "makefilelist(1)"]
;OnRefreshAction=[!CommandMeasure "Lua" "load_lrc()"
"#Currentconfig#"]
[Metadata]
Name=WLM
Config=
Description=迷你黑光播放器(TTPlayer含歌词)
Version=3.X.6
License=
Author=风飏
[Variables]
Update=200
;皮肤刷新率
PlayerName=WMP
;播放器类型
;AIMP写为: AIMP
;foobar2000写为:CAD
;iTunes写为:iTunes
;Winamp写为:winamp
;Windows Media Player写为:WMP
;千千静听/酷狗/QQ音乐/酷我/多米/AIRPLAY/写为:WLM
PlayerPath=G:\Program Files (x86)\kuwo\KWMUSIC2013\KwMusic.exe
;播放器运行地址(只有当NowPlaying无法正常打开播放器时才需要填写)
Lyric=""
Lyric1=""
Lyric2=""
status=0
;LUA___________________________________________
[Lua]
Measure=Script
Scriptfile=lrc.lua
UpdateDivider=1
filename=%A %T;%A - %T;%A-%T;%T - %A;%T-%A;%T;***
;歌词文件名格式(%A 艺术家,%T 标题;*** 最大模糊匹配;英文分号结束)
filepath=F:\影音\W.我的音乐;
;歌词文件地址(英文分号结束)
;(最大模糊匹配将检索子目录)
monitortrackchange=0
;让lua监测歌曲切换(0,否;1,是)
;(只有当NowPlaying检测不到歌曲切换时才需要打开)
makefilelist=0
;皮肤每次加载时更新歌词文件地址列表
;----------------------------TIP
;主歌词输出#Lyric#
;第一语言歌词输出#Lyric1#
;第二语言歌词输出#Lyric2#
;状态输出#status#:0,未匹配到歌词文件;1,正常匹配到歌词;2,匹配到双
语歌词
;输入播放器类型#PlayerName#
; --
;输入艺术家、标题、媒体文件地址[mArtist]、[mPlayer]、[mFile]
; --若[mTitle]为空值,则歌词不会被加载。
;输入播放进度[mPosition],检测播放长度[mDuration]
; --若检测不到[mDuration],则lua将自行计算播放进度
;函数makefilelist(1) --更新歌词文件列表(重建FileList.tmp)
;函数load_lrc() --重新加载歌词
;函数trackchange() --执行发生歌曲切换时相应的动作
;函数mposition('+1')/('-1') --播放进度+1/-1秒。用于调整歌词
进度。
;;函数p() --暂停/继续播放进度的计算和歌词的滚动。(
只当WLM时才有效)
;;函数plyer_type_change('WLM')/('WMP') --播放器类型改变为WLM/WMP,
并刷新当前皮肤。
;语句SKIN:Bang('"'..url..'"') --打开歌词文件(注意因为包含英文双引号,
所以在Bang中书写需要用”“”包围)
;语句pause = ‘p’ --暂停播放进度的计算和歌词的滚动
;语句pause = nil --继续播放进度的计算和歌词的滚动
;绘图_________________________________________
[Bg]
Meter=Image
X=0
Y=0
ImageName=Images\bg24.png
ImageCrop=0,0,300,115
MouseScrollUpAction=[!CommandMeasure "mPlayer" "Setposition +5"]
MouseScrollDownAction=[!CommandMeasure "mPlayer" "Setposition -5"]
[Toggler]
Meter=Image
X=257
Y=37
W=25
H=52
SolidColor=200,200,200,1
LeftMouseUpAction=[!SetVariable status ((#status#+1)%3)]
MouseScrollUpAction=[!SetVariable status ((#status#+1)%3)]
MouseScrollDownAction=[!SetVariable status ((#status#+2)%3)]
DynamicVariables=1
MouseActionCursor=1
;WMP_Infor_________________________________________
[MeterTitle]
Meter=STRING
MeterStyle=Title_#status#
X=55
Y=45
W=200
SolidColor=0,0,0,1
FontSize=10
StringStyle=BOLD
StringAlign=Left
FontColor=0,128,192
FontFace=微软雅黑
AntiAlias=1
ClipString=1
X=300
Y=25
Hidden=0
DynamicVariables=1
LeftMouseUpAction=[!CommandMeasure "Lua" "load_lrc()"
"#Currentconfig#"][!Update]
MouseOverAction=[!SetOption #CurrentSection# FontColor 250,250,250]
MouseLeaveAction=[!SetOption #CurrentSection# FontColor 0,128,192]
MouseScrollUpAction=[!CommandMeasure "Lua" "mposition('+1')"][!
Update]
MouseScrollDownAction=[!CommandMeasure "Lua" "mposition('-1')"][!
Update]
[MeterArtist]
Meter=STRING
MeterStyle=Artist_#status#
Y=67
H=15
W=200
SolidColor=0,0,0,1
FontFace=微软雅黑
FontSize=9
FontColor=127,127,127,255
ClipString=1
AntiAlias=1
StringAlign=Left
DynamicVariables=1
;METER_STYLE__________________________________________
[Title_0]
Text=[mPlayer]
H=17
[Title_1]
H=39
Text=#Lyric1#
[Title_2]
H=17
Text=#Lyric1#
[Artist_0]
Text=[mArtist]
X=55
Y=67
[Artist_1]
Hidden=1
[Artist_2]
Text=#Lyric2#
X=50
;WMP_CONTROL_________________________________________
[MeterPannel]
Meter=IMAGE
X=165
Y=75
W=90
H=20
Hidden=0
SolidColor=255,255,255,1
MouseOverAction=[!ShowMeterGroup BUTTON1][!Update]
MouseLeaveAction=[!HideMeterGroup BUTTON1][!Update]
[MeterPrev]
Meter=BUTTON
ButtonImage=Images\Prev_a.png
X=195
Y=80
ToolTipType=0
Group=BUTTON1
Hidden=1
LeftMouseDownAction= [!PluginBang "mPlayer Previous"]
[MeterPlay]
Meter=BUTTON
ButtonImage=Images\[mState].png
X=215
Y=80
ToolTipType=0
DynamicVariables=1
Group=BUTTON1
Hidden=1
LeftMouseDownAction= [!PluginBang "mPlayer PlayPause"][!
CommandMeasure "Lua" "p()"]
Hidden=0
DynamicVariables=1
[MeterNext]
Meter=BUTTON
ButtonImage=Images\next_a.png
X=235
Y=80
ToolTipType=0
Group=BUTTON1
Hidden=1
LeftMouseDownAction= [!PluginBang "mPlayer Next"]
;WMP_MEASURES_________________________________________
[mPlayer]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=#PlayerName#
PlayerType=TITLE
PlayerPath=#PlayerPath#
DisableLeadingZero=0
Substitute="":"N\A"
TrackChangeAction=[!CommandMeasure "Lua" "trackchange()"
"#Currentconfig#"]
[mArtist]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=ARTIST
Substitute=" (酷我音乐盒)":"","":"N\A"
[mPosition]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=POSITION
[mProgress]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=PROGRESS
[mDuration]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=DURATION
[mState]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=STATE
IfAboveValue=1
IfAboveAction=[!CommandMeasure "Lua" "pause = 'p'"]
IfEqualValue=1
IfEqualAction=[!CommandMeasure "Lua" "pause = nil"]
;"0":"终止","1":"播放","2":"暂停"
[mStateButton]
Measure=Calc
Formula=mState
Substitute='2':"4" ,'0':"4" ,'1':";" ,'4':"4"
; 歌词文件地址
[mFile]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=[mPlayer]
PlayerType=File
DynamicVariables=1
;自动检测WLM与WMP的切换
[DetectWMP]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=WMP
PlayerType=Status
[DetectWLM]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=WLM
PlayerType=State
[Decide]
Measure=Calc
Formula=[DetectWMP] - [DetectWLM]
DynamicVariables=1
IfAboveValue=0
IfBelowValue=0
IfAboveAction=[!CommandMeasure "Lua" "plyer_type_change('WMP')"]
IfBelowAction=[!CommandMeasure "Lua" "plyer_type_change('WLM')"]
|
|