creepercardz wrote:Thanks for the help, I was wondering if you could let me know how to add more buttons as at the moment only three come out e.PNG
First, I'd include all meters (buttons) shown up when you click the blue button, into a group of meters. Let's name this group Buttons1. So, add a Group=Buttons1 option to all of the [expandableactive], [expanded1], [expanded2] and [expanded3] meters. Will be much simpler to handle these buttons when they have to be shown or hidden, if they belong to a group.
Now replace the LeftMouseUpAction options of the [expandablepassive] and [expandableactive] meter with the following ones:
Code: Select all
[expandablepassive]
...
LeftMouseUpAction=[!HideMeter "expandablepassive"][!ShowMeterGroup "Buttons1"][!Redraw]
[expandableactive]
...
LeftMouseUpAction=[!ShowMeter "expandablepassive"][!HideMeterGroup "Buttons1"][!Redraw]
(Don't modify or remove the not posted options, replace just these two).
I proposed all these modification, because this way is much simpler to add further buttons. Add as many as you want. Here are two, which have to be added after [expanded3]:
Code: Select all
[expanded4]
Meter=Image
x=0
y=0R
ImageName=6.png
AntiAlias=1
Hidden=1
LeftMouseUpAction=
Group=Buttons1
[expanded5]
Meter=Image
x=0R
y=r
ImageName=7.png
AntiAlias=1
Hidden=1
LeftMouseUpAction=
Group=Buttons1
Take into account the followings:
- For these two meters I used two images named 6.png and 7.png and these have to be created into the skins folder.
- Have to add the appropriate LeftMouseUpAction options to can open/launch the desired app/file/folder (in the example below the first of these two buttons opens the C:\Program Files (x86)\Adobe Photoshop CS6 folder, while the other launches notepad.exe).
- Note that these meters are positioned relatively. I also positioned so, the existing meters as well (see the whole code below).
creepercardz wrote:Also what do I change this code to f.PNG to direct it to a folder or program, do I replace the numbers with the file location? e.g. C:\Program Files (x86)\Adobe Photoshop CS6
Exactly. This LeftMouseUpAction will open the
C:\Program Files (x86)\Adobe Photoshop CS6 folder.
The modified code:
Code: Select all
[Rainmeter]
Update=-1
BackgroundMode=1
[Metadata]
Name=Expandable Icons
Author=Ceigee
Version=1.0
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
[expandablepassive]
Meter=Image
x=0
y=0
ImageName=1.png
AntiAlias=1
DynamicVariables=1
LeftMouseUpAction=[!HideMeter "expandablepassive"][!ShowMeterGroup "Buttons1"][!Redraw]
[expandableactive]
meter=Image
x=r
y=r
ImageName=5.png
AntiAlias=1
DynamicVariables=1
Hidden=1
LeftMouseUpAction=[!ShowMeter "expandablepassive"][!HideMeterGroup "Buttons1"][!Redraw]
Group=Buttons1
[expanded1]
Meter=Image
x=0R
y=0
ImageName=2.png
AntiAlias=1
Hidden=1
LeftMouseUpAction=[::{20D04FE0-3AEA-1069-A2D8-08002B30309D}]
Group=Buttons1
[expanded2]
Meter=Image
x=0
y=0R
ImageName=3.png
AntiAlias=1
Hidden=1
LeftMouseUpAction=[::{450D8FBA-AD25-11D0-98A8-0800361B1103}]
Group=Buttons1
[expanded3]
Meter=Image
x=0R
y=r
ImageName=4.png
AntiAlias=1
Hidden=1
LeftMouseUpAction=[::{645FF040-5081-101B-9F08-00AA002F954E}]
Group=Buttons1
[expanded4]
Meter=Image
x=0
y=0R
ImageName=4.png
AntiAlias=1
Hidden=1
LeftMouseUpAction=["C:\Program Files (x86)\Adobe Photoshop CS6"]
Group=Buttons1
[expanded5]
Meter=Image
x=0R
y=r
ImageName=3.png
AntiAlias=1
Hidden=1
LeftMouseUpAction=["notepad.exe"]
Group=Buttons1