【06-14 问题求助】想在一个bar图形上添加鼠标动作
rainmeter吧
全部回复
仅看楼主
level 3
陈催糖- 楼主
我想做到点击那个绿条条控制音乐上一首,点击红条条是暂停开始,点击黄条条是下一首
但是我直接在节点下面添加鼠标动作并不管用,(就像下面这样,加了红框里的)
————————————————————
下面贴代码(是我已经改过一部分的,为了显示歌曲名和艺术家)
————————————————————
[Rainmeter]
Update=0
Author=Connect-R
DynamicWindowSize=1
BackgroundMode=2
SolidColor=0,0,0,1
SkinHeight=50
MouseScrollUpAction=[!SetVariable Scale "(
#Scale#
+
#ScrollMouseIncrement#
)"][!WriteKeyValue Variables Scale "(
#Scale#
+
#ScrollMouseIncrement#
)"][!Refresh]
MouseScrollDownAction=[!SetVariable Scale "(
#Scale#
-
#ScrollMouseIncrement#
< 1 ? 1 :
#Scale#
-
#ScrollMouseIncrement#
)"][!WriteKeyValue Variables Scale "(
#Scale#
-
#ScrollMouseIncrement#
< 1 ? 1 :
#Scale#
-
#ScrollMouseIncrement#
)"][!Refresh]
[Metadata]
Name=
Author=
Information=
License=
Version=
[Variables]
@include=#@#Variables.inc
AverageSize=6
Size=2.5
Space=9
BarWidth=#Size#
BarHeight=100
Angle=90;
-------------------------------------------------------------
;-------------------------------------------------------------
[MeasureAudioOutput]
Measure=Plugin
Plugin=AudioLevel
Port=Output
FFTSize=1024
FFTOverlap=512
FFTAttack=0
FFTDecay=100
FreqMin=30
FreqMax=16500
Sensitivity=15
Bands=4;
------------------------------------------------------------
;-------------------------------------------------------------
[MeasurePlayer]
Measure=Plugin
Plugin=MusicPlayer.dll
PlayerName=#Player#
PlayerType=TITLE
[MeasureArtist]
Measure=Plugin
Plugin=MusicPlayer.dll
PlayerName=#Player#
PlayerType=ARTIST
Substitue="":""
[MeasureTitle]
Measure=Plugin
Plugin=MusicPlayer.dll
PlayerName=#Player#
PlayerType=TITLE
Substitue="":""[MeasureTrack]
Measure=Plugin
Plugin=MusicPlayer.dll
PlayerName=[MeasurePlayer]
PlayerType=TITLE
[MeasureAlbum]
Measure=Plugin
Plugin=MusicPlayer.dll
PlayerName=#Player#
PlayerType=ALBUM
Substitue="":""
[MeasureProgress]
Measure=Plugin
Plugin=MusicPlayer.dll
PlayerName=#Player#
PlayerType=PROGRESS
[MeasureDuration]
Measure=Plugin
Plugin=MusicPlayer.dll
PlayerName=#Player#
PlayerType=DURATION
[MeasurePosition]
Measure=Plugin
Plugin=MusicPlayer.dll
PlayerName=#Player#
PlayerType=POSITION
[MeasureStateButton]
Measure=Plugin
Plugin=MusicPlayer.dll
PlayerName=#Player#
PlayerType=STATE
Substitute="0":"#@#Play.png","1":"#@#Pause.png","2":"#@#Play.png";
-------------------------------------------------------------
;-------------------------------------------------------------
[MeasureAudio1]
Measure=Plugin
Plugin=AudioLevel
Parent=MeasureAudioOutput
Type=Band
BandIdx=1
AverageSize=#AverageSize#
AntiAlias=1
LeftMouseUpAction=[!PluginBang "MeasureStateButton Next"]
[MeasureAudio2]
Measure=Plugin
Plugin=AudioLevel
Parent=MeasureAudioOutput
Type=Band
BandIdx=2
AverageSize=#AverageSize#
[MeasureAudio3]
Measure=Plugin
Plugin=AudioLevel
Parent=MeasureAudioOutput
Type=Band
BandIdx=3
AverageSize=#AverageSize#;
-------------------------------------------------------------
;-------------------------------------------------------------
[MeterSeparation]
X=#Space#R
Y=(1.8*(#BarHeight#))
TransformationMatrix=(Cos(Rad(#Angle#)));(-Sin(Rad(#Angle#)));(Sin(Rad(#Angle#)));(Cos(Rad(#Angle#)));(-70*Sin(Rad(#Angle#)));(55-55*Cos(Rad(#Angle#)))
DynamicVariables=1
;-------------------------------------------------------------
;-------------------------------------------------------------
[MeterBar1]
Meter=Shape
MeterStyle=MeterSeparation
Shape=Rectangle 0,0,(#BarWidth#*#Size#),(-(#BarHeight#-(#BarWidth#*#Size#))*[MeasureAudio1]-(#BarWidth#*#Size#)),((#BarWidth#*#Size#)/2) | Fill Color 255,165,0| StrokeWidth 0
[MeterBar2]
Meter=Shape
MeterStyle=MeterSeparation
Shape=Rectangle 0,0,(#BarWidth#*#Size#),(-(#BarHeight#-(#BarWidth#*#Size#))*[MeasureAudio2]-(#BarWidth#*#Size#)),((#BarWidth#*#Size#)/2) | Fill Color 255,0,0 | StrokeWidth 0
[MeterBar3]
Meter=Shape
MeterStyle=MeterSeparation
Shape=Rectangle 0,0,(#BarWidth#*#Size#),(-(#BarHeight#-(#BarWidth#*#Size#))*[MeasureAudio3]-(#BarWidth#*#Size#)),((#BarWidth#*#Size#)/2) | Fill Color 1,80,60 | StrokeWidth 0
;-------------------------------------------------------------
;-------------------------------------------------------------
[MeterArtistInfo]
Meter=String
MeasureName=MeasureTitle
FontColor=0,0,0
FontFace=BIRTH OF A HERO
FontSize=16
X=120
Y=5
Text="%1"
AntiAlias=1[MeterTrackInfo]
Meter=String
MeasureName=MeasureArtist
FontColor=0,0,0
FontFace=BIRTH OF A HERO
FontSize=13
X=r
Y=25r
Text="%1"
AntiAlias=1
2020年06月14日 08点06分 1
level 3
陈催糖- 楼主
别沉啊啊啊[泪],我自己捞/
2020年06月14日 09点06分 2
还是没人qnq[泪]
2020年06月14日 12点06分
level 3
陈催糖- 楼主
@蓝色闪光
2020年06月14日 15点06分 5
2020年06月14日 15点06分
@陈催糖- 终于艾特出来了qnq
2020年06月14日 15点06分
level 3
陈催糖- 楼主
我发现神奇的是,把鼠标指令加在歌曲名或者艺术家那个节点那里都可以正常使用………
如果实在找不到解决方法就只好舍弃上一首功能把播放和下一首的指令放在歌名和歌手上了(啊它们承担的好多-_-||
2020年06月14日 17点06分 6
那你大可加在这两个地方,不要担心什么承担问题
2020年06月15日 03点06分
level 3
陈催糖- 楼主
鹅鹅鹅现在我把暂停安在曲名上,下一首在歌手名上,上一首放在旁边的两道杠上了hhhh
实际操作起来还怪装B的hhh
非常感谢大家的解惑啦,尤其是吧主的“跟踪式答疑”哈哈哈哈哈
不过鼠标动作(不仅仅是控制音乐的,试过之后其他指令统统不行)还是不能加在bar上……
难道是鼠标动作本就不能加在频谱上???
虽然现在的结果也很满意啦……但是还是很想知道是怎么回事……
2020年06月15日 04点06分 7
鼠标动作是可以加在频谱上的。我昨天没说:你这个皮肤有很多冗余成分。我帮你看看吧。
2020年06月15日 07点06分
@蓝色闪光✨ 嗯嗯,是我自己加的,因为不知道为什么那个动作实现不了就乱加了一些东西[小乖]
2020年06月15日 07点06分
我阅读了musicplayer插件的自述文件,之所以没起效果是因为你的Measure编写的有问题,很多Measure都引用了不存在的“PlayerType”值。详细情况私聊我吧。
2020年06月15日 07点06分
level 3
陈催糖- 楼主
解决啦!!
是这里,
使用了缩放矩阵参数,这个玩意用吧主的话来说就是
小白理解一下就是……
所以吧主大大把这个玩意改成它的实际位置了(感谢吧主qnq
emmm改过后的代码
——————————————————————————————————
——————————————————————————————————
[Rainmeter]
Update=30
Author=Connect-R
DynamicWindowSize=1
BackgroundMode=2
SolidColor=0,0,0,1
[Variables]
@include=#@#Variables.inc
AverageSize=5
Size=2.5
Space=9
BarWidth=
#Size#

BarHeight=100
Angle=90
;-------------------------------------------------------------
;-------------------------------------------------------------
[MeasureAudioOutput]
Measure=Plugin
Plugin=AudioLevel
Port=Output
FFTSize=1024
FFTOverlap=512
FFTAttack=0
FFTDecay=100
FreqMin=30
FreqMax=16500
Sensitivity=18
Bands=4;-------------------------------------------------------------
;-------------------------------------------------------------
[MeasureArtist]
Measure=Plugin
Plugin=MusicPlayer.dll
PlayerName=
#Player#

PlayerType=ARTIST
[MeasureTitle]
Measure=Plugin
Plugin=MusicPlayer.dll
PlayerName=
#Player#

PlayerType=TITLE
;-------------------------------------------------------------
;-------------------------------------------------------------
[MeasureAudio1]
Measure=Plugin
Plugin=AudioLevel
Parent=MeasureAudioOutput
Type=Band
BandIdx=1
AverageSize=
#AverageSize#

AntiAlias=1
[MeasureAudio2]
Measure=Plugin
Plugin=AudioLevel
Parent=MeasureAudioOutput
Type=Band
BandIdx=2
AverageSize=
#AverageSize#

[MeasureAudio3]
Measure=Plugin
Plugin=AudioLevel
Parent=MeasureAudioOutput
Type=Band
BandIdx=3
AverageSize=
#AverageSize#

;-------------------------------------------------------------
;-------------------------------------------------------------
[MeterSeparation]
X=(
#BarHeight#
*1.1)
Y=(
#Space#
)R
DynamicVariables=1
;-------------------------------------------------------------
;-------------------------------------------------------------
[MeterBar1]
Meter=Shape
MeterStyle=MeterSeparation
Shape=Rectangle 0,0,(-(
#BarHeight#
-(
#BarWidth#
*
#Size#
))*[MeasureAudio1]-(
#BarWidth#
*
#Size#
)),(
#BarWidth#
*
#Size#
),((
#BarWidth#
*
#Size#
)/2) | Fill Color 255,165,0| StrokeWidth 0
LeftMouseUpAction=[!CommandMeasure "MeasureArtist" "Previous"]
SolidColor=#FontColour#,1
[MeterBar2]
Meter=Shape
MeterStyle=MeterSeparation
Shape=Rectangle 0,0,(-(
#BarHeight#
-(
#BarWidth#
*
#Size#
))*[MeasureAudio2]-(
#BarWidth#
*
#Size#
)),(
#BarWidth#
*
#Size#
),((
#BarWidth#
*
#Size#
)/2) | Fill Color 255,0,0 | StrokeWidth 0
LeftMouseUpAction=[!CommandMeasure "MeasureArtist" "PlayPause"]
SolidColor=#FontColour#,1
[MeterBar3]
Meter=Shape
MeterStyle=MeterSeparation
Shape=Rectangle 0,0,(-(
#BarHeight#
-(
#BarWidth#
*
#Size#
))*[MeasureAudio3]-(
#BarWidth#
*
#Size#
)),(
#BarWidth#
*
#Size#
),((
#BarWidth#
*
#Size#
)/2) | Fill Color 1,80,60 | StrokeWidth 0
LeftMouseUpAction=[!CommandMeasure "MeasureArtist" "Next"]
SolidColor=#FontColour#,1
;-------------------------------------------------------------
;-------------------------------------------------------------
[MeterTitleInfo]
Meter=String
MeasureName=MeasureTitle
FontColor=0,0,0
FontFace=BIRTH OF A HERO
FontSize=16
X=120
Y=5
Text="-%1"
AntiAlias=1
[MeterArtistInfo]
Meter=String
MeasureName=MeasureArtist
FontColor=0,0,0
FontFace=BIRTH OF A HERO
FontSize=13
X=0r
Y=25r
Text="-%1"
AntiAlias=1[MeterPrevious]
Meter=String
StringAlign=Left
StringCase=Upper
FontFace=BIRTH OF A HERO
FontColor=0,0,0
FontSize=32
X=106
Y=2
Text="||"
AntiAlias=1
————————————————————————————————
OK!封贴!
2020年06月15日 11点06分 9
1