Hi! I would love to replicate this rainmeter skin. Could you point me to some guide/advice/files to build it? I've been searching about rainmeter dropdown text list but couldn't find anything. I'd appreciate it a lot :3
It is currently October 12th, 2024, 4:30 am
help me creating a drop-down list
-
- Posts: 5
- Joined: April 29th, 2013, 8:23 pm
-
- Posts: 28
- Joined: August 27th, 2013, 1:43 pm
Re: help me creating a drop-down list
The skin itself wouldn't be too difficult.
You just need 3 string meters for the categories, that when clicked on show the meters of their group and the meters of the others. Check the manual on bangs.
You just need 3 string meters for the categories, that when clicked on show the meters of their group and the meters of the others. Check the manual on bangs.
-
- Rainmeter Sage
- Posts: 16651
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: help me creating a drop-down list
What you say about this very simple code? Obviously, you'll have to adapt it, changing the menu items and the paths as you want, but I think you can work onto it:
I've included very commonly used programs, change them, to what you need.
Code: Select all
[Rainmeter]
Update=1000
BackgroundMode=2
SolidColor=80,80,80,220
[MenuStyle]
FontColor=255,255,255
FontFace=Trebuchet MS
AlignString=LEFT
AntiAlias=1
[MenuItemDesktop]
Meter=STRING
X=0
Y=0
FontSize=10
MeterStyle=MenuStyle
Text=Desktop
LeftMouseUpAction=[!ToggleMeterGroup Desktop][!HideMeterGroup Games][!HideMeterGroup Programs]
[MenuItemGames]
Meter=STRING
X=0r
Y=2R
FontSize=10
MeterStyle=MenuStyle
Text=Games
LeftMouseUpAction=[!HideMeterGroup Desktop][!ToggleMeterGroup Games][!HideMeterGroup Programs]
[MenuItemPrograms]
Meter=STRING
X=0r
Y=2R
FontSize=10
MeterStyle=MenuStyle
Text=Programs
LeftMouseUpAction=[!HideMeterGroup Desktop][!HideMeterGroup Games][!ToggleMeterGroup Programs]
[MenuItemDesktop1]
Meter=STRING
X=100
Y=0
FontSize=11
MeterStyle=MenuStyle
Text=Internet explorer
Hidden=1
Group=Desktop
LeftMouseUpAction=["c:\Program Files\Internet Explorer\iexplore.exe"]
[MenuItemDesktop2]
Meter=STRING
X=0r
Y=2R
FontSize=11
MeterStyle=MenuStyle
Text=Media player
Hidden=1
Group=Desktop
LeftMouseUpAction=["c:\Program Files\Windows Media Player\wmplayer.exe"]
[MenuItemDesktop3]
Meter=STRING
X=0r
Y=2R
FontSize=11
MeterStyle=MenuStyle
Text=Control panel
Hidden=1
Group=Desktop
LeftMouseUpAction=["Shell:::{5399E694-6CE5-4D6C-8FCE-1D8870FDCBA0}"]
[MenuItemGames1]
Meter=STRING
X=100
Y=0
FontSize=11
MeterStyle=MenuStyle
Text=Solitaire
Hidden=1
Group=Games
LeftMouseUpAction=["c:\Windows\winsxs\x86_microsoft-windows-s..nboxgames-
solitaire_31bf3856ad364e35_6.1.7600.16385_none_74f3b07c5d008bde\Solitaire.exe"]
[MenuItemGames2]
Meter=STRING
X=0r
Y=2R
FontSize=11
MeterStyle=MenuStyle
Text=Hearts
Hidden=1
Group=Games
LeftMouseUpAction=["..."]
[MenuItemPrograms1]
Meter=STRING
X=100
Y=0
FontSize=11
MeterStyle=MenuStyle
Text=Word
Hidden=1
Group=Programs
LeftMouseUpAction=["c:\Program Files\Microsoft Office\Office14\WINWORD.EXE"]
[MenuItemPrograms2]
Meter=STRING
X=0r
Y=2R
FontSize=11
MeterStyle=MenuStyle
Text=Notepad
Hidden=1
Group=Programs
LeftMouseUpAction=["c:\Windows\notepad.exe"]
[MenuItemPrograms3]
Meter=STRING
X=0r
Y=2R
FontSize=11
MeterStyle=MenuStyle
Text=Paint
Hidden=1
Group=Programs
LeftMouseUpAction=["c:\Windows\System32\mspaint.exe"]
[MeterScoreBackground2]
Meter=Image
SolidColor=80,80,80,0
X=250
Y=100
W=0
H=0
-
- Posts: 2
- Joined: May 23rd, 2023, 4:40 am
Re: help me creating a drop-down list
I would like to incorporate this dropdown menu in to an existing ini. how do I poilnt the link to the dropdown menu.
So in location 12 I want to have a dropdown list of programs. How would I also make numerous dropdown menus if I want to expand this concept?
Code: Select all
[Rainmeter]
Update=-1
Author=Connect-R
BackgroundMode=2
SolidColor=0,0,0,1
DynamicWindowSize=1
AccurateText=1
MouseScrollUpAction=[!SetVariable Scale "(#Scale#+#ScrollMouseIncrement#)"][!WriteKeyValue Variables Scale "(#Scale#+#ScrollMouseIncrement#)"][!Refresh]
MouseScrollDownAction=[!SetVariable Scale "(#Scale#-#ScrollMouseIncrement# < 0.2 ? 0.2 : #Scale#-#ScrollMouseIncrement#)"][!WriteKeyValue Variables Scale "(#Scale#-#ScrollMouseIncrement# < 0.2 ? 0.2 : #Scale#-#ScrollMouseIncrement#)"][!Refresh]
[Variables]
@include=#@#Variables.inc
@include2=#@#Language\Language.inc
Scale=0.85
Name1=My Computer
LocationPath1=[Shell:::{20D04FE0-3AEA-1069-A2D8-08002B30309D}]
Name2=Outlook
LocationPath2=["C:\Program Files (x86)\Microsoft Office\root\Office16\OUTLOOK.EXE"]
Name3=Photoshop
LocationPath3= ["C:\Program Files\Adobe\Adobe Photoshop 2023\Photoshop.exe"]
Name4=Foxit PDF
LocationPath4=["C:\Program Files (x86)\Foxit Software\Foxit PDF Editor\FoxitPDFEditor.exe"]
Name5=Inspections
LocationPath5=["C:\FrontEnds\Car Inspections.accde"]
Name6=Turbo Collage
LocationPath6=["C:\Program Files (x86)\SilkenMermaid Technologies\TurboCollage\TurboCollage.exe"]
Name7=Onenote
LocationPath7=["C:\Program Files (x86)\Microsoft Office\root\Office16\ONENOTE.EXE"]
Name8=Word
LocationPath8=["C:\Program Files (x86)\Microsoft Office\root\Office16\WINWORD.EXE"]
Name9=Excel
LocationPath9=["C:\Program Files (x86)\Microsoft Office\root\Office16\EXCEL.EXE"]
Name10=PowerPoint
LocationPath10=["C:\Program Files (x86)\Microsoft Office\root\Office16\POWERPNT.EXE"]
Name11=Access
LocationPath11=["C:\Program Files (x86)\Microsoft Office\root\Office16\MSACCESS.EXE"]
Name12=List
LocationPath12=[]
_______________________________________________________________________
[MeterRound]
Meter=Shape
X=(0*#Scale#)
Y=(0*#Scale#)
Shape=Rectangle 0,0,(1500*#Scale#),(40*#Scale#),(10*#Scale#) | Fill Color #Color1#,20 | StrokeWidth 0 | Stroke Color #Color1#,0
;-------------------------------------------------------------
;-------------------------------------------------------------
[MeterLink1]
Meter=String
StringAlign=Left
StringCase=Upper
FontFace=Metropolis
FontColor=#Color1#
FontSize=(12*#Scale#)
X=(60*#Scale#)
Y=(15*#Scale#)
Text="#Name1#"
AntiAlias=1
MouseOverAction=[!SetOption #CURRENTSECTION# FontColor "#Color2#"][!Update]
MouseLeaveAction=[!SetOption #CURRENTSECTION# FontColor "#Color1#"][!Update]
LeftMouseUpAction=#LocationPath1#
[MeterLink2]
Meter=String
StringAlign=Left
StringCase=Upper
FontFace=Metropolis
FontColor=#Color1#
FontSize=(12*#Scale#)
X=(20*#Scale#)R
Y=(0*#Scale#)r
Text="#Name2#"
AntiAlias=1
MouseOverAction=[!SetOption #CURRENTSECTION# FontColor "#Color2#"][!Update]
MouseLeaveAction=[!SetOption #CURRENTSECTION# FontColor "#Color1#"][!Update]
LeftMouseUpAction=#LocationPath2#
[MeterLink3]
Meter=String
StringAlign=Left
StringCase=Upper
FontFace=Metropolis
FontColor=#Color1#
FontSize=(12*#Scale#)
X=(20*#Scale#)R
Y=(0*#Scale#)r
Text="#Name3#"
AntiAlias=1
MouseOverAction=[!SetOption #CURRENTSECTION# FontColor "#Color2#"][!Update]
MouseLeaveAction=[!SetOption #CURRENTSECTION# FontColor "#Color1#"][!Update]
LeftMouseUpAction=#LocationPath3#
[MeterLink4]
Meter=String
StringAlign=Left
StringCase=Upper
FontFace=Metropolis
FontColor=#Color1#
FontSize=(12*#Scale#)
X=(20*#Scale#)R
Y=(0*#Scale#)r
Text="#Name4#"
AntiAlias=1
MouseOverAction=[!SetOption #CURRENTSECTION# FontColor "#Color2#"][!Update]
MouseLeaveAction=[!SetOption #CURRENTSECTION# FontColor "#Color1#"][!Update]
LeftMouseUpAction=#LocationPath4#
[MeterLink5]
Meter=String
StringAlign=Left
StringCase=Upper
FontFace=Metropolis
FontColor=#Color1#
FontSize=(12*#Scale#)
X=(20*#Scale#)R
Y=(0*#Scale#)r
Text="#Name5#"
AntiAlias=1
MouseOverAction=[!SetOption #CURRENTSECTION# FontColor "#Color2#"][!Update]
MouseLeaveAction=[!SetOption #CURRENTSECTION# FontColor "#Color1#"][!Update]
LeftMouseUpAction=#LocationPath5#
[MeterLink6]
Meter=String
StringAlign=Left
StringCase=Upper
FontFace=Metropolis
FontColor=#Color1#
FontSize=(12*#Scale#)
X=(20*#Scale#)R
Y=(0*#Scale#)r
Text="#Name6#"
AntiAlias=1
MouseOverAction=[!SetOption #CURRENTSECTION# FontColor "#Color2#"][!Update]
MouseLeaveAction=[!SetOption #CURRENTSECTION# FontColor "#Color1#"][!Update]
LeftMouseUpAction=#LocationPath6#
[MeterLink7]
Meter=String
StringAlign=Left
StringCase=Upper
FontFace=Metropolis
FontColor=#Color1#
FontSize=(12*#Scale#)
X=(20*#Scale#)R
Y=(0*#Scale#)r
Text="#Name7#"
AntiAlias=1
MouseOverAction=[!SetOption #CURRENTSECTION# FontColor "#Color2#"][!Update]
MouseLeaveAction=[!SetOption #CURRENTSECTION# FontColor "#Color1#"][!Update]
LeftMouseUpAction=#LocationPath7#
[MeterLink8]
Meter=String
StringAlign=Left
StringCase=Upper
FontFace=Metropolis
FontColor=#Color1#
FontSize=(12*#Scale#)
X=(20*#Scale#)R
Y=(0*#Scale#)r
Text="#Name8#"
AntiAlias=1
MouseOverAction=[!SetOption #CURRENTSECTION# FontColor "#Color2#"][!Update]
MouseLeaveAction=[!SetOption #CURRENTSECTION# FontColor "#Color1#"][!Update]
LeftMouseUpAction=#LocationPath8#
[MeterLink9]
Meter=String
StringAlign=Left
StringCase=Upper
FontFace=Metropolis
FontColor=#Color1#
FontSize=(12*#Scale#)
X=(20*#Scale#)R
Y=(0*#Scale#)r
Text="#Name9#"
AntiAlias=1
MouseOverAction=[!SetOption #CURRENTSECTION# FontColor "#Color2#"][!Update]
MouseLeaveAction=[!SetOption #CURRENTSECTION# FontColor "#Color1#"][!Update]
LeftMouseUpAction=#LocationPath9#
[MeterLink10]
Meter=String
StringAlign=Left
StringCase=Upper
FontFace=Metropolis
FontColor=#Color1#
FontSize=(12*#Scale#)
X=(20*#Scale#)R
Y=(0*#Scale#)r
Text="#Name10#"
AntiAlias=1
MouseOverAction=[!SetOption #CURRENTSECTION# FontColor "#Color2#"][!Update]
MouseLeaveAction=[!SetOption #CURRENTSECTION# FontColor "#Color1#"][!Update]
LeftMouseUpAction=#LocationPath10#
[MeterLink11]
Meter=String
StringAlign=Left
StringCase=Upper
FontFace=Metropolis
FontColor=#Color1#
FontSize=(12*#Scale#)
X=(20*#Scale#)R
Y=(0*#Scale#)r
Text="#Name11#"
AntiAlias=1
MouseOverAction=[!SetOption #CURRENTSECTION# FontColor "#Color2#"][!Update]
MouseLeaveAction=[!SetOption #CURRENTSECTION# FontColor "#Color1#"][!Update]
LeftMouseUpAction=#LocationPath11#
[MeterLink12]
Meter=String
StringAlign=Left
StringCase=Upper
FontFace=Metropolis
FontColor=#Color1#
FontSize=(12*#Scale#)
X=(20*#Scale#)R
Y=(0*#Scale#)r
Text="#Name12#"
AntiAlias=1
MouseOverAction=[!SetOption #CURRENTSECTION# FontColor "#Color2#"][!Update]
MouseLeaveAction=[!SetOption #CURRENTSECTION# FontColor "#Color1#"][!Update]
LeftMouseUpAction=#LocationPath12#
_______________________________________________________________________
[TextStyle]
FontFace = Lucida Calligraphy
FontSize = 17
FontColor = 7d040b
AntiAlias = 1
;-------------------------------------------Drop down meter-------------------------------------
[MeterString]
Meter = String
Text = Programs
X = 1
Y = 0
MeterStyle=Textstyle
FontSize = 25
StringStyle = Bold
StringEffect = Shadow
FontEffectColor = 000000
MouseOverAction = [!ShowMeterGroup=DropDown]
[MeterStringImageMeterDropDown]
Meter = Image
SolidColor = 0,0,0,1
X = 2
Y = 24
W = 116
H = 95
Hidden = 1
MouseLeaveAction = [!HideMeterGroup DropDown]
[MeterStringItem1]
Meter = String
Text = League of Legends
X = 1
Y = 43
MeterStyle=Textstyle
Hidden = 1
LeftMouseDownAction = []
Group=DropDown
[MeterStringItem2]
Meter = String
Text = Rosetta Stone
X = 1
Y = 75
MeterStyle=Textstyle
Hidden = 1
LeftMouseDownAction = []
Group=DropDown
[MeterStringItem3]
Meter = String
Text = MS Word
X = 1
Y = 107
MeterStyle=Textstyle
Hidden = 1
LeftMouseDownAction = []
Group=DropDown
[MeterStringItem4]
Meter = String
Text = Torrent
X = 1
Y = 139
MeterStyle=Textstyle
Hidden = 1
LeftMouseDownAction = []
Group=DropDown
[MeterStringItem5]
Meter = String
Text = GIMP
X = 1
Y = 171
MeterStyle=Textstyle
Hidden = 1
LeftMouseDownAction = []
Group=DropDown
-
- Posts: 2
- Joined: May 23rd, 2023, 4:40 am
Re: help me creating a drop-down list
I figured some of it out, Now need to learn how to hide the dropdown if both Main item and dropdown lose focus.
Code: Select all
[Rainmeter]
Update=-1
Author=Connect-R
BackgroundMode=2
SolidColor=0,0,0,1
DynamicWindowSize=1
AccurateText=1
MouseScrollUpAction=[!SetVariable Scale "(#Scale#+#ScrollMouseIncrement#)"][!WriteKeyValue Variables Scale "(#Scale#+#ScrollMouseIncrement#)"][!Refresh]
MouseScrollDownAction=[!SetVariable Scale "(#Scale#-#ScrollMouseIncrement# < 0.2 ? 0.2 : #Scale#-#ScrollMouseIncrement#)"][!WriteKeyValue Variables Scale "(#Scale#-#ScrollMouseIncrement# < 0.2 ? 0.2 : #Scale#-#ScrollMouseIncrement#)"][!Refresh]
[Variables]
@include=#@#Variables.inc
@include2=#@#Language\Language.inc
Scale=0.85
Name1=My Computer
LocationPath1=[Shell:::{20D04FE0-3AEA-1069-A2D8-08002B30309D}]
Name2=Outlook
LocationPath2=["C:\Program Files (x86)\Microsoft Office\root\Office16\OUTLOOK.EXE"]
Name3=Photoshop
LocationPath3= ["C:\Program Files\Adobe\Adobe Photoshop 2023\Photoshop.exe"]
Name4=Foxit PDF
LocationPath4=["C:\Program Files (x86)\Foxit Software\Foxit PDF Editor\FoxitPDFEditor.exe"]
Name5=Inspections
LocationPath5=["C:\FrontEnds\Car Inspections.accde"]
Name6=Turbo Collage
LocationPath6=["C:\Program Files (x86)\SilkenMermaid Technologies\TurboCollage\TurboCollage.exe"]
Name7=Onenote
LocationPath7=["C:\Program Files (x86)\Microsoft Office\root\Office16\ONENOTE.EXE"]
Name8=Word
LocationPath8=["C:\Program Files (x86)\Microsoft Office\root\Office16\WINWORD.EXE"]
Name9=Excel
LocationPath9=["C:\Program Files (x86)\Microsoft Office\root\Office16\EXCEL.EXE"]
Name10=PowerPoint
LocationPath10=["C:\Program Files (x86)\Microsoft Office\root\Office16\POWERPNT.EXE"]
Name11=Access
LocationPath11=["C:\Program Files (x86)\Microsoft Office\root\Office16\MSACCESS.EXE"]
Name12=Frontends
Name13=Frontends
Name14=Frontends
_______________________________________________________________________
[MeterRound]
Meter=Shape
X=(0*#Scale#)
Y=(0*#Scale#)
Shape=Rectangle 0,0,(1500*#Scale#),(40*#Scale#),(10*#Scale#) | Fill Color #Color1#,20 | StrokeWidth 0 | Stroke Color #Color1#,0
;-------------------------------------------------------------
;-------------------------------------------------------------
[MeterLink1]
Meter=String
StringAlign=Left
StringCase=Upper
FontFace=Metropolis
FontColor=#Color1#
FontSize=(12*#Scale#)
X=(60*#Scale#)
Y=(15*#Scale#)
Text="#Name1#"
AntiAlias=1
MouseOverAction=[!SetOption #CURRENTSECTION# FontColor "#Color2#"][!Update]
MouseLeaveAction=[!SetOption #CURRENTSECTION# FontColor "#Color1#"][!Update]
LeftMouseUpAction=#LocationPath1#
[MeterLink2]
Meter=String
StringAlign=Left
StringCase=Upper
FontFace=Metropolis
FontColor=#Color1#
FontSize=(12*#Scale#)
X=(20*#Scale#)R
Y=(0*#Scale#)r
Text="#Name2#"
AntiAlias=1
MouseOverAction=[!SetOption #CURRENTSECTION# FontColor "#Color2#"][!Update]
MouseLeaveAction=[!SetOption #CURRENTSECTION# FontColor "#Color1#"][!Update]
LeftMouseUpAction=#LocationPath2#
[MeterLink3]
Meter=String
StringAlign=Left
StringCase=Upper
FontFace=Metropolis
FontColor=#Color1#
FontSize=(12*#Scale#)
X=(20*#Scale#)R
Y=(0*#Scale#)r
Text="#Name3#"
AntiAlias=1
MouseOverAction=[!SetOption #CURRENTSECTION# FontColor "#Color2#"][!Update]
MouseLeaveAction=[!SetOption #CURRENTSECTION# FontColor "#Color1#"][!Update]
LeftMouseUpAction=#LocationPath3#
[MeterLink4]
Meter=String
StringAlign=Left
StringCase=Upper
FontFace=Metropolis
FontColor=#Color1#
FontSize=(12*#Scale#)
X=(20*#Scale#)R
Y=(0*#Scale#)r
Text="#Name4#"
AntiAlias=1
MouseOverAction=[!SetOption #CURRENTSECTION# FontColor "#Color2#"][!Update]
MouseLeaveAction=[!SetOption #CURRENTSECTION# FontColor "#Color1#"][!Update]
LeftMouseUpAction=#LocationPath4#
[MeterLink5]
Meter=String
StringAlign=Left
StringCase=Upper
FontFace=Metropolis
FontColor=#Color1#
FontSize=(12*#Scale#)
X=(20*#Scale#)R
Y=(0*#Scale#)r
Text="#Name5#"
AntiAlias=1
MouseOverAction=[!SetOption #CURRENTSECTION# FontColor "#Color2#"][!Update]
MouseLeaveAction=[!SetOption #CURRENTSECTION# FontColor "#Color1#"][!Update]
LeftMouseUpAction=#LocationPath5#
[MeterLink6]
Meter=String
StringAlign=Left
StringCase=Upper
FontFace=Metropolis
FontColor=#Color1#
FontSize=(12*#Scale#)
X=(20*#Scale#)R
Y=(0*#Scale#)r
Text="#Name6#"
AntiAlias=1
MouseOverAction=[!SetOption #CURRENTSECTION# FontColor "#Color2#"][!Update]
MouseLeaveAction=[!SetOption #CURRENTSECTION# FontColor "#Color1#"][!Update]
LeftMouseUpAction=#LocationPath6#
[MeterLink7]
Meter=String
StringAlign=Left
StringCase=Upper
FontFace=Metropolis
FontColor=#Color1#
FontSize=(12*#Scale#)
X=(20*#Scale#)R
Y=(0*#Scale#)r
Text="#Name7#"
AntiAlias=1
MouseOverAction=[!SetOption #CURRENTSECTION# FontColor "#Color2#"][!Update]
MouseLeaveAction=[!SetOption #CURRENTSECTION# FontColor "#Color1#"][!Update]
LeftMouseUpAction=#LocationPath7#
[MeterLink8]
Meter=String
StringAlign=Left
StringCase=Upper
FontFace=Metropolis
FontColor=#Color1#
FontSize=(12*#Scale#)
X=(20*#Scale#)R
Y=(0*#Scale#)r
Text="#Name8#"
AntiAlias=1
MouseOverAction=[!SetOption #CURRENTSECTION# FontColor "#Color2#"][!Update]
MouseLeaveAction=[!SetOption #CURRENTSECTION# FontColor "#Color1#"][!Update]
LeftMouseUpAction=#LocationPath8#
[MeterLink9]
Meter=String
StringAlign=Left
StringCase=Upper
FontFace=Metropolis
FontColor=#Color1#
FontSize=(12*#Scale#)
X=(20*#Scale#)R
Y=(0*#Scale#)r
Text="#Name9#"
AntiAlias=1
MouseOverAction=[!SetOption #CURRENTSECTION# FontColor "#Color2#"][!Update]
MouseLeaveAction=[!SetOption #CURRENTSECTION# FontColor "#Color1#"][!Update]
LeftMouseUpAction=#LocationPath9#
[MeterLink10]
Meter=String
StringAlign=Left
StringCase=Upper
FontFace=Metropolis
FontColor=#Color1#
FontSize=(12*#Scale#)
X=(20*#Scale#)R
Y=(0*#Scale#)r
Text="#Name10#"
AntiAlias=1
MouseOverAction=[!SetOption #CURRENTSECTION# FontColor "#Color2#"][!Update]
MouseLeaveAction=[!SetOption #CURRENTSECTION# FontColor "#Color1#"][!Update]
LeftMouseUpAction=#LocationPath10#
[MeterLink11]
Meter=String
StringAlign=Left
StringCase=Upper
FontFace=Metropolis
FontColor=#Color1#
FontSize=(12*#Scale#)
X=(20*#Scale#)R
Y=(0*#Scale#)r
Text="#Name11#"
AntiAlias=1
MouseOverAction=[!SetOption #CURRENTSECTION# FontColor "#Color2#"][!Update]
MouseLeaveAction=[!SetOption #CURRENTSECTION# FontColor "#Color1#"][!Update]
LeftMouseUpAction=#LocationPath11#
[MeterLink12]
Meter=String
StringAlign=Left
StringCase=Upper
FontFace=Metropolis
FontColor=#Color1#
FontSize=(12*#Scale#)
X=(20*#Scale#)R
Y=(0*#Scale#)r
Text="#Name12#"
AntiAlias=1
MouseOverAction=[!SetOption #CURRENTSECTION# FontColor "#Color2#"][!Update]
MouseLeaveAction=[!SetOption #CURRENTSECTION# FontColor "#Color1#"][!Update]
LeftMouseUpAction=!Execute [!ShowMeter MeterOne][!ShowMeter MeterTwo][!ShowMeter MeterThree][!ShowMeter MeterFour][!ShowMeter MeterFive][!ShowMeter MeterSix][!ShowMeter MeterSeven][!Redraw]
;_______________________________________________________________________
[MeterOne]
Meter=String
Text=Call Centre Ops
FontFace=Metropolis
FontColor=#Color2#
FontSize=(12*#Scale#)
AntiAlias=1
X=(0*#Scale#)r
Y=(25*#Scale#)r
LeftMouseUpAction=!Execute ["C:\Users\chrisb\OneDrive - Cairns Taxis Limited\Documents\Access Dock\Call Centre Ops.accde - Shortcut.lnk"][!HideMeter MeterOne][!HideMeter MeterTwo][!HideMeter MeterThree][!HideMeter MeterFour][!HideMeter MeterFive][!HideMeter MeterSix][!HideMeter MeterSeven][!Update]
Hidden=1
[MeterTwo]
Meter=String
Text=Drivers and Complaints
FontFace=Metropolis
FontColor=#Color2#
FontSize=(12*#Scale#)
AntiAlias=1
X=(0*#Scale#)r
Y=(30*#Scale#)r
LeftMouseUpAction=!Execute ["C:\Users\chrisb\OneDrive - Cairns Taxis Limited\Documents\Access Dock\Drivers & Complaints.accde - Shortcut"][!HideMeter MeterOne][!HideMeter MeterTwo][!HideMeter MeterThree][!HideMeter MeterFour][!HideMeter MeterFive][!HideMeter MeterSix][!HideMeter MeterSeven][!Update]
Hidden=1
[MeterThree]
Meter=String
Text=Fleet Details
FontFace=Metropolis
FontColor=#Color2#
FontSize=(12*#Scale#)
AntiAlias=1
X=(0*#Scale#)r
Y=(30*#Scale#)r
LeftMouseUpAction=!Execute ["C:\Users\chrisb\OneDrive - Cairns Taxis Limited\Documents\Access Dock\Fleet Details.accde - Shortcut"][!HideMeter MeterOne][!HideMeter MeterTwo][!HideMeter MeterThree][!HideMeter MeterFour][!HideMeter MeterFive][!HideMeter MeterSix][!HideMeter MeterSeven][!Update]
Hidden=1
[MeterFour]
Meter=String
Text=CCTV - Camera Download
FontFace=Metropolis
FontColor=#Color2#
FontSize=(12*#Scale#)
AntiAlias=1
X=(0*#Scale#)r
Y=(30*#Scale#)r
LeftMouseUpAction=!Execute ["C:\Users\chrisb\OneDrive - Cairns Taxis Limited\Documents\Access Dock\CCTV.accde - Shortcut"][!HideMeter MeterOne][!HideMeter MeterTwo][!HideMeter MeterThree][!HideMeter MeterFour][!HideMeter MeterFive][!HideMeter MeterSix][!HideMeter MeterSeven][!Update]
Hidden=1
[MeterFive]
Meter=String
Text=Fleet Inspections
FontFace=Metropolis
FontColor=#Color2#
FontSize=(12*#Scale#)
AntiAlias=1
X=(0*#Scale#)r
Y=(30*#Scale#)r
LeftMouseUpAction=!Execute ["C:\Users\chrisb\OneDrive - Cairns Taxis Limited\Documents\Access Dock\Car Inspections.accde - Shortcut"][!HideMeter MeterOne][!HideMeter MeterTwo][!HideMeter MeterThree][!HideMeter MeterFour][!HideMeter MeterFive][!HideMeter MeterSix][!HideMeter MeterSeven][!Update]
Hidden=1
[MeterSix]
Meter=String
Text=Sub Hire Taxi
FontFace=Metropolis
FontColor=#Color2#
FontSize=(12*#Scale#)
AntiAlias=1
X=(0*#Scale#)r
Y=(30*#Scale#)r
LeftMouseUpAction=!Execute ["C:\Users\chrisb\OneDrive - Cairns Taxis Limited\Documents\Access Dock\Sub Taxi Hire.accde - Shortcut"][!HideMeter MeterOne][!HideMeter MeterTwo][!HideMeter MeterThree][!HideMeter MeterFour][!HideMeter MeterFive][!HideMeter MeterSix][!HideMeter MeterSeven][!Update]
Hidden=1
[MeterSeven]
Meter=String
Text=Workplace Health and Safety
FontFace=Metropolis
FontColor=#Color2#
FontSize=(12*#Scale#)
AntiAlias=1
X=(0*#Scale#)r
Y=(30*#Scale#)r
LeftMouseUpAction=!Execute ["C:\Users\chrisb\OneDrive - Cairns Taxis Limited\Documents\Access Dock\Workplace Health and Safety.accde - Shortcut"][!HideMeter MeterOne][!HideMeter MeterTwo][!HideMeter MeterThree][!HideMeter MeterFour][!HideMeter MeterFive][!HideMeter MeterSix][!HideMeter MeterSeven][!Update]
Hidden=1
-
- Rainmeter Sage
- Posts: 5540
- Joined: April 12th, 2012, 9:40 pm
- Location: Cedar Point, Ohio, USA
Re: help me creating a drop-down list
Use multiple Group assignments to define all menus and each unique menu. I use "Menu" as the group name for all submenus and named your submenu meter group "Frontends".
Then use Group bangs to control when they are shown or hidden.
Every submenu will be part of the "Menu" group; you can hide all of them with [!HideMeterGroup Menu] bang. This bang can be added to each main menu meter mouseover action to hide all submenus when the mouse moves to a new menu item.
To show a unique submenu, first hide all submenus, then show the desired submenu meter group; for example [!HideMeterGroup Menu][!ShowMeterGroup Frontends]. This can be added to mosueover or mouse click action bangs depending on how you want to interact with the menus.
Here is a sample of your code with one way to use these changes. Feel free to ask about anything that is not clear.
{Click to image to show actiion.}
Then use Group bangs to control when they are shown or hidden.
Every submenu will be part of the "Menu" group; you can hide all of them with [!HideMeterGroup Menu] bang. This bang can be added to each main menu meter mouseover action to hide all submenus when the mouse moves to a new menu item.
To show a unique submenu, first hide all submenus, then show the desired submenu meter group; for example [!HideMeterGroup Menu][!ShowMeterGroup Frontends]. This can be added to mosueover or mouse click action bangs depending on how you want to interact with the menus.
Here is a sample of your code with one way to use these changes.
Code: Select all
[Rainmeter]
Update=-1
Author=Connect-R
BackgroundMode=2
SolidColor=0,0,0,1
DynamicWindowSize=1
AccurateText=1
MouseScrollUpAction=[!SetVariable Scale "(#Scale#+#ScrollMouseIncrement#)"][!WriteKeyValue Variables Scale "(#Scale#+#ScrollMouseIncrement#)"][!Refresh]
MouseScrollDownAction=[!SetVariable Scale "(#Scale#-#ScrollMouseIncrement# < 0.2 ? 0.2 : #Scale#-#ScrollMouseIncrement#)"][!WriteKeyValue Variables Scale "(#Scale#-#ScrollMouseIncrement# < 0.2 ? 0.2 : #Scale#-#ScrollMouseIncrement#)"][!Refresh]
MouseLeaveAction=[!HideMeterGroup Menu][!Redraw]
[Variables]
@include=#@#Variables.inc
@include2=#@#Language\Language.inc
Scale=0.85
Name1=My Computer
LocationPath1=[Shell:::{20D04FE0-3AEA-1069-A2D8-08002B30309D}]
Name2=Outlook
LocationPath2=["C:\Program Files (x86)\Microsoft Office\root\Office16\OUTLOOK.EXE"]
Name3=Photoshop
LocationPath3= ["C:\Program Files\Adobe\Adobe Photoshop 2023\Photoshop.exe"]
Name4=Foxit PDF
LocationPath4=["C:\Program Files (x86)\Foxit Software\Foxit PDF Editor\FoxitPDFEditor.exe"]
Name5=Inspections
LocationPath5=["C:\FrontEnds\Car Inspections.accde"]
Name6=Turbo Collage
LocationPath6=["C:\Program Files (x86)\SilkenMermaid Technologies\TurboCollage\TurboCollage.exe"]
Name7=Onenote
LocationPath7=["C:\Program Files (x86)\Microsoft Office\root\Office16\ONENOTE.EXE"]
Name8=Word
LocationPath8=["C:\Program Files (x86)\Microsoft Office\root\Office16\WINWORD.EXE"]
Name9=Excel
LocationPath9=["C:\Program Files (x86)\Microsoft Office\root\Office16\EXCEL.EXE"]
Name10=PowerPoint
LocationPath10=["C:\Program Files (x86)\Microsoft Office\root\Office16\POWERPNT.EXE"]
Name11=Access
LocationPath11=["C:\Program Files (x86)\Microsoft Office\root\Office16\MSACCESS.EXE"]
Name12=Frontends
Name13=Frontends
Name14=Frontends
_______________________________________________________________________
[MeterRound]
Meter=Shape
X=(0*#Scale#)
Y=(0*#Scale#)
Shape=Rectangle 0,0,(1500*#Scale#),(40*#Scale#),(10*#Scale#) | Fill Color #Color1#,20 | StrokeWidth 0 | Stroke Color #Color1#,0
;-------------------------------------------------------------
;-------------------------------------------------------------
[MeterLink1]
Meter=String
StringAlign=Left
StringCase=Upper
FontFace=Metropolis
FontColor=#Color1#
FontSize=(12*#Scale#)
X=(60*#Scale#)
Y=(15*#Scale#)
Text="#Name1#"
AntiAlias=1
MouseOverAction=[!SetOption #CURRENTSECTION# FontColor "#Color2#"][!Update]
MouseLeaveAction=[!SetOption #CURRENTSECTION# FontColor "#Color1#"][!Update]
LeftMouseUpAction=#LocationPath1#
[MeterLink2]
Meter=String
StringAlign=Left
StringCase=Upper
FontFace=Metropolis
FontColor=#Color1#
FontSize=(12*#Scale#)
X=(20*#Scale#)R
Y=(0*#Scale#)r
Text="#Name2#"
AntiAlias=1
MouseOverAction=[!SetOption #CURRENTSECTION# FontColor "#Color2#"][!Update]
MouseLeaveAction=[!SetOption #CURRENTSECTION# FontColor "#Color1#"][!Update]
LeftMouseUpAction=#LocationPath2#
[MeterLink3]
Meter=String
StringAlign=Left
StringCase=Upper
FontFace=Metropolis
FontColor=#Color1#
FontSize=(12*#Scale#)
X=(20*#Scale#)R
Y=(0*#Scale#)r
Text="#Name3#"
AntiAlias=1
MouseOverAction=[!SetOption #CURRENTSECTION# FontColor "#Color2#"][!Update]
MouseLeaveAction=[!SetOption #CURRENTSECTION# FontColor "#Color1#"][!Update]
LeftMouseUpAction=#LocationPath3#
[MeterLink4]
Meter=String
StringAlign=Left
StringCase=Upper
FontFace=Metropolis
FontColor=#Color1#
FontSize=(12*#Scale#)
X=(20*#Scale#)R
Y=(0*#Scale#)r
Text="#Name4#"
AntiAlias=1
MouseOverAction=[!SetOption #CURRENTSECTION# FontColor "#Color2#"][!Update]
MouseLeaveAction=[!SetOption #CURRENTSECTION# FontColor "#Color1#"][!Update]
LeftMouseUpAction=#LocationPath4#
[MeterLink5]
Meter=String
StringAlign=Left
StringCase=Upper
FontFace=Metropolis
FontColor=#Color1#
FontSize=(12*#Scale#)
X=(20*#Scale#)R
Y=(0*#Scale#)r
Text="#Name5#"
AntiAlias=1
MouseOverAction=[!SetOption #CURRENTSECTION# FontColor "#Color2#"][!Update]
MouseLeaveAction=[!SetOption #CURRENTSECTION# FontColor "#Color1#"][!Update]
LeftMouseUpAction=#LocationPath5#
[MeterLink6]
Meter=String
StringAlign=Left
StringCase=Upper
FontFace=Metropolis
FontColor=#Color1#
FontSize=(12*#Scale#)
X=(20*#Scale#)R
Y=(0*#Scale#)r
Text="#Name6#"
AntiAlias=1
MouseOverAction=[!SetOption #CURRENTSECTION# FontColor "#Color2#"][!Update]
MouseLeaveAction=[!SetOption #CURRENTSECTION# FontColor "#Color1#"][!Update]
LeftMouseUpAction=#LocationPath6#
[MeterLink7]
Meter=String
StringAlign=Left
StringCase=Upper
FontFace=Metropolis
FontColor=#Color1#
FontSize=(12*#Scale#)
X=(20*#Scale#)R
Y=(0*#Scale#)r
Text="#Name7#"
AntiAlias=1
MouseOverAction=[!SetOption #CURRENTSECTION# FontColor "#Color2#"][!Update]
MouseLeaveAction=[!SetOption #CURRENTSECTION# FontColor "#Color1#"][!Update]
LeftMouseUpAction=#LocationPath7#
[MeterLink8]
Meter=String
StringAlign=Left
StringCase=Upper
FontFace=Metropolis
FontColor=#Color1#
FontSize=(12*#Scale#)
X=(20*#Scale#)R
Y=(0*#Scale#)r
Text="#Name8#"
AntiAlias=1
MouseOverAction=[!SetOption #CURRENTSECTION# FontColor "#Color2#"][!Update]
MouseLeaveAction=[!SetOption #CURRENTSECTION# FontColor "#Color1#"][!Update]
LeftMouseUpAction=#LocationPath8#
[MeterLink9]
Meter=String
StringAlign=Left
StringCase=Upper
FontFace=Metropolis
FontColor=#Color1#
FontSize=(12*#Scale#)
X=(20*#Scale#)R
Y=(0*#Scale#)r
Text="#Name9#"
AntiAlias=1
MouseOverAction=[!SetOption #CURRENTSECTION# FontColor "#Color2#"][!Update]
MouseLeaveAction=[!SetOption #CURRENTSECTION# FontColor "#Color1#"][!Update]
LeftMouseUpAction=#LocationPath9#
[MeterLink10]
Meter=String
StringAlign=Left
StringCase=Upper
FontFace=Metropolis
FontColor=#Color1#
FontSize=(12*#Scale#)
X=(20*#Scale#)R
Y=(0*#Scale#)r
Text="#Name10#"
AntiAlias=1
MouseOverAction=[!SetOption #CURRENTSECTION# FontColor "#Color2#"][!Update]
MouseLeaveAction=[!SetOption #CURRENTSECTION# FontColor "#Color1#"][!Update]
LeftMouseUpAction=#LocationPath10#
[MeterLink11]
Meter=String
StringAlign=Left
StringCase=Upper
FontFace=Metropolis
FontColor=#Color1#
FontSize=(12*#Scale#)
X=(20*#Scale#)R
Y=(0*#Scale#)r
Text="#Name11#"
AntiAlias=1
MouseOverAction=[!HideMeterGroup Menu][!SetOption #CURRENTSECTION# FontColor "#Color2#"][!Update]
MouseLeaveAction=[!SetOption #CURRENTSECTION# FontColor "#Color1#"][!Update]
LeftMouseUpAction=#LocationPath11#
[MeterLink12]
Meter=String
StringAlign=Left
StringCase=Upper
FontFace=Metropolis
FontColor=#Color1#
FontSize=(12*#Scale#)
X=(20*#Scale#)R
Y=(0*#Scale#)r
Text="#Name12#"
AntiAlias=1
MouseOverAction=[!HideMeterGroup Menu][!ShowMeterGroup Frontends][!SetOption #CURRENTSECTION# FontColor "#Color2#"][!Update]
MouseLeaveAction=[!SetOption #CURRENTSECTION# FontColor "#Color1#"][!Update]
; LeftMouseUpAction=!Execute [!ShowMeter MeterOne][!ShowMeter MeterTwo][!ShowMeter MeterThree][!ShowMeter MeterFour][!ShowMeter MeterFive][!ShowMeter MeterSix][!ShowMeter MeterSeven][!Redraw]
;_______________________________________________________________________
[MeterOne]
Group=Menu | Frontends
Meter=String
Text=Call Centre Ops
FontFace=Metropolis
FontColor=#Color2#
FontSize=(12*#Scale#)
AntiAlias=1
X=(0*#Scale#)r
Y=(25*#Scale#)r
LeftMouseUpAction=!Execute ["C:\Users\chrisb\OneDrive - Cairns Taxis Limited\Documents\Access Dock\Call Centre Ops.accde - Shortcut.lnk"][!HideMeter MeterOne][!HideMeter MeterTwo][!HideMeter MeterThree][!HideMeter MeterFour][!HideMeter MeterFive][!HideMeter MeterSix][!HideMeter MeterSeven][!Update]
Hidden=1
[MeterTwo]
Group=Menu | Frontends
Meter=String
Text=Drivers and Complaints
FontFace=Metropolis
FontColor=#Color2#
FontSize=(12*#Scale#)
AntiAlias=1
X=(0*#Scale#)r
Y=(30*#Scale#)r
LeftMouseUpAction=!Execute ["C:\Users\chrisb\OneDrive - Cairns Taxis Limited\Documents\Access Dock\Drivers & Complaints.accde - Shortcut"][!HideMeter MeterOne][!HideMeter MeterTwo][!HideMeter MeterThree][!HideMeter MeterFour][!HideMeter MeterFive][!HideMeter MeterSix][!HideMeter MeterSeven][!Update]
Hidden=1
[MeterThree]
Group=Menu | Frontends
Meter=String
Text=Fleet Details
FontFace=Metropolis
FontColor=#Color2#
FontSize=(12*#Scale#)
AntiAlias=1
X=(0*#Scale#)r
Y=(30*#Scale#)r
LeftMouseUpAction=!Execute ["C:\Users\chrisb\OneDrive - Cairns Taxis Limited\Documents\Access Dock\Fleet Details.accde - Shortcut"][!HideMeter MeterOne][!HideMeter MeterTwo][!HideMeter MeterThree][!HideMeter MeterFour][!HideMeter MeterFive][!HideMeter MeterSix][!HideMeter MeterSeven][!Update]
Hidden=1
[MeterFour]
Group=Menu | Frontends
Meter=String
Text=CCTV - Camera Download
FontFace=Metropolis
FontColor=#Color2#
FontSize=(12*#Scale#)
AntiAlias=1
X=(0*#Scale#)r
Y=(30*#Scale#)r
LeftMouseUpAction=!Execute ["C:\Users\chrisb\OneDrive - Cairns Taxis Limited\Documents\Access Dock\CCTV.accde - Shortcut"][!HideMeter MeterOne][!HideMeter MeterTwo][!HideMeter MeterThree][!HideMeter MeterFour][!HideMeter MeterFive][!HideMeter MeterSix][!HideMeter MeterSeven][!Update]
Hidden=1
[MeterFive]
Group=Menu | Frontends
Meter=String
Text=Fleet Inspections
FontFace=Metropolis
FontColor=#Color2#
FontSize=(12*#Scale#)
AntiAlias=1
X=(0*#Scale#)r
Y=(30*#Scale#)r
LeftMouseUpAction=!Execute ["C:\Users\chrisb\OneDrive - Cairns Taxis Limited\Documents\Access Dock\Car Inspections.accde - Shortcut"][!HideMeter MeterOne][!HideMeter MeterTwo][!HideMeter MeterThree][!HideMeter MeterFour][!HideMeter MeterFive][!HideMeter MeterSix][!HideMeter MeterSeven][!Update]
Hidden=1
[MeterSix]
Group=Menu | Frontends
Meter=String
Text=Sub Hire Taxi
FontFace=Metropolis
FontColor=#Color2#
FontSize=(12*#Scale#)
AntiAlias=1
X=(0*#Scale#)r
Y=(30*#Scale#)r
LeftMouseUpAction=!Execute ["C:\Users\chrisb\OneDrive - Cairns Taxis Limited\Documents\Access Dock\Sub Taxi Hire.accde - Shortcut"][!HideMeter MeterOne][!HideMeter MeterTwo][!HideMeter MeterThree][!HideMeter MeterFour][!HideMeter MeterFive][!HideMeter MeterSix][!HideMeter MeterSeven][!Update]
Hidden=1
[MeterSeven]
Group=Menu | Frontends
Meter=String
Text=Workplace Health and Safety
FontFace=Metropolis
FontColor=#Color2#
FontSize=(12*#Scale#)
AntiAlias=1
X=(0*#Scale#)r
Y=(30*#Scale#)r
LeftMouseUpAction=!Execute ["C:\Users\chrisb\OneDrive - Cairns Taxis Limited\Documents\Access Dock\Workplace Health and Safety.accde - Shortcut"][!HideMeter MeterOne][!HideMeter MeterTwo][!HideMeter MeterThree][!HideMeter MeterFour][!HideMeter MeterFive][!HideMeter MeterSix][!HideMeter MeterSeven][!Update]
Hidden=1
{Click to image to show actiion.}
You do not have the required permissions to view the files attached to this post.
:: My DA Gallery :: Rainmeter DA Gallery :: Rainmeter Workshops :: Rainmeter Documentation :: BBCode Guide ::
-
- Rainmeter Sage
- Posts: 16651
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: help me creating a drop-down list
Not sure where is the drop-down list. The posted code has nothing to do with a drop-down list (or menu), at least as far as I can tell.Kaijusirch wrote: ↑May 23rd, 2023, 4:48 am I would like to incorporate this dropdown menu in to an existing ini.
The !Execute bang has been deprecated long time ago and you shouldn't have to use it. Simply remove them from your code.eclectic-tech wrote: ↑May 23rd, 2023, 12:18 pm Here is a sample of your code with one way to use these changes.
ecelctic-tech should know this, he probably just didn't notice the presence of this bang.
-
- Rainmeter Sage
- Posts: 5540
- Joined: April 12th, 2012, 9:40 pm
- Location: Cedar Point, Ohio, USA
Re: help me creating a drop-down list
Yeah, i did noticed it, but it was in a hurry this morning and didn't mention it... thanks for catching that.balala wrote: ↑May 23rd, 2023, 5:47 pm Not sure where is the drop-down list. The posted code has nothing to do with a drop-down list (or menu), at least as far as I can tell.
The !Execute bang has been deprecated long time ago and you shouldn't have to use it. Simply remove them from your code.
ecelctic-tech should know this, he probably just didn't notice the presence of this bang.
As for the "drop-down" menu, it is actually just several meters, positioned below one of the main menu items, that are grouped and hidden or shown.
:: My DA Gallery :: Rainmeter DA Gallery :: Rainmeter Workshops :: Rainmeter Documentation :: BBCode Guide ::
-
- Rainmeter Sage
- Posts: 16651
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: help me creating a drop-down list
In your code definitely are, but even there, only the Frontends element is opening the drop-down menu. But at least that one does this, and as such, is perfectly enough as an example on how can this be done. But when I posted my "Not sure where is the drop-down list" reply, I was referring more to @Kaijusirch, who said he figured out (at least partially) how to add the menu to his code. But in fact that menu hasn't been added. This is why I asked / said...eclectic-tech wrote: ↑May 24th, 2023, 1:50 am As for the "drop-down" menu, it is actually just several meters, positioned below one of the main menu items, that are grouped and hidden or shown.