It is currently July 13th, 2024, 8:52 am

Help a newbie.

Get help with installing and using Rainmeter.
Four
Posts: 1
Joined: July 29th, 2023, 6:09 am

Help a newbie.

Post by Four »

Hello everyone, I'm starting to program and I'm very new to all this...

I'm having fun learning a few things, especially a rain gauge. I usually take some ready-made codes and modify them, identifying what each thing does. and so I learn little by little.

I had a doubt:
How do I add a transaction when I click Overlay?

My code is this:.

Code: Select all

[Pluviometer]
Update=1000
Author=Connect-R
BackgroundMode=2
SolidColor=0,0,0,1
DynamicWindowSize=1
AccurateText = 1


[Metadata]
Name=
Author=
Information=
License=
Version=

[Variables]
@Include=#@#variables\Browsers.inc
; variable path
pX=(50*#scale#+20)*#sidePanel#
pY=0


[Panel]
Meter=Image
x=#px#
y=#pY#
W=(((#pX#+((50+#spacing#)*(#pLX#-1)+10)*#scale#)-#pX#)+(50*#scale#)+10)
H=(((#pY#+((30+#spacing#)*(#pLY#-1)+10)*#scale#)-#pY#)+(30*#scale#)+10)
ImageTint=#pImageTint#
ImageName=#@#Images\panel.png
hidden=1

[Name]
Metro=String
X=(50/2*#scale#+10)+(((#pX#+((50+#spacing#)*(#pLX#-1)+10)*#scale#)-#pX#) +(50*#scale#)+10)*#sideOpen#
Y=(60*#scale#+10)
W=(75*#scale#)
H=100
StringAlign=Center
FontColor=255,255,255,255
FontSize=(10*#scale#)
ClipString=1
AntiAlias=1
*Text=


; ---------------------------------------- Open and close folder

[Overlay]
Meter=Image
x=(10+(((#pX#+((50+#spacing#)*(#pLX#-1)+10)*#scale#)-#pX#)+(50*#scale#)+ 10)*#openside#)
y=10
W=(50*#scale#)
H=(50*#scale#)
ImageTint=#pImageTint#
ImageName=#@#images\panel.png
LeftMouseUpAction=[!RainmeterToggleMeter Panel][!RainmeterToggleMeter closeLauncher][!RainmeterToggleMeter openLauncherImage6][!RainmeterToggleMeter openItem1][!RainmeterToggleMeter openItem2][!RainmeterToggleMeter openItem3][!RainmeterToggleMeter openItem4][!RainmeterToggleMeter open Item5][!Rain meterToggleMeter openItem6][! RainmeterToggleMeter openItem7][!Update]
MouseActionCursor=0

[MeterRoundedRetangle]
Meter = Shape
x=10
y=10
W=(50*#scale#)
H=(50*#scale#)
X=10R
Y=2
Shape=Rectangle 0,0,50,50,8 | Extend MyModifiers1
MyModifiers1=Fill color 0,0,0,1FFCC | StrokeWidth 3 | Stroke color 255,255,255


[openLauncherImage6]
Meter=Image
x=((5*#scale#)+10)+(((#pX#+((50+#spacing#)*(#pLX#-1)+10)*#scale#)-#pX#) +(50*#scale#)+10)*#sideOpen#
y=((5*#scale#)+10)
H=(40*#scale#)
SolidColor=0,0,0,1
ImageName=#e6Image#
MouseActionCursor=0


[closeLauncher]
Meter=Image
x=((5*#scale#)+10)+(((#pX#+((50+#spacing#)*(#pLX#-1)+10)*#scale#)-#pX#) +(50*#scale#)+10)*#sideOpen#
y=((5*#scale#)+10)
H=(40*#scale#)
ImageTint=255,255,255,255
ImageName=#@#Images\Browsers.png
MouseActionCursor=0
hidden=1


; ---------------------------------------- Launcher Items

[openItem1]
Meter=Image
x=(#pX#+((50+#spacing#)*(#e1X#-1)+1)*#scale#)
y=(#pY#+((50+#spacing#)*(#e1Y#-1)+1)*#scale#)
H=(50*#scale#)
SolidColor=0,0,0,1
ImageName=#e1Image#
LeftMouseUpAction=#e1Action#
MouseActionCursor=0
hidden=1

[openItem2]
Meter=Image
x=(#pX#+((50+#spacing#)*(#e2X#-1)+19)*#scale#)
y=(#pY#+((50+#spacing#)*(#e2Y#-1)+1)*#scale#)
H=(50*#scale#)
SolidColor=0,0,0,1
ImageName=#e2Image#
LeftMouseUpAction=#e2Action#
MouseActionCursor=0
hidden=1

[openItem3]
Meter=Image
x=(#pX#+((50+#spacing#)*(#e3X#-1)+1)*#scale#)
y=(#pY#+((50+#spacing#)*(#e3Y#-1)+19)*#scale#)
H=(50*#scale#)
SolidColor=0,0,0,1
ImageName=#e3Image#
LeftMouseUpAction=#e3Action#
MouseActionCursor=0
hidden=1

[openItem4]
Meter=Image
x=(#pX#+((50+#spacing#)*(#e4X#-1)+19)*#scale#)
y=(#pY#+((50+#spacing#)*(#e4Y#-1)+19)*#scale#)
H=(50*#scale#)
SolidColor=0,0,0,1
ImageName=#e4Image#
LeftMouseUpAction=#e4Action#
MouseActionCursor=0
hidden=1

[openItem5]
Meter=Image
x=(#pX#+((50+#spacing#)*(#e5X#-1)+40)*#scale#)
y=(#pY#+((50+#spacing#)*(#e5Y#-1)-80)*#scale#)
H=(50*#scale#)
SolidColor=0,0,0,1
ImageName=#e5Image#
LeftMouseUpAction=#e5Action#
MouseActionCursor=0
hidden=1
Thank you all in advance, and sorry for anything. I'm really a beginner at everything!
Last edited by balala on July 29th, 2023, 6:29 am, edited 1 time in total.
Reason: Please use <code> tags whenever are posting codes. It's the </> button.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5451
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Help a newbie.

Post by eclectic-tech »

We need more info to help... too many missing variables to create a working example.

Please create a Rainmeter package of your skin and post it to this thread so a semi working skin can be tested.

A detailed explanation of what you want to happen would also help us help you.
User avatar
balala
Rainmeter Sage
Posts: 16389
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Help a newbie.

Post by balala »

Four wrote: July 29th, 2023, 6:17 am How do I add a transaction when I click Overlay?
Besides what eclectic-tech said, my question is what you mean by "transaction"? Because me at least have no idea...
User avatar
Yincognito
Rainmeter Sage
Posts: 7712
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: Help a newbie.

Post by Yincognito »

Four wrote: July 29th, 2023, 6:17 amI'm having fun learning a few things, especially a rain gauge. I usually take some ready-made codes and modify them, identifying what each thing does. and so I learn little by little.

I had a doubt:
How do I add a transaction when I click Overlay?
I'll go against the trend here (like always) and say that many times learning by creating a skin from scratch (i.e. from nothing) is often a better way of learning than modifying older, obsolete syntax and potentially more complex skin code. You have less work to do, less potential for mistakes, and understanding is easier, since the code you start with is simpler.

Anyway, if by "transaction" you meant "transition", like from hidden to shown but with a gradual fade, this is done using a plugin called ActionTimer, that can change variables and options in a way suited for animation. If you meant something else, you should clarify it, like both eclectic-tech and balala already mentioned.
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth