# 关于国产播放器在雨滴上获取信息的方法 - 第2页 - Rainmeter技术教程 - 雨滴社区 - Powered by Discuz!
 找回密码
 点击注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

楼主: 语笑嫣然

[技术交流] 关于国产播放器在雨滴上获取信息的方法

  [复制链接]

签到天数: 26 天

[LV.4]偶尔看看III

发表于 2015-2-15 08:35:55 | 显示全部楼层
[Rainmeter]
Author=无界
Update=50

[Variables]
@Include=#CURRENTPATH#ItemNames\ItemNames.inc

[ItemNamesRSS]
Measure=Plugin
Plugin=WebParser
Url=file://#CURRENTPATH#ItemNames\ItemNames.inc
RegExp="(?siU)Name1=(.*)Path1="
UpdateRate=10
CodePage=936

[Name1]
Measure=Plugin
Plugin=WebParser
Url=[ItemNamesRSS]
StringIndex=1

[MeasureLua3]
Measure=Script
ScriptFile=#CURRENTPATH#Tools\script.lua

[MeasurePlayer]
Measure=Plugin
Plugin=NowPlaying
PlayerName=#name#
PlayerType=TITLE
Substitute="":"I"

[MeasureArtist]
Measure=Plugin
Plugin=NowPlaying
PlayerName=[MeasurePlayer]
PlayerType=ARTIST
Substitute="":"Music"

[MeasureCOVER]
Measure=Plugin
Plugin=NowPlaying
PlayerName=[MeasurePlayer]
PlayerType=COVER

[MeasureState]
Measure=Plugin
Plugin=NowPlaying
PlayerName=[MeasurePlayer]
PlayerType=STATE
Substitute="0":"Play","1":"Pause","2":"Play"
IfEqualValue=1
IfEqualAction=!Execute [!EnableMeasure ImageNumberCalc4][!ShowMeter Rating]
IfAboveValue=1
IfAboveAction=!Execute [!DisableMeasure ImageNumberCalc4][!HideMeter Rating]
IfBelowValue=1
IfBelowAction=!Execute [!DisableMeasure ImageNumberCalc4][!HideMeter Rating]

[MeasureHours]
Measure=Time
Format=%H

[MeasureMinutes]
Measure=Time
Format=%M
;------------------------------------------
[BG1]
Meter=IMAGE
ImageName=Images\1.png
X=0
Y=0
Hidden=0

[BG2]
Meter=IMAGE
ImageName=Images\2.png
X=0
Y=0
Hidden=1

[BG3]
Meter=IMAGE
ImageName=Images\3.png
X=0
Y=0
Hidden=1

[ImageNumberCalc1]
Measure=Calc
Formula=([ImageNumberCalc1]+#G0#) % 568
Substitute=".00000":""
IfEqualValue=567
IfEqualAction=!Execute [!SetVariable G0 1][!DisableMeasure ImageNumberCalc1][!ShowMeter OpenButton2][!HideMeter Open1][!ShowMeter BG2][!ShowMeterGroup Volume][!ShowMeterGroup BUTTON][!ShowMeter MeterClose1]
DynamicVariables=1
Disabled=1

[ImageNumberCalc2]
Measure=Calc
Formula=([ImageNumberCalc2]+#G0#) % 85
Substitute=".00000":""
IfEqualValue=84
IfEqualAction=!Execute [!SetVariable G0 1][!DisableMeasure ImageNumberCalc2][!ShowMeter OpenButton3][!ShowMeter BG3][!HideMeter Open2][!ShowMeter MeterClose2]
DynamicVariables=1
Disabled=1

[ImageNumberCalc3]
Measure=Calc
Formula=([ImageNumberCalc3]+#G0#) % 85
Substitute=".00000":""
IfEqualValue=84
IfEqualAction=!Execute [!SetVariable G0 1][!DisableMeasure ImageNumberCalc3][!ShowMeter OpenButton2][!ShowMeter BG2][!HideMeter Open3][!ShowMeterGroup Volume][!ShowMeter MeterClose1]
DynamicVariables=1
Disabled=1

[ImageNumberCalc4]
Measure=Calc
Formula=Counter % 9
Substitute="":""
DynamicVariables=1
Disabled=1

[Open1]
Meter=Image
X=0
Y=0
ImageName=png24\[ImageNumberCalc1].png
DynamicVariables=1
Hidden=1

[Open2]
Meter=Image
X=0
Y=0
ImageName=png\[ImageNumberCalc2].png
DynamicVariables=1
Hidden=1

[Open3]
Meter=Image
X=0
Y=0
ImageName=png\a[ImageNumberCalc3].png
DynamicVariables=1
Hidden=1

[OpenButton1]
Meter=IMAGE
SolidColor=0,0,0,1
X=190
Y=185
W=45
H=15
Hidden=0
LeftMouseUpAction=!Execute [!SetVariable G0 1][!EnableMeasure ImageNumberCalc1][PLAY #CURRENTPATH#WAV\1.wav][!ShowMeter Open1][!HideMeter BG1][!HideMeter OpenButton1]
RightMouseUpAction=!Execute ["#CURRENTPATH#Tools\LauncherL.exe" App2 1 "#PROGRAMPATH#" "#CURRENTCONFIG#"]

[OpenButton2]
Meter=IMAGE
SolidColor=0,0,0,1
X=215
Y=320
W=20
H=20
ToolTipText="关闭操作台"
Hidden=1
LeftMouseUpAction=!Execute [!SetVariable G0 1][!EnableMeasure ImageNumberCalc2][PLAY #CURRENTPATH#WAV\2.wav][!ShowMeter Open2][!HideMeter OpenButton2][!HideMeter BG2][!HideMeterGroup Volume][!HideMeter MeterClose1]

[OpenButton3]
Meter=IMAGE
SolidColor=0,0,0,1
X=200
Y=315
W=20
H=20
ToolTipText="打开操作台"
Hidden=1
LeftMouseUpAction=!Execute [!SetVariable G0 1][!EnableMeasure ImageNumberCalc3][PLAY #CURRENTPATH#WAV\2.wav][!ShowMeter Open3][!HideMeter OpenButton3][!HideMeter BG3][!HideMeter MeterClose2]

[SetPlayer]
Meter=IMAGE
SolidColor=0,0,0,1
X=235
Y=285
W=20
H=20
ToolTipText="打开播放器"
Group=Volume
Hidden=1
LeftMouseUpAction=!Execute ["#CURRENTPATH#ItemPaths\item1.lnk"]
;--------------------------------------------------------
[MeterPlay]
Meter=Image
ImageName=Images\[MeasureState].png
X=140
Y=274
Group=Volume
Hidden=1
DynamicVariables=1
LeftMouseDownAction=!Execute [!CommandMeasure "MeasurePlayer" "PlayPause"]["#CURRENTPATH#Close\#Name2#Play.vbs"]

[MeterPrev]
Meter=String
SolidColor=255,255,255,1
X=142
Y=250
W=17
H=15
Group=BUTTON
Hidden=1
LeftMouseDownAction=!Execute [!CommandMeasure "MeasurePlayer" "Previous"]["#CURRENTPATH#Close\#Name2#P.vbs"]

[MeterNext]
Meter=String
SolidColor=255,255,255,1
X=193
Y=252
W=17
H=15
Group=BUTTON
Hidden=1
LeftMouseDownAction=!Execute [!CommandMeasure "MeasurePlayer" "Next"]["#CURRENTPATH#Close\#Name2#N.vbs"]

[MeterStop]
Meter=String
SolidColor=255,255,255,1
X=168
Y=252
W=17
H=15
Group=BUTTON
Hidden=1
LeftMouseDownAction=!CommandMeasure "MeasurePlayer" "Stop"

[MeterClose1]
Meter=String
SolidColor=0,0,0,1
X=217
Y=55
W=17
H=15
Hidden=1
ToolTipText="关闭播放器"
LeftMouseUpAction=!Execute [!CommandMeasure "MeasurePlayer" "ClosePlayer"]["#CURRENTPATH#Close\close.vbs"][!Refresh]

[MeterClose2]
Meter=String
SolidColor=0,0,0,1
X=205
Y=62
W=17
H=15
Hidden=1
ToolTipText="关闭播放器"
LeftMouseUpAction=!Execute [!CommandMeasure "MeasurePlayer" "ClosePlayer"]["#CURRENTPATH#Close\close.vbs"][!Refresh]

[MeterMute]
Meter=String
SolidColor=255,255,255,1
X=180
Y=230
W=17
H=15
Group=BUTTON
Hidden=1
LeftMouseDownAction=!CommandMeasure "MeasureWin7Audio" "ToggleMute"

[MeterMini]
Meter=String
SolidColor=0,0,0,1
X=232
Y=92
W=20
H=15
Group=BUTTON
ToolTipText="迷你面板"
Hidden=1
LeftMouseUpAction=!ActivateConfig WMP\Mini Mini.ini

;--------------------------------------------------------
[MeasureWin7Audio]
Measure=Plugin
Plugin=Win7AudioPlugin.dll

[VolumeBar]
Meter=BITMAP
MeasureName=MeasureWin7Audio
BitmapImage=Volume\back.png
BitmapFrames=16
BitmapZeroFrame=1
X=142
Y=158
Group=Volume
Hidden=1

[MeterVolume100]
Meter=IMAGE
SolidColor=0,0,0,1
X=145

Y=166
W=25
H=7
Group=Volume
Hidden=1
LeftMouseUpAction=!CommandMeasure "MeasureWin7Audio" "SetVolume 100"

[MeterVolume90]
Meter=IMAGE
SolidColor=0,0,0,1
X=r

Y=7r
W=25
H=7
Group=Volume
Hidden=1
LeftMouseUpAction=!CommandMeasure "MeasureWin7Audio" "SetVolume 90"

[MeterVolume80]
Meter=IMAGE
SolidColor=0,0,0,1
X=r

Y=7r
W=25
H=7
Group=Volume
Hidden=1
LeftMouseUpAction=!CommandMeasure "MeasureWin7Audio" "SetVolume 80"

[MeterVolume70]
Meter=IMAGE
SolidColor=0,0,0,1
X=r

Y=7r
W=25
H=7
Group=Volume
Hidden=1
LeftMouseUpAction=!CommandMeasure "MeasureWin7Audio" "SetVolume 70"

[MeterVolume60]
Meter=IMAGE
SolidColor=0,0,0,1
X=r

Y=7r
W=25
H=7
Group=Volume
Hidden=1
LeftMouseUpAction=!CommandMeasure "MeasureWin7Audio" "SetVolume 60"

[MeterVolume50]
Meter=IMAGE
SolidColor=0,0,0,1
X=r

Y=7r
W=25
H=7
Group=Volume
Hidden=1
LeftMouseUpAction=!CommandMeasure "MeasureWin7Audio" "SetVolume 50"

[MeterVolume40]
Meter=IMAGE
SolidColor=0,0,0,1
X=r

Y=7r
W=25
H=7
Group=Volume
Hidden=1
LeftMouseUpAction=!CommandMeasure "MeasureWin7Audio" "SetVolume 40"

[MeterVolume30]
Meter=IMAGE
SolidColor=0,0,0,1
X=r

Y=7r
W=25
H=7
Group=Volume
Hidden=1
LeftMouseUpAction=!CommandMeasure "MeasureWin7Audio" "SetVolume 30"

[MeterVolume20]
Meter=IMAGE
SolidColor=0,0,0,1
X=r

Y=7r
W=25
H=7
Group=Volume
Hidden=1
LeftMouseUpAction=!CommandMeasure "MeasureWin7Audio" "SetVolume 20"

[MeterVolume10]
Meter=IMAGE
SolidColor=0,0,0,1
X=r

Y=7r
W=25
H=7
Group=Volume
Hidden=1
LeftMouseUpAction=!CommandMeasure "MeasureWin7Audio" "SetVolume 10"

[MeterVolume0]
Meter=IMAGE
SolidColor=0,0,0,1
X=r

Y=7r
W=25
H=7
Group=Volume
Hidden=1
LeftMouseUpAction=!CommandMeasure "MeasureWin7Audio" "SetVolume 0"

[Rating]

Meter=Image

ImageName=Rating\[ImageNumberCalc4].png

SolidColor=255,255,255,1

DynamicVariables=1
X=305
Y=42
Group=Rating
Hidden=1

[File]
Meter=Image
X=175
Y=145
ImageName=Images\file.png
Hidden=1

[File1]
Meter=IMAGE
SolidColor=255,255,255,1
X=178
Y=146
W=19
H=13
Hidden=1
Group=Volume
LeftMouseUpAction=!Execute ["%SystemDrive%\Users\%UserName%\Music"]
MouseOverAction=!Execute [!ShowMeter File][!Update]
MouseLeaveAction=!Execute [!HideMeter File][!Update]

[PU]
Meter=Image
X=182
Y=122
ImageName=Images\pu.png
Hidden=1

[PU1]
Meter=IMAGE
SolidColor=255,255,255,1
X=188
Y=123
W=15
H=13
Hidden=1
Group=Volume
ToolTipText="可视化频谱"
MouseOverAction=!Execute [!ShowMeter PU][!Update]
MouseLeaveAction=!Execute [!HideMeter PU][!Update]
LeftMouseUpAction=!Execute ["#ROOTCONFIGPATH#VU Meter\VU Meter.exe"]

[LB]
Meter=Image
X=142
Y=123
ImageName=Images\LB.png
Hidden=1

[LB1]
Meter=IMAGE
SolidColor=255,255,255,1
X=146
Y=125
W=15
H=13
Hidden=1
Group=Volume
ToolTipText="专辑封面"
MouseOverAction=!Execute [!ShowMeter LB][!Update]
MouseLeaveAction=!Execute [!HideMeter LB][!Update]
LeftMouseUpAction=!ActivateConfig WMP\Album Album.ini

[CD]
Meter=Image
X=162
Y=122
ImageName=Images\CD.png
Hidden=1

[CD1]
Meter=IMAGE
SolidColor=255,255,255,1
X=167
Y=125
W=15
H=13
Hidden=1
Group=Volume
MouseOverAction=!Execute [!ShowMeter CD][!Update]
MouseLeaveAction=!Execute [!HideMeter CD][!Update]
LeftMouseUpAction=!Execute ["#ROOTCONFIGPATH#VU Meter\VU Meter.exe"]

[MeterTimeH]
Meter=BITMAP
MeasureName=MeasureHours
BitmapImage=Images\Time2.png

BitmapFrames=10

BitmapExtend=1

BitmapAlign=LEFT

BitmapSeparation=0
BitmapDigits=2
DynamicVariables=1
X=112
Y=104
Hidden=1
Group=Volume

[MeterTimeM]
Meter=BITMAP
MeasureName=MeasureMinutes
BitmapImage=Images\Time2.png

BitmapFrames=10

BitmapExtend=1

BitmapAlign=LEFT

BitmapSeparation=0
BitmapDigits=2
DynamicVariables=1
X=137
Y=103
Hidden=1
Group=Volume



我不会改啊 求大神指教啊
回复

使用道具 举报

签到天数: 7 天

[LV.3]偶尔看看II

发表于 2015-7-29 17:01:23 | 显示全部楼层
网易云怎么改,适配很麻烦啊
回复

使用道具 举报

签到天数: 17 天

[LV.4]偶尔看看III

发表于 2015-12-19 22:17:22 | 显示全部楼层
求改 网易云音乐 自己摸索的心好累
回复

使用道具 举报

签到天数: 1 天

[LV.1]初来乍到

发表于 2016-1-1 14:25:57 | 显示全部楼层

高手啊,我正需要呢
回复

使用道具 举报

签到天数: 1 天

[LV.1]初来乍到

发表于 2016-1-1 22:54:42 | 显示全部楼层
新人路过新人路过新人路过新人路过
回复

使用道具 举报

签到天数: 5 天

[LV.2]偶尔看看I

发表于 2016-1-6 16:08:56 | 显示全部楼层
一直走在  学习雨滴的路上至今未停止
回复

使用道具 举报

签到天数: 3 天

[LV.2]偶尔看看I

发表于 2016-11-2 17:19:09 | 显示全部楼层
可以用在网易云吗?
回复

使用道具 举报

签到天数: 11 天

[LV.3]偶尔看看II

发表于 2016-12-12 21:52:58 | 显示全部楼层
学习一下,感谢楼主
回复

使用道具 举报

签到天数: 33 天

[LV.5]常住居民I

发表于 2016-12-13 22:38:32 | 显示全部楼层
在任务栏里现实正在播放的歌曲在哪里呀?小白求助
回复

使用道具 举报

签到天数: 4 天

[LV.2]偶尔看看I

发表于 2016-12-29 19:18:55 | 显示全部楼层
还是挺难的但是学会了
回复

使用道具 举报

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

本版积分规则

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