It is currently October 15th, 2019, 4:59 am

Controlling meter visibility

Help with creating, editing & fixing problems with skins
justsomeguyhere
Posts: 15
Joined: July 12th, 2019, 7:29 pm

Controlling meter visibility

justsomeguyhere » July 31st, 2019, 4:36 pm

Hey, I might have a challange for y'all. I was wonder if there's a way to have a measure check to see if certain meters are hidden or shown before it ran it's logic function

Code: Select all

[Variables]
AppName1="Guitar Pro 7"
AppPath1="C:\Program Files (x86)\Arobas Music\Guitar Pro 7\GuitarPro7.exe"
AppActive1="GuitarPro7.exe"
...
[MeasureApp1IfRunning]
Measure=Plugin
Plugin=ResMon
ResCountType=USER
ProcessName=#App1Process#
IfBelowValue=1
IfBelowAction=[!HideMeter App1Ind],[!Redraw]
IfAboveValue=1
IfAboveAction=[!ShowMeter App1Ind],[!Redraw]
...
[MeterGoods]
Meter=String
Text=Goods
FontColor=ffffff
SolidColor=111111
AntiAlias=1
FontSize=(23*(#Scaler#*(#Scaler#/1.25)))
FontFace=Apple Kid
X=(139*(#Scaler#*(#Scaler#/1.25)))
Y=(20.5*(#Scaler#*(#Scaler#/1.25)))
LeftMouseUpAction=[!ToggleMeter MeterGoodsMenu],[!ToggleMeter MeterUserGoods],[!ToggleMeter App1],[!ToggleMeter App2],[!ToggleMeter App3],[!ToggleMeter App4],[!ToggleMeter App5],[!ToggleMeter App6],[!ToggleMeter App7],[!ToggleMeter App8],[!ToggleMeter App9],[!ToggleMeter App10],[!ToggleMeter App11],[!ToggleMeter App12],[!ToggleMeter App13],[!ToggleMeter App14]
...
[MeterGoodsMenu]
Hidden=1
Meter=Image
Y=(1*#Scaler#)
ImageName=#@#images/GoodsMenu.png
W=(1050/1.5*#Scaler#)
PerseveAspectRatio=1
LeftMouseUpAction=[!ToggleMeter MeterGoodsMenu],[!ToggleMeter MeterUserGoods],[!ToggleMeter App1],[!ToggleMeter App2],[!ToggleMeter App3],[!ToggleMeter App4],[!ToggleMeter App5],[!ToggleMeter App6],[!ToggleMeter App7],[!ToggleMeter App8],[!ToggleMeter App9],[!ToggleMeter App10],[!ToggleMeter App11],[!ToggleMeter App12],[!ToggleMeter App13],[!ToggleMeter App14]
...
[App1]
Hidden=1
Meter=String
FontColor=ffffff
SolidColor=111111
AntiAlias=1
FontSize=(23*(#Scaler#*(#Scaler#/1.25)))
FontFace=Apple Kid
X=(175*(#Scaler#*(#Scaler#/1.25)))
Y=(20.5*(#Scaler#*(#Scaler#/1.25)))
Text=#AppName1#
LeftMouseUpAction=[!ToggleMeter MeterGoodsMenu],[!ToggleMeter MeterUserGoods],[!ToggleMeter App1],[!ToggleMeter App2],[!ToggleMeter App3],[!ToggleMeter App4],[!ToggleMeter App5],[!ToggleMeter App6],[!ToggleMeter App7],[!ToggleMeter App8],[!ToggleMeter App9],[!ToggleMeter App10],[!ToggleMeter App11],[!ToggleMeter App12],[!ToggleMeter App13],[!ToggleMeter App14],["#AppPath1#"]
...
[AppInd1]
Meter=Image
ImageName=#@#images/EquipedL
W=(850*(#Scaler#/1.5))
X=(35*#Scaler#)
PerseveAspectRatio=1
Hidden=1
basically what is going on is that the Measure is checking to see if App1 (Guitar Pro 7) is running. If it is then an Indicator is shown (AppInd1). There's also a string of text (MeterGoods) that allows you to open a submenu (MeterGoodsMenu) where you can choose a task to launch (For example App1). What I want is to only have the indicator showing if the submenu meter is visible. Is this Possible
User avatar
balala
Rainmeter Sage
Posts: 8809
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Controlling meter visibility

balala » July 31st, 2019, 5:39 pm

justsomeguyhere wrote:
July 31st, 2019, 4:36 pm
Hey, I might have a challange for y'all. I was wonder if there's a way to have a measure check to see if certain meters are hidden or shown before it ran it's logic function

basically what is going on is that the Measure is checking to see if App1 (Guitar Pro 7) is running. If it is then an Indicator is shown (AppInd1). There's also a string of text (MeterGoods) that allows you to open a submenu (MeterGoodsMenu) where you can choose a task to launch (For example App1). What I want is to only have the indicator showing if the submenu meter is visible. Is this Possible
No, unfortunately a measure can't know if a meter (even of the same code) is either visible or not. But probably a little bit different approach would help.
You should have to introduce a variable, let's name it SubmenuVisible. Its value will control if the submenu is visible (variable is 1) or not (variable is 0).
So, first add the variable to the [Variables] section (beside the existing variables):

Code: Select all

[Variables]
...
SubmenuVisible=0
Now add the following measure to your code:

Code: Select all

[MeasureSubmenuVisible]
Measure=Calc
Formula=#SubmenuVisible#
IfCondition=(#CURRENTSECTION#>=1)
IfTrueAction=[!ShowMeter "MeterGoodsMenu"][!ShowMeter "MeterUserGoods"][!ShowMeter "App1"][!ShowMeter "App2"][!ShowMeter "App3"][!ShowMeter "App4"][!ShowMeter "App5"][!ShowMeter "App6"][!ShowMeter "App7"][!ShowMeter "App8"][!ShowMeter "App9"][!ShowMeter "App10"][!ShowMeter "App11"][!ShowMeter "App12"][!ShowMeter "App13"][!ShowMeter "App14"][!Redraw]
IfFalseAction=[!HideMeter "MeterGoodsMenu"][!HideMeter "MeterUserGoods"][!HideMeter "App1"][!HideMeter "App2"][!HideMeter "App3"][!HideMeter "App4"][!HideMeter "App5"][!HideMeter "App6"][!HideMeter "App7"][!HideMeter "App8"][!HideMeter "App9"][!HideMeter "App10"][!HideMeter "App11"][!HideMeter "App12"][!HideMeter "App13"][!HideMeter "App14"][!Redraw]
DynamicVariables=1
Based on the value of the SubmenuVisible variable, this measure shows / hides the elements of the submenu (what [MeterGoodsMenu], [MeterUserGoods], [App1], ... I suppose are).
Modify the LeftMouseUpAction option of the [MeterGoods] meter, to set the current value of the SubmenuVisible variable:

Code: Select all

[MeterGoods]
...
LeftMouseUpAction=[!SetVariable SubmenuVisible "(1-#SubmenuVisible#)"][!UpdateMeasure "MeasureSubmenuVisible"][!UpdateMeasure "MeasureAppSubmenu"][!UpdateMeter "#CURRENTSECTION#"]
Note that the [MeasureAppSubmenu] measure, used in the above LeftMouseUpAction option will be added a little bit later (see below).
And finally you have to add a new measure, which checks if the app is running and the submenu is open and accts accordingly:

Code: Select all

[MeasureAppSubmenu]
Measure=Calc
Formula=( #SubmenuVisible# * Clamp ( MeasureApp1IfRunning, 0, 1 ))
IfCondition=(#CURRENTSECTION#>=1)
IfTrueAction=[!ShowMeter "AppInd1"][!Redraw]
IfFalseAction=[!HideMeter "AppInd1"][!Redraw]
DynamicVariables=1
justsomeguyhere
Posts: 15
Joined: July 12th, 2019, 7:29 pm

Re: Controlling meter visibility

justsomeguyhere » August 1st, 2019, 2:48 pm

Hey, so I changed things around and now the indicators are visible, but not consistently... and not in the right places. I'm including the files this time because it's starting to frustrate me and I just need some assistance. You can change the exe files but make sure you copy the pre-existing ones into another file while testing. Thank you so much!
EarthBound Menu (Requires ResMon & SysInfo Plugins)_Beta 1.1.rmskin
You do not have the required permissions to view the files attached to this post.
User avatar
balala
Rainmeter Sage
Posts: 8809
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Controlling meter visibility

balala » August 1st, 2019, 4:31 pm

justsomeguyhere wrote:
August 1st, 2019, 2:48 pm
Hey, so I changed things around and now the indicators are visible, but not consistently... and not in the right places. I'm including the files this time because it's starting to frustrate me and I just need some assistance. You can change the exe files but make sure you copy the pre-existing ones into another file while testing. Thank you so much!
The main issue is that although used in the code, there are no such variables as App1Process, App2Process and so on. But they are not even needed, you have to simply replace the ProcessName=#AppXXProcess# options of the ResMon plugin measures with ProcessName=#AppActiveXX# (with XX going from 1 to 14 - this means 14 fixes, into 14 measures).

Additional comments:
  • The !Execute bang is deprecated and should have to avoid using it (in the ContextAction option of the [Rainmeter] section).
  • Move the @IncludeVariables option from the [Rainmeter] section to [Variables]. It belongs there, because the Variables.ini file has included a variable.
  • Seems a good practice to have the included files not as .ini, but .inc file. Although both are working, it's a much better idea.
  • Don't quote the variables, there is no need for this. Details here.
  • Don't add comma between two consecutive bangs. For instance in the remained IfBelowAction and IfAboveAction options of the [MeasureApp8IfRunning] measure, you have a such comma: IfBelowAction=[!HideMeter App8Ind],[!Redraw]
    . It's not needed: IfBelowAction=[!HideMeter App8Ind][!Redraw] (however I commented out these options)
  • There is always desirable to avoid too frequent refresh of the skin. For instance I'd renounce to the [!Refresh] bang into the LeftMouseUpAction options of the [App1] - [App14] meters.
  • You've written mistakenly the MeasureAppXXSubmenu measure names within the LeftMouseUpAction options of the [MeterGoods] meter. The name of those measures are MeasureAppSubmenuXX. For instance instead of the [!UpdateMeasure "MeasureApp1Submenu"] bang, use [!UpdateMeasure "MeasureAppSubmenu1"], which is correct and will avoid a lot of error messages in the log (obviously you have to rewrite all 14 bangs of the option).
With all corrections made, the code looks like this:

Code: Select all

[Rainmeter]
Update=1000
ContextTitle=Adjust Scale
ContextAction=["#@#includes\Variables.ini"]

[Metadata]
Name=Battle Menu Laucher
Author=AceCovers
Version=1.0
License=Creative Commons Attribution - Non - Commercial - Share Alike 3.0

[Variables]
AppName1=Notepad
AppPath1=C:\Windows\notepad.exe
AppActive1=notepad.exe
AppName2=Mixcraft 8
AppPath2=C:\Users\Nathan Perron\OneDrive - Vermont State Colleges\Mixcraft 8 Pro\mixcraft8.exe
AppActive2=mixcraft8.exe
AppName3=Gimp 2.10
AppPath3=C:\Program Files\GIMP 2\bin\gimp-2.10.exe
AppActive3=gimp-2.10.exe
AppName4=Premiere Pro
AppPath4=C:\Program Files\Adobe\Adobe Premiere Pro CC 2019\Adobe Premiere Pro CC 2019.exe
AppActive4=Adobe Premiere Pro.exe
AppName5=Famitracker
AppPath5=C:\Users\Nathan Perron\Desktop\All\Famitracker.exe
AppActive5=Famitracker.exe
AppName6=Discord
AppPath6=C:\Users\Nathan Perron\AppData\Local\Discord\app-0.0.305\Discord.exe
AppActive6=Discord.exe
AppName7=Chrome
AppPath7=C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
AppActive7=Chrome.exe
AppName8=Youtube
AppPath8=https://www.youtube.com/
AppActive8=chrome.exe
AppName9=Spotify
AppPath9=C:\Program Files\WindowsApps\SpotifyAB.SpotifyMusic_1.112.449.0_x86__zpdnekdrzrea0\Spotify.exe
AppActive9=Spotify.exe
AppName10=mGBA
AppPath10=C:\Users\Nathan Perron\Desktop\All\mGBA-0.6.1-2017-10-01-win32\mGBA.exe
AppActive10=mgba.exe
AppName11=Task Manager
AppPath11=C:\Windows\System32\Taskmgr.exe
AppActive11=Taskmgr.exe
AppName12=Steam
AppPath12=C:\Program Files (x86)\Steam\Steam.exe
AppActive12=Steam.exe
AppName13=Outlook
AppPath13=C:\Program Files (x86)\Microsoft Office\root\Office16\OUTLOOK.exe
AppActive13=OUTLOOK.exe
AppName14=IsoPad
AppPath14=C:\Program Files (x86)\IsoPad\IsoPad.exe
AppActive14=IsoPad.exe
SubmenuVisible=0
@IncludeVariables=#@#includes\Variables.ini

[MeasureUserName]
Measure=Plugin
Plugin=SysInfo
SysInfoType=USER_NAME

[MeasureSubmenuVisible]
Measure=Calc
Formula=#SubmenuVisible#
IfCondition=(#CURRENTSECTION#>=1)
IfTrueAction=[!ShowMeter "MeterGoodsMenu"][!ShowMeter "MeterUserGoods"][!ShowMeter "App1"][!ShowMeter "App2"][!ShowMeter "App3"][!ShowMeter "App4"][!ShowMeter "App5"][!ShowMeter "App6"][!ShowMeter "App7"][!ShowMeter "App8"][!ShowMeter "App9"][!ShowMeter "App10"][!ShowMeter "App11"][!ShowMeter "App12"][!ShowMeter "App13"][!ShowMeter "App14"][!Redraw]
IfFalseAction=[!HideMeter "MeterGoodsMenu"][!HideMeter "MeterUserGoods"][!HideMeter "App1"][!HideMeter "App2"][!HideMeter "App3"][!HideMeter "App4"][!HideMeter "App5"][!HideMeter "App6"][!HideMeter "App7"][!HideMeter "App8"][!HideMeter "App9"][!HideMeter "App10"][!HideMeter "App11"][!HideMeter "App12"][!HideMeter "App13"][!HideMeter "App14"][!Redraw]
DynamicVariables=1

[MeasureApp1IfRunning]
Measure=Plugin
Plugin=ResMon
ResCountType=USER
ProcessName=#AppActive1#

[MeasureAppSubmenu1]
Measure=Calc
Formula=( #SubmenuVisible# * Clamp ( MeasureApp1IfRunning, 0, 1 ))
IfCondition=(#CURRENTSECTION#>=1)
IfTrueAction=[!ShowMeter "AppInd1"][!Redraw]
IfFalseAction=[!HideMeter "AppInd1"][!Redraw]
DynamicVariables=1

[MeasureApp2IfRunning]
Measure=Plugin
Plugin=ResMon
ResCountType=USER
ProcessName=#AppActive2#

[MeasureAppSubmenu2]
Measure=Calc
Formula=( #SubmenuVisible# * Clamp ( MeasureApp2IfRunning, 0, 1 ))
IfCondition=(#CURRENTSECTION#>=1)
IfTrueAction=[!ShowMeter "AppInd2"][!Redraw]
IfFalseAction=[!HideMeter "AppInd2"][!Redraw]
DynamicVariables=1

[MeasureApp3IfRunning]
Measure=Plugin
Plugin=ResMon
ResCountType=USER
ProcessName=#AppActive3#

[MeasureAppSubmenu3]
Measure=Calc
Formula=( #SubmenuVisible# * Clamp ( MeasureApp3IfRunning, 0, 1 ))
IfCondition=(#CURRENTSECTION#>=1)
IfTrueAction=[!ShowMeter "AppInd3"][!Redraw]
IfFalseAction=[!HideMeter "AppInd3"][!Redraw]
DynamicVariables=1

[MeasureApp4IfRunning]
Measure=Plugin
Plugin=ResMon
ResCountType=USER
ProcessName=#AppActive4#

[MeasureAppSubmenu4]
Measure=Calc
Formula=( #SubmenuVisible# * Clamp ( MeasureApp4IfRunning, 0, 1 ))
IfCondition=(#CURRENTSECTION#>=1)
IfTrueAction=[!ShowMeter "AppInd4"][!Redraw]
IfFalseAction=[!HideMeter "AppInd4"][!Redraw]
DynamicVariables=1

[MeasureApp5IfRunning]
Measure=Plugin
Plugin=ResMon
ResCountType=USER
ProcessName=#AppActive5#

[MeasureAppSubmenu5]
Measure=Calc
Formula=( #SubmenuVisible# * Clamp ( MeasureApp5IfRunning, 0, 1 ))
IfCondition=(#CURRENTSECTION#>=1)
IfTrueAction=[!ShowMeter "AppInd5"][!Redraw]
IfFalseAction=[!HideMeter "AppInd5"][!Redraw]
DynamicVariables=1

[MeasureApp6IfRunning]
Measure=Plugin
Plugin=ResMon
ResCountType=USER
ProcessName=#AppActive6#

[MeasureAppSubmenu6]
Measure=Calc
Formula=( #SubmenuVisible# * Clamp ( MeasureApp6IfRunning, 0, 1 ))
IfCondition=(#CURRENTSECTION#>=1)
IfTrueAction=[!ShowMeter "AppInd6"][!Redraw]
IfFalseAction=[!HideMeter "AppInd6"][!Redraw]
DynamicVariables=1

[MeasureApp7IfRunning]
Measure=Plugin
Plugin=ResMon
ResCountType=USER
ProcessName=#AppActive7#

[MeasureAppSubmenu7]
Measure=Calc
Formula=( #SubmenuVisible# * Clamp ( MeasureApp7IfRunning, 0, 1 ))
IfCondition=(#CURRENTSECTION#>=1)
IfTrueAction=[!ShowMeter "AppInd7"][!Redraw]
IfFalseAction=[!HideMeter "AppInd7"][!Redraw]
DynamicVariables=1

[MeasureApp8IfRunning]
Measure=Plugin
Plugin=ResMon
ResCountType=USER
ProcessName=#AppActive8#
;IfBelowValue=1
;IfBelowAction=[!HideMeter App8Ind],[!Redraw]
;IfAboveValue=1
;IfAboveAction=[!ShowMeter App8Ind],[!Redraw]

[MeasureAppSubmenu8]
Measure=Calc
Formula=( #SubmenuVisible# * Clamp ( MeasureApp8IfRunning, 0, 1 ))
IfCondition=(#CURRENTSECTION#>=1)
IfTrueAction=[!ShowMeter "AppInd8"][!Redraw]
IfFalseAction=[!HideMeter "AppInd8"][!Redraw]
DynamicVariables=1

[MeasureApp9IfRunning]
Measure=Plugin
Plugin=ResMon
ResCountType=USER
ProcessName=#AppActive9#

[MeasureAppSubmenu9]
Measure=Calc
Formula=( #SubmenuVisible# * Clamp ( MeasureApp9IfRunning, 0, 1 ))
IfCondition=(#CURRENTSECTION#>=1)
IfTrueAction=[!ShowMeter "AppInd9"][!Redraw]
IfFalseAction=[!HideMeter "AppInd9"][!Redraw]
DynamicVariables=1

[MeasureApp10IfRunning]
Measure=Plugin
Plugin=ResMon
ResCountType=USER
ProcessName=#AppActive10#

[MeasureAppSubmenu10]
Measure=Calc
Formula=( #SubmenuVisible# * Clamp ( MeasureApp10IfRunning, 0, 1 ))
IfCondition=(#CURRENTSECTION#>=1)
IfTrueAction=[!ShowMeter "AppInd10"][!Redraw]
IfFalseAction=[!HideMeter "AppInd10"][!Redraw]
DynamicVariables=1

[MeasureApp11IfRunning]
Measure=Plugin
Plugin=ResMon
ResCountType=USER
ProcessName=#AppActive11#

[MeasureAppSubmenu11]
Measure=Calc
Formula=( #SubmenuVisible# * Clamp ( MeasureApp11IfRunning, 0, 1 ))
IfCondition=(#CURRENTSECTION#>=1)
IfTrueAction=[!ShowMeter "AppInd11"][!Redraw]
IfFalseAction=[!HideMeter "AppInd11"][!Redraw]
DynamicVariables=1

[MeasureApp12IfRunning]
Measure=Plugin
Plugin=ResMon
ResCountType=USER
ProcessName=#AppActive12#

[MeasureAppSubmenu12]
Measure=Calc
Formula=( #SubmenuVisible# * Clamp ( MeasureApp12IfRunning, 0, 1 ))
IfCondition=(#CURRENTSECTION#>=1)
IfTrueAction=[!ShowMeter "AppInd12"][!Redraw]
IfFalseAction=[!HideMeter "AppInd12"][!Redraw]
DynamicVariables=1

[MeasureApp13IfRunning]
Measure=Plugin
Plugin=ResMon
ResCountType=USER
ProcessName=#AppActive13#


[MeasureAppSubmenu13]
Measure=Calc
Formula=( #SubmenuVisible# * Clamp ( MeasureApp13IfRunning, 0, 1 ))
IfCondition=(#CURRENTSECTION#>=1)
IfTrueAction=[!ShowMeter "AppInd13"][!Redraw]
IfFalseAction=[!HideMeter "AppInd13"][!Redraw]
DynamicVariables=1

[MeasureApp14IfRunning]
Measure=Plugin
Plugin=ResMon
ResCountType=USER
ProcessName=#AppActive14#

[MeasureAppSubmenu14]
Measure=Calc
Formula=( #SubmenuVisible# * Clamp ( MeasureApp14IfRunning, 0, 1 ))
IfCondition=(#CURRENTSECTION#>=1)
IfTrueAction=[!ShowMeter "AppInd14"][!Redraw]
IfFalseAction=[!HideMeter "AppInd14"][!Redraw]
DynamicVariables=1

[MeterBase]
Meter=Image
ImageName=#@#images/Battle.png
W=(354*(#Scaler#*(#Scaler#/1.25)))
PerseveAspectRatio=1

[MeterUser]
Meter=String
MeasureName=MeasureUserName
X=(45*(#Scaler#*(#Scaler#/1.25)))
Y=(3.5*(#Scaler#*(#Scaler#/1.25)))
FontFace=StatusPlz
SolidColor=111111
FontColor=ffffff
AntiAlias=1
FontSize=(10.5*(#Scaler#*(#Scaler#/1.25)))

[MeterBash]
Meter=String
Text=Bash
FontColor=ffffff
SolidColor=111111
AntiAlias=1
FontSize=(23*(#Scaler#*(#Scaler#/1.25)))
FontFace=Apple Kid
X=(43*(#Scaler#*(#Scaler#/1.25)))
Y=(20.5*(#Scaler#*(#Scaler#/1.25)))
MouseOverAction=[!ToggleMeter BashArrow][!Redraw]
MouseLeaveAction=[!ToggleMeter BashArrow][!Redraw]

[BashArrow]
Meter=Image
ImageName=#@#images/Pointer1.png
W=(354*(#Scaler#*(#Scaler#/1.25)))
PerseveAspectRatio=1
Hidden=1

[PSIArrow]
Meter=Image
ImageName=#@#images/Pointer2.png
W=(354*(#Scaler#*(#Scaler#/1.25)))
PerseveAspectRatio=1
Hidden=1

[GoodsArrow]
Meter=Image
ImageName=#@#images/Pointer3.png
W=(354*(#Scaler#*(#Scaler#/1.25)))
PerseveAspectRatio=1
Hidden=1

[DefendArrow]
Meter=Image
ImageName=#@#images/Pointer4.png
W=(354*(#Scaler#*(#Scaler#/1.25)))
PerseveAspectRatio=1
Hidden=1

[AutoArrow]
Meter=Image
ImageName=#@#images/Pointer5.png
W=(354*(#Scaler#*(#Scaler#/1.25)))
PerseveAspectRatio=1
Hidden=1

[RunArrow]
Meter=Image
ImageName=#@#images/Pointer6.png
W=(354*(#Scaler#*(#Scaler#/1.25)))
PerseveAspectRatio=1
Hidden=1

[MeterPSI]
Meter=String
Text=PSI
FontColor=ffffff
SolidColor=111111
AntiAlias=1
FontSize=(23*(#Scaler#*(#Scaler#/1.25)))
FontFace=Apple Kid
X=(43*(#Scaler#*(#Scaler#/1.25)))
Y=(52*(#Scaler#*(#Scaler#/1.25)))
MouseOverAction=[!ToggleMeter PSIArrow][!Redraw]
MouseLeaveAction=[!ToggleMeter PSIArrow][!Redraw]

[MeterGoods]
Meter=String
Text=Goods
FontColor=ffffff
SolidColor=111111
AntiAlias=1
FontSize=(23*(#Scaler#*(#Scaler#/1.25)))
FontFace=Apple Kid
X=(139*(#Scaler#*(#Scaler#/1.25)))
Y=(20.5*(#Scaler#*(#Scaler#/1.25)))
MouseOverAction=[!ToggleMeter GoodsArrow][!Redraw]
MouseLeaveAction=[!ToggleMeter GoodsArrow][!Redraw]
LeftMouseUpAction=[!SetVariable SubmenuVisible "(1-#SubmenuVisible#)"][!UpdateMeasure "MeasureSubmenuVisible"][!UpdateMeasure "MeasureAppSubmenu1"][!UpdateMeasure "MeasureAppSubmenu2"][!UpdateMeasure "MeasureAppSubmenu3"][!UpdateMeasure "MeasureAppSubmenu4"][!UpdateMeasure "MeasureAppSubmenu5"][!UpdateMeasure "MeasureAppSubmenu6"][!UpdateMeasure "MeasureAppSubmenu7"][!UpdateMeasure "MeasureAppSubmenu8"][!UpdateMeasure "MeasureAppSubmenu9"][!UpdateMeasure "MeasureAppSubmenu10"][!UpdateMeasure "MeasureAppSubmenu11"][!UpdateMeasure "MeasureAppSubmenu12"][!UpdateMeasure "MeasureAppSubmenu13"][!UpdateMeasure "MeasureAppSubmenu14"][!UpdateMeter "#CURRENTSECTION#"][!Redraw]

[MeterDefend]
Meter=String
Text=Defend
FontColor=ffffff
SolidColor=111111
AntiAlias=1
FontSize=(23*(#Scaler#*(#Scaler#/1.25)))
FontFace=Apple Kid
X=(139*(#Scaler#*(#Scaler#/1.25)))
Y=(52*(#Scaler#*(#Scaler#/1.25)))
ToolTipText=Lock
;LeftMouseUpAction=rundll32.exe user32.dll LockWorkStation
MouseOverAction=[!ToggleMeter DefendArrow][!Redraw]
MouseLeaveAction=[!ToggleMeter DefendArrow][!Redraw]

[MeterAutoFight]
Meter=String
Text=Auto Fight
FontColor=ffffff
SolidColor=111111
AntiAlias=1
FontSize=(23*(#Scaler#*(#Scaler#/1.25)))
FontFace=Apple Kid
X=(219*(#Scaler#*(#Scaler#/1.25)))
Y=(20.5*(#Scaler#*(#Scaler#/1.25)))
ToolTipText=Restart
;LeftMouseUpAction=shutdown.exe -r -t 00
MouseOverAction=[!ToggleMeter AutoArrow][!Redraw]
MouseLeaveAction=[!ToggleMeter AutoArrow][!Redraw]

[MeterRunAway]
Meter=String
Text=Run Away
FontColor=ffffff
SolidColor=111111
AntiAlias=1
FontSize=(23*(#Scaler#*(#Scaler#/1.25)))
FontFace=Apple Kid
X=(219*(#Scaler#*(#Scaler#/1.25)))
Y=(52*(#Scaler#*(#Scaler#/1.25)))
ToolTipText=Shut Down
;LeftMouseUpAction=shutdown.exe -s -t 00
MouseOverAction=[!ToggleMeter RunArrow][!Redraw]
MouseLeaveAction=[!ToggleMeter RunArrow][!Redraw]

[MeterGoodsMenu]
Hidden=1
Meter=Image
Y=(1*#Scaler#)
ImageName=#@#images/GoodsMenu.png
W=(1050/1.5*#Scaler#)
PerseveAspectRatio=1
LeftMouseUpAction=[!Refresh]

[MeterUserGoods]
Hidden=1
Meter=String
MeasureName=MeasureUserName
X=(154*(#Scaler#*(#Scaler#/1.25)))
Y=(3.5*(#Scaler#*(#Scaler#/1.25)))
FontFace=StatusPlz
SolidColor=111111
FontColor=ffffff
AntiAlias=1
FontSize=(10.5*(#Scaler#*(#Scaler#/1.25)))
LeftMouseUpAction=[!Refresh]

[App1]
Hidden=1
Meter=String
FontColor=ffffff
SolidColor=111111
AntiAlias=1
FontSize=(23*(#Scaler#*(#Scaler#/1.25)))
FontFace=Apple Kid
X=(175*(#Scaler#*(#Scaler#/1.25)))
Y=(20.5*(#Scaler#*(#Scaler#/1.25)))
Text=#AppName1#
LeftMouseUpAction=[!Refresh]["#AppPath1#"]

[App2]
Hidden=1
Meter=String
FontColor=ffffff
SolidColor=111111
AntiAlias=1
FontSize=(23*(#Scaler#*(#Scaler#/1.25)))
FontFace=Apple Kid
X=(425.5*(#Scaler#*(#Scaler#/1.25)))
Y=(20.5*(#Scaler#*(#Scaler#/1.25)))
Text=#AppName2#
LeftMouseUpAction=[!Refresh]["#AppPath2#"]

[App3]
Hidden=1
Meter=String
FontColor=ffffff
SolidColor=111111
AntiAlias=1
FontSize=(23*(#Scaler#*(#Scaler#/1.25)))
FontFace=Apple Kid
X=(175*(#Scaler#*(#Scaler#/1.25)))
Y=(53*(#Scaler#*(#Scaler#/1.25)))
Text=#AppName3#
LeftMouseUpAction=[!Refresh]["#AppPath3#"]

[App4]
Hidden=1
Meter=String
FontColor=ffffff
SolidColor=111111
AntiAlias=1
FontSize=(23*(#Scaler#*(#Scaler#/1.25)))
FontFace=Apple Kid
X=(425.5*(#Scaler#*(#Scaler#/1.25)))
Y=(53*(#Scaler#*(#Scaler#/1.25)))
Text=#AppName4#
LeftMouseUpAction=[!Refresh]["#AppPath4#"]

[App5]
Hidden=1
Meter=String
FontColor=ffffff
SolidColor=111111
AntiAlias=1
FontSize=(23*(#Scaler#*(#Scaler#/1.25)))
FontFace=Apple Kid
X=(175*(#Scaler#*(#Scaler#/1.25)))
Y=(85.5*(#Scaler#*(#Scaler#/1.25)))
Text=#AppName5#
LeftMouseUpAction=[!Refresh]["#AppPath5#"]

[App6]
Hidden=1
Meter=String
FontColor=ffffff
SolidColor=111111
AntiAlias=1
FontSize=(23*(#Scaler#*(#Scaler#/1.25)))
FontFace=Apple Kid
X=(425.5*(#Scaler#*(#Scaler#/1.25)))
Y=(85.5*(#Scaler#*(#Scaler#/1.25)))
Text=#AppName6#
LeftMouseUpAction=[!Refresh]["#AppPath6#"]

[App7]
Hidden=1
Meter=String
FontColor=ffffff
SolidColor=111111
AntiAlias=1
FontSize=(23*(#Scaler#*(#Scaler#/1.25)))
FontFace=Apple Kid
X=(175*(#Scaler#*(#Scaler#/1.25)))
Y=(118*(#Scaler#*(#Scaler#/1.25)))
Text=#AppName7#
LeftMouseUpAction=[!Refresh]["#AppPath7#"]

[App8]
Hidden=1
Meter=String
FontColor=ffffff
SolidColor=111111
AntiAlias=1
FontSize=(23*(#Scaler#*(#Scaler#/1.25)))
FontFace=Apple Kid
X=(425.5*(#Scaler#*(#Scaler#/1.25)))
Y=(118*(#Scaler#*(#Scaler#/1.25)))
Text=#AppName8#
LeftMouseUpAction=[!Refresh]["#AppPath8#"]

[App9]
Hidden=1
Meter=String
FontColor=ffffff
SolidColor=111111
AntiAlias=1
FontSize=(23*(#Scaler#*(#Scaler#/1.25)))
FontFace=Apple Kid
X=(175*(#Scaler#*(#Scaler#/1.25)))
Y=(150.5*(#Scaler#*(#Scaler#/1.25)))
Text=#AppName9#
LeftMouseUpAction=[!Refresh]["#AppPath9#"]

[App10]
Hidden=1
Meter=String
FontColor=ffffff
SolidColor=111111
AntiAlias=1
FontSize=(23*(#Scaler#*(#Scaler#/1.25)))
FontFace=Apple Kid
X=(425.5*(#Scaler#*(#Scaler#/1.25)))
Y=(150.5*(#Scaler#*(#Scaler#/1.25)))
Text=#AppName10#
LeftMouseUpAction=[!Refresh]["#AppPath10#"]

[App11]
Hidden=1
Meter=String
FontColor=ffffff
SolidColor=111111
AntiAlias=1
FontSize=(23*(#Scaler#*(#Scaler#/1.25)))
FontFace=Apple Kid
X=(175*(#Scaler#*(#Scaler#/1.25)))
Y=(183*(#Scaler#*(#Scaler#/1.25)))
Text=#AppName11#
LeftMouseUpAction=[!Refresh]["#AppPath11#"]

[App12]
Hidden=1
Meter=String
FontColor=ffffff
SolidColor=111111
AntiAlias=1
FontSize=(23*(#Scaler#*(#Scaler#/1.25)))
FontFace=Apple Kid
X=(425.5*(#Scaler#*(#Scaler#/1.25)))
Y=(183*(#Scaler#*(#Scaler#/1.25)))
Text=#AppName12#
LeftMouseUpAction=[!Refresh]["#AppPath12#"]

[App13]
Hidden=1
Meter=String
FontColor=ffffff
SolidColor=111111
AntiAlias=1
FontSize=(23*(#Scaler#*(#Scaler#/1.25)))
FontFace=Apple Kid
X=(175*(#Scaler#*(#Scaler#/1.25)))
Y=(215.5*(#Scaler#*(#Scaler#/1.25)))
Text=#AppName13#
LeftMouseUpAction=[!Refresh]["#AppPath13#"]

[App14]
Hidden=1
Meter=String
FontColor=ffffff
SolidColor=111111
AntiAlias=1
FontSize=(23*(#Scaler#*(#Scaler#/1.25)))
FontFace=Apple Kid
X=(425.5*(#Scaler#*(#Scaler#/1.25)))
Y=(215.5*(#Scaler#*(#Scaler#/1.25)))
Text=#AppName14#
LeftMouseUpAction=[!Refresh]["#AppPath14#"]


[AppInd1]
Meter=Image
ImageName=#@#images/EquipedL
W=(850*(#Scaler#/1.5))
X=(35*#Scaler#)
PerseveAspectRatio=1
Hidden=1

[AppInd2]
Meter=Image
ImageName=#@#images/EquipedR
W=(850*(#Scaler#/1.5))
X=(95*#Scaler#)
PerseveAspectRatio=1
Hidden=1

[AppInd3]
Meter=Image
ImageName=#@#images/EquipedL
W=(850*(#Scaler#/1.5))
X=(35*#Scaler#)
Y=(63*(#Scaler#*(#Scaler#/1.25)))
PerseveAspectRatio=1
Hidden=1

[AppInd4]
Meter=Image
ImageName=#@#images/EquipedR
W=(850*(#Scaler#/1.5))
X=(95*#Scaler#)
Y=(63*(#Scaler#*(#Scaler#/1.25)))
PerseveAspectRatio=1
Hidden=1

[AppInd5]
Meter=Image
ImageName=#@#images/EquipedL
W=(850*(#Scaler#/1.5))
X=(35*#Scaler#)
Y=(95.5*(#Scaler#*(#Scaler#/1.25)))
PerseveAspectRatio=1
Hidden=1

[AppInd6]
Meter=Image
ImageName=#@#images/EquipedR
W=(850*(#Scaler#/1.5))
X=(95*#Scaler#)
Y=(95.5*(#Scaler#*(#Scaler#/1.25)))
PerseveAspectRatio=1
Hidden=1

[AppInd7]
Meter=Image
ImageName=#@#images/EquipedL
W=(850*(#Scaler#/1.5))
X=(35*#Scaler#)
Y=(128*(#Scaler#*(#Scaler#/1.25)))
PerseveAspectRatio=1
Hidden=1

[AppInd8]
Meter=Image
ImageName=#@#images/EquipedR
W=(850*(#Scaler#/1.5))
X=(95*#Scaler#)
Y=(128*(#Scaler#*(#Scaler#/1.25)))
PerseveAspectRatio=1
Hidden=1

[AppInd9]
Meter=Image
ImageName=#@#images/EquipedL
X=(35*#Scaler#)
Y=(150.5*(#Scaler#*(#Scaler#/1.25)))
PerseveAspectRatio=1
Hidden=1

[AppInd10]
Meter=Image
ImageName=#@#images/EquipedR
Y=(150.5*(#Scaler#*(#Scaler#/1.25)))
Hidden=1

[AppInd11]
Meter=Image
ImageName=#@#images/EquipedL
W=(850*(#Scaler#/1.5))
X=(35*#Scaler#)
Y=(193*(#Scaler#*(#Scaler#/1.25)))
PerseveAspectRatio=1
Hidden=1

[AppInd12]
Meter=Image
ImageName=#@#images/EquipedR
W=(850*(#Scaler#/1.5))
X=(95*#Scaler#)
Y=(193*(#Scaler#*(#Scaler#/1.25)))
PerseveAspectRatio=1
Hidden=1

[AppInd13]
Meter=Image
ImageName=#@#images/EquipedL
W=(850*(#Scaler#/1.5))
X=(35*#Scaler#)
Y=(225.5*(#Scaler#*(#Scaler#/1.25)))
PerseveAspectRatio=1
Hidden=1

[AppInd14]
Meter=Image
ImageName=#@#images/EquipedR
W=(850*(#Scaler#/1.5))
X=(95*#Scaler#)
Y=(225.5*(#Scaler#*(#Scaler#/1.25)))
PerseveAspectRatio=1
Hidden=1
justsomeguyhere
Posts: 15
Joined: July 12th, 2019, 7:29 pm

Re: Controlling meter visibility

justsomeguyhere » August 1st, 2019, 6:58 pm

Thank you so much for your help! After a little tweaking everything worked perfectly. I'll be making a full post for the suite I'm making involving this skin later.
User avatar
balala
Rainmeter Sage
Posts: 8809
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Controlling meter visibility

balala » August 1st, 2019, 7:03 pm

justsomeguyhere wrote:
August 1st, 2019, 6:58 pm
I'll be making a full post for the suite I'm making involving this skin later.
Ok, I'm glad. Plase do so.