It is currently March 29th, 2024, 6:58 am

Need help with MouseOverActions being shown on Refresh

Get help with creating, editing & fixing problems with skins
JonSn0w
Posts: 2
Joined: March 7th, 2017, 12:27 am

Need help with MouseOverActions being shown on Refresh

Post by JonSn0w »

Hey all,
I have a skin that I've been working on for quite awhile now, though there is one issue I that I still haven't been able to find a fix for.
My skin includes a meter group which is intended to remain hidden unless triggered by a MouseOverAction, although every time the skin is refreshed all meters from the group are visible until the cursor is moved over the skin and away again. I've also double checked that each of the meters include the "Hidden=1" option, and that the group is not being triggered elsewhere. Additionally, the MouseOverAction is as follows,
MouseOverAction=[!ShowMeterGroup Info][!Redraw]
MouseLeaveAction=[!HideMeterGroup Info][!Redraw]

Is there something that I'm missing?
User avatar
CyberTheWorm
Posts: 860
Joined: August 22nd, 2016, 11:32 pm
Location: Surrey, B.C., Canada

Re: Need help with MouseOverActions being shown on Refresh

Post by CyberTheWorm »

can you post all your code?
The only source of knowledge is experience. Albert Einstein
Deviant Art Page
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Need help with MouseOverActions being shown on Refresh

Post by jsmorley »

No, but there is something you are not showing us. What you have described should work as expected.

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1

[MeterOne]
Meter=String
Group=SomeGroup
FontSize=11
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
AntiAlias=1
Hidden=1
Text=Hello

[MeterTwo]
Meter=String
Group=SomeGroup
X=5R
FontSize=11
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
AntiAlias=1
Hidden=1
Text=World

[MeterShowHide]
Meter=String
Y=30
FontSize=11
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
AntiAlias=1
Text=Mouse Over Target
MouseOverAction=[!ShowMeterGroup SomeGroup][!Redraw]
MouseLeaveAction=[!HideMeterGroup SomeGroup][!Redraw]
JonSn0w
Posts: 2
Joined: March 7th, 2017, 12:27 am

Re: Need help with MouseOverActions being shown on Refresh

Post by JonSn0w »

Sorry I was on my phone before and didn't know if I should post the whole code since it's pretty involved...
Specifically, the 'Info' group is the group I'm having issues properly hiding.
I also attatched the .rmskin file in-case you want to see the what I mean or view the files that way.

Code: Select all

[Rainmeter]
MiddleMouseUpAction=!Refresh #CURRENTCONFIG#
OnUpdateAction=[!WriteKeyValue Variables variant "Round" "#@#Variables.inc"][!CommandMeasure "MeasureAdaptScript" "Update()""][!Redraw]
ContextTitle="Config"
ContextAction=[!ToggleConfig "PlayMusic\Config" "Settings.ini"][!Redraw]
ContextTitle2="Open GPMDP"
ContextAction2=[#AppPath#]
MouseActionCursor=0
Update=30

;------------------------------------------------------------------------------
; VARIABLES

[Variables]
@include=#@#Styles.inc
@include2=#@#Variables.inc
@include3=#@#Chameleon.inc
scale=1
barWidth=#size#
bandSpace=(3*#scale#)
bandCount=26
BarHeightScale=(26.7*#size#*#scale#)
BarWidthScale=(#barWidth#)*#scale#
alignment=18
ColorForeground=[ColorForeground]
ColorBackground=[ColorBackground]
accent=[ColorForeground2]
foregroundColor=E40C11
backgroundColor=FEFEFE

;------------------------------------------------------------------------------
; MEASURES

[MeasureLuaScript]
Measure=Script
ScriptFile=#@#Scripts\GPMDP.lua
Playback=#PlaybackPath#
Settings=#DesktopSettingsPath#
WriteFile=#@#settings.txt
JSONParser=#@#Scripts\JSON.lua
UpdateDivider=10

[MeasureAdaptScript]
Measure=Script
ScriptFile=#@#Scripts\Adaptive.lua
foreground=[ColorForeground2]
background=[ColorBackground2]
foreground2=[ColorLight2]
background2=[ColorDark2]
foreground3=[ColorLight1]
background3=[ColorDark1]
average=[ColorAvg]
UpdateRate=80

[MeasurePlaybackAPI]
Measure=String
String=#EnabledPlaybackAPI#
IfMatch=true
IfNotMatchAction=[!HideMeterGroup Active][!ShowMeter Filter][!ShowMeter Background][!ShowMeter MeterPlaybackPrompt]
DynamicVariables=1
UpdateDivider=10

[MeasureImageDownload]
Measure=Plugin
Plugin=WebParser
URL=#AlbumArtUrl#
Download=1
DownloadFile=image.jpg
DynamicVariables=1
UpdateDivider=20

[MeasureArtwork]
Measure=Plugin
Plugin=GPMDPPlugin
PlayerInfo=Cover
DefaultPath=#@#Images\nocover.png
CoverPath=#@#Images\cover.png
OnChangeAction=[!UpdateMeter MeterTime][!Redraw]
UpdateDivider=20

[MeasureJSON]
Measure=Plugin
Plugin=WebParser
URL=file://#PlaybackPath#
RegExp=(?siU)"song.*songLyrics": (.*)"shuffle": "(.*)".*repeat": "(.*)"
UpdateDivider=5

[ShuffleStatus]
Measure=Plugin
Plugin=WebParser
URL=[MeasureJSON]
StringIndex=2
IfMatch=NO_SHUFFLE
IfMatchAction=[!SetOption MeterShuffle ImageAlpha 75][UpdateMeter MeterShuffle][!Redraw]
IfNotMatchAction=[!SetOption MeterShuffle ImageAlpha 245][UpdateMeter MeterShuffle][!Redraw]
DynamicVariables=1
UpdateDivider=25

[RepeatStatus]
Measure=Plugin
Plugin=WebParser
URL=[MeasureJSON]
StringIndex=3
IfMatch=NO_REPEAT
IfMatchAction=[!SetOption MeterRepeat ImageAlpha 75][UpdateMeter MeterRepeat][!Redraw]
IfNotMatchAction=[!SetOption MeterRepeat ImageAlpha 245][UpdateMeter MeterRepeat][!Redraw]
DynamicVariables=1
UpdateDivider=25

[MeasureTime]
Measure=Calc
Formula=#Length#
DynamicVariables=1

[MeasureAlignment]
Measure=Calc
Formula=#align#
IfEqualValue=0
IfEqualAction=[!WriteKeyValue Variables alignment "1"][!UpdateMeter *][!Redraw]
IfAboveValue=0
IfAboveAction=[!WriteKeyValue Variables alignment "18"][!UpdateMeter *][!Redraw]

[MeasureVisualizer]
Measure=Calc
Formula=#showVisualizer#
IfEqualValue=0
IfEqualAction=[!HideMeterGroup Visualizer][!UpdateMeter *][!Redraw]
IfAboveValue=0
IfAboveAction=[!ShowMeterGroup Visualizer][!UpdateMeter *][!Redraw]
DynamicVariables=1
UpdateDivider=10

[MinimizeSetting]
Measure=Calc
Formula=#MinimizeStatus#
IfEqualValue=0
IfEqualAction=[!DisableMeasure HideActive][!HideMeterGroup Icon][!UpdateMeter *][!Redraw]
IfAboveValue=0
IfAboveAction=[!EnableMeasure HideActive][!ShowMeterGroup Icon][!UpdateMeter *][!Redraw]
DynamicVariables=1
UpdateDivider=20

[HideActive]
Measure=Calc
Formula=1
IfCondition=(#GPMDPOpen# = 0)
IfTrueAction=[!HideMeterGroup Active][!ShowMeterGroup Icon][!UpdateMeter *][!Redraw]
IfFalseAction=[!ShowMeterGroup Active][!HideMeterGroup Icon][!UpdateMeter *][!Redraw]
DynamicVariables=1
UpdateDivider=20

[MeasureVolume]
Measure=Plugin
Plugin=Win7AudioPlugin

[MeasureVolumeValue]
Measure=Calc
Formula=MeasureVolume
Substitute="-1":"Muted"

[MeasureAudio]
Measure=Plugin
Plugin=AudioLevel
Port=Output
FFTSize=#FFTSize#
FFTOverlap=#FFTOverlap#
FFTAttack=#FFTAttack#
FFTDecay=#FFTDecay#
RMSAttack=10
RMSDecay=1000
RMSGain=20
Bands=#bandCount#
Sensitivity=([MeasureAverageVolume]*([MeasureAverageVolume]*38))
FreqMin=40
FreqMax=12000
DynamicVariables=1

[MeasureAudioAverage]
Measure=Plugin
Plugin=AudioLevel
Port=Output
RMSAttack=10
RMSDecay=2500
RMSGain=1000
Sensitivity=100
FreqMin=30
FreqMax=12000
DynamicVariables=1

[MeasureAverageVolume]
Measure=Plugin
Plugin=AudioLevel
Parent=MeasureAudioAverage
Channel=Avg
Type=RMS

[MeasureShowVisualizer]
Measure=Calc
Formula=#showVisualizer#
IfEqualValue=0
IfEqualAction=[!HideMeterGroup Visualizer][!UpdateMeter *]
IfAboveValue=0
IfAboveAction=[!ShowMeterGroup Visualizer][!UpdateMeter *]
DynamicVariables=1
UpdateDivider=10

; @Include Visualizer Band Measures
@include3=#@#Include\BandMeasures.inc


;------------------------------------------------------------------------------
; METERS

[Background]
Meter=Shape
Group=Active
Shape=Ellipse (#size#*#alignment#),(#size#*18),(#size#*21),(#size#*21),(#size#*3) | Fill Color 0,0,0,90 | StrokeWidth 1 | Stroke Color 0,0,0,90
X=(#size#*23)
Y=(#size#*5)
MouseScrollUpAction=[!ShowMeterGroup Volume][!CommandMeasure MeasureVolume "ChangeVolume +#VolumeStep#"][!Update][!Redraw]
MouseScrollDownAction=[!ShowMeterGroup Volume][!CommandMeasure MeasureVolume "ChangeVolume -#VolumeStep#"][!Update][!Redraw]
MouseLeaveAction=[!HideMeterGroup Volume][!Redraw]
UpdateDivider=-1

[MeterArtwork]
Meter=Image
Group=Active
MeasureName=MeasureImageDownload
MaskImageName=#@#Images\mask.png
ImageAlpha=235
; X=(#size#*20)
X=(#size#*(2+#alignment#))
Y=(#size#*1.8)
H=(#size#*42)
W=(#size#*42)
MouseOverAction=[!ShowMeterGroup Info][!Redraw]
MouseLeaveAction=[!HideMeterGroup Info][!HideMeterGroup Volume][!Redraw]
DynamicVariables=1
UpdateDivider=20

[MeterBand0]
Meter=Bar
Group=Active | Visualizer
MeasureName=MeasureBand0
; X=(#size#*20.5)+((5-#size#)*7)
X=(#size#*(2.5+#alignment#))+((5-#size#)*7)
Y=(#size#*21.8)+((4.5-#size#)*10)
DynamicVariables=1
AntiAlias=1

; @Include Visualizer Band Meters
@include4=#@#Include\RoundBands.inc


[Filter]
Meter=Image
Group=Active | Info
ImageName=#@#Images\filter.png
X=(#size#*(#alignment#+2.05))
Y=(#size#*1.95)
H=(#size#*42)
PreserveAspectRatio=1
UpdateDivider=10
Hidden=1

[Border]
Meter=Shape
Group=Active
; Shape=Ellipse (#size#*18),(#size#*18),(#size#*21.5),(#size#*21.5),(#size#*3) | Fill Color 0,0,0,0 | StrokeWidth 7 | Stroke Color 5,5,5,200
Shape=Ellipse (#size#*#alignment#),(#size#*18),(#size#*21.5),(#size#*21.5),(#size#*3) | Fill Color 0,0,0,0 | StrokeWidth 7 | Stroke Color 5,5,5,200
X=(#size#*24)-5
; X=(#size#*(22+#alignment#))
Y=(#size#*5)

[MeterTime]
Meter=Roundline
Group=Active | Time
MeasureName=MeasureTime
StartAngle=(Rad(90))
RotationAngle=(Rad(360))
LineLength=(#size#*21.7)
LineStart=(#size#*21.1)
; LineColor=#accent#
; LineColor=[ColorLight2]
LineColor=#foregroundColor#
; X=(#size#*41)
; X=4r
X=(#size#*(#alignment#+23))
Y=(#size#*23)
Solid=1
DynamicVariables=1
AntiAlias=1

[MeterTitle]
Meter=String
Group=Active | Info
MeterStyle=RoundText
FontSize=(#size#*2.9)
StringAlign=Center
Text=#SongTitle#
X=-1r
; X=(#size#*(#align#+23))
Y=(#size#*14.5)
W=(#size#*38)-((5-#size#)*25)
UpdateDivider=10
Hidden=1

[MeterArtist]
Meter=String
Group=Active | Info
MeterStyle=TextStyle
FontSize=(#size#*2.7)
StringAlign=Center
Text=#SongArtist#
X=r
Y=(#size#*5.4)r
W=(#size#*39)
UpdateDivider=10
Hidden=1

[MeterAlbum]
Meter=String
Group=Active | Info
MeterStyle=TextStyle
FontSize=(#size#*2.3)
StringStyle=Italic
StringAlign=Center
Text=#SongAlbum#
X=r
Y=(#size#*5.4)r
W=(#size#*39)
UpdateDivider=10
Hidden=1

[MeterRepeat]
Meter=Image
Group=Active | Info
MeterStyle=Status
ImageName=#@#Images\repeat.png
ImageAlpha=75
X=-35r
Y=(#size#*9)r
H=(#size#*4.8)
UpdateDivider=15
Hidden=1

[MeterShuffle]
Meter=Image
Group=Active | Info
MeterStyle=Status
ImageName=#@#Images\shuffle.png
ImageAlpha=75
X=(#size#*12)r
Y=(#size#*-0.2)r
H=(#size#*5)
UpdateDivider=15
Hidden=1

[MeterInfo]
Meter=Image
Group=Active | Info
ImageName=#@#Images\dots.png
ImageAlpha=105
X=(#size#*(41+#alignment#))
Y=(#size#*20)
H=(#size#*5.3)
MouseOverAction=[!SetOption MeterInfo ImageAlpha 245][!Redraw]
MouseLeaveAction=[!SetOption MeterInfo ImageAlpha 105][!Redraw]
LeftMouseDownAction=[!SetOption MeterInfo ImageAlpha 245][!Redraw]
LeftMouseUpAction=[!SetOption MeterInfo ImageAlpha 105][!ToggleConfig "PlayMusic\Config" "Settings.ini"][!Redraw]
PreserveAspectRatio=1
MouseActionCursor=1
UpdateDivider=15
Hidden=1

[MeterVolume]
Meter=Roundline
MeasureName=MeasureVolume
Group=Active | Volume
StartAngle=(Rad(90))
RotationAngle=(Rad(360))
LineLength=(#size#*21.7)
LineStart=(#size#*21.1)
X=(#size#*(#alignment#+23))
Y=(#size#*23)
Solid=1
LineColor=#backgroundColor#
DynamicVariables=1
AntiAlias=1
Hidden=1

[MeterPlaybackPrompt]
Meter=String
MeterStyle=TextStyle
FontSize=(#size#*2.9)
StringAlign=Center
Text=Enable 'Playback API' in GPMDP's Desktop Settings
X=(#size#*(#alignment#+10.1))
Y=(#size#*15.2)
W=(#size#*38)-((5-#size#)*25)
H=350
LeftMouseUpAction=[#AppPath#]
ClipString=2
MouseActionCursor=1
DynamicVariables=1
UpdateDivider=20
Hidden=1

[MeterIcon]
Meter=Image
Group=Icon
ImageName=#icon#
ImageTint=#accent#
ImageAlpha=200
X=(8+(#alignment#*13))
Y=3
H=51
LeftMouseUpAction=[#AppPath#]
PreserveAspectRatio=1
MouseActionCursor=1
DynamicVariables=1
UpdateDivider=20
You do not have the required permissions to view the files attached to this post.