It is currently March 28th, 2024, 3:45 pm

Controlling multiple icons from the same .ini file

Get help with creating, editing & fixing problems with skins
Post Reply
QM_42
Posts: 2
Joined: January 7th, 2018, 12:46 am

Controlling multiple icons from the same .ini file

Post by QM_42 »

Hi I'm currently making icons using separate .ini files with the following text:

[Rainmeter]

Update=1000

LeftMouseUpAction="program location"

[Background]

Meter=Image

ImageName=image name

W=

H=

PreserveAspectRatio=1



This works for just one icon but is there a way to do this for multiple icons in one .ini file, and how would I do that?

Thank you in advance for your help
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Controlling multiple icons from the same .ini file

Post by jsmorley »

Don't do it in separate skins...

Code: Select all

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

[MeterOne]
Meter=Image
W=100
PreserveAspectRatio=1
ImageName=#@#Images\Image1.png
LeftMouseUpAction=["C:\Program Files\Program1.exe"]

[MeterTwo]
Meter=Image
X=10R
Y=0r
W=100
PreserveAspectRatio=1
ImageName=#@#Images\Image2.png
LeftMouseUpAction=["C:\Program Files\Program2.exe"]
BTW, on X and or Y options the "R" means relative to the end of the previous meter and "r" means relative to the start of the previous meter.

https://docs.rainmeter.net/manual/meters/image/#PreserveAspectRatio
https://docs.rainmeter.net/manual/meters/general-options/#XY
QM_42
Posts: 2
Joined: January 7th, 2018, 12:46 am

Re: Controlling multiple icons from the same .ini file

Post by QM_42 »

Thank you very much
Post Reply