It is currently April 20th, 2024, 2:28 pm
Some Help
-
- Posts: 2
- Joined: January 24th, 2017, 11:09 pm
Some Help
I was wondering if i could get some help with a skin. What I'm trying to achieve is an icon that, when clicked, expands to show several more icons, and each of these icons is a shortcut to a program or file. I want to arrange several of these on my desktop in a circle, and have it so that only one expands at a time. I know how to make something into a shortcut, and I know how to make something have an animated image, but that's about the extent. I'm not very good at picking up programming languages, so I don't really know where to begin. I'd just like a few pointers to get me going in the right direction or perhaps a basic code that I can then modify for each group.
-
- Posts: 860
- Joined: August 22nd, 2016, 11:32 pm
- Location: Surrey, B.C., Canada
Re: Some Help
I just did this, which is a clock that will change with a mouse click, you could adjust the code to put in what ever.
Code: Select all
[Rainmeter]
Update=1000
[Metadata]
Author=Graham Wedepohl
Version=1.1.0
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
Information=Small/Large Clock
[Variables]
ShowClock=[!HideMeter MeterButtonSmall][!ShowMeter MeterButtonLarge][!ShowMeter MeterTime][!ShowMeter MeterDate][!ShowMeter MeterDay][!HideMeter MeterVTime]
HideClock=[!ShowMeter MeterButtonSmall][!HideMeter MeterButtonLarge][!HideMeter MeterTime][!HideMeter MeterDate][!HideMeter MeterDay][!ShowMeter MeterVTime]
[MeasureVTime]
Measure=Time
Format=%H %M %S
[MeasureTime]
Measure=Time
Format=%H:%M:%S
[MeasureDate]
Measure=Time
Format=%d %B %Y
[MeasureDay]
Measure=Time
Format=%A
[MeterButtonSmall]
Meter=Shape
X=160
Y=1
Shape=Rectangle 0,0,40,80,10,10 | StrokeWidth 2 | Fill Color 127,127,127,255 | Stroke Color 200,200,200,255
LeftMouseUpAction=#ShowClock#
Hidden=1
ToolTipText=Left-click to Open
[MeterButtonLarge]
Meter=Shape
X=1
Y=1
Shape=Rectangle 0,0,200,80,10,10 | StrokeWidth 2 | Fill Color 127,127,127,255 | Stroke Color 200,200,200,255
LeftMouseUpAction=#HideClock#
ToolTipText=Left-click to Hide
[MeterVTime]
MeasureName=MeasureVTime
Meter=STRING
X=180
Y=16
W=30
H=60
FontColor=255,255,255,255
FontSize=12
StringAlign=CENTER
StringEffect=Shadow
FontEffectColor=0,0,0,255
AntiAlias=1
ClipString=1
Hidden=1
[MeterTime]
MeasureName=MeasureTime
Meter=STRING
X=100
Y=3
FontColor=255,255,255,255
FontSize=25
StringAlign=CENTER
StringEffect=Shadow
FontEffectColor=0,0,0,255
AntiAlias=1
[MeterDay]
MeasureName=MeasureDay
Meter=STRING
X=0r
Y=34r
FontColor=255,255,255,255
FontSize=15
StringAlign=CENTER
StringEffect=Shadow
FontEffectColor=0,0,0,255
AntiAlias=1
[MeterDate]
MeasureName=MeasureDate
Meter=STRING
X=0r
Y=20r
FontColor=255,255,255,255
FontSize=15
StringAlign=CENTER
StringEffect=Shadow
FontEffectColor=0,0,0,255
AntiAlias=1
The only source of knowledge is experience. Albert Einstein
Deviant Art Page
Deviant Art Page
-
- Posts: 2
- Joined: January 24th, 2017, 11:09 pm
Re: Some Help
I'll play around with that and see what I get. Thanks!
-
- Posts: 860
- Joined: August 22nd, 2016, 11:32 pm
- Location: Surrey, B.C., Canada
Re: Some Help
NP, just passing along what jsmorley, balala, fonpalo and eclectic-tech have helped me with.
The only source of knowledge is experience. Albert Einstein
Deviant Art Page
Deviant Art Page
-
- Rainmeter Sage
- Posts: 16148
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Some Help
I'm not sure I understood what and how (or when) would you like to expand, maybe some details would be good, but I think the following code will solve the question of how to arrange some icons (up to 20) in a circle. It is simple enough and uses the basic trigonometric (Sin and Cos) functions, to place each icon in the proper place.EthanReed17 wrote:I want to arrange several of these on my desktop in a circle, and have it so that only one expands at a time.
The meaning of the variables:
- NumOfEl will be the number of icons, up to 20. A larger value than 20, will make to be shown all 20 icons, but obviously, not more.
- Radius is the radius of the circle, in pixels. Be careful, this is the radius, not the diameter, which will be equal with twice the radius.
The code:
Code: Select all
[Rainmeter]
Update=1000
[Variables]
NumOfEl=10
Radius=300
[Meter1]
Meter=Image
SolidColor=255,0,0
X=(#Radius#+#Radius#*Sin(1*2*PI/Clamp(#NumOfEl#,1,20)))
Y=(#Radius#+#Radius#*Cos(1*2*PI/Clamp(#NumOfEl#,1,20)))
W=50
H=50
Hidden=(Clamp(#NumOfEl#,1,20)<1)
[Meter2]
Meter=Image
SolidColor=0,255,0
X=(#Radius#+#Radius#*Sin(2*2*PI/Clamp(#NumOfEl#,1,20)))
Y=(#Radius#+#Radius#*Cos(2*2*PI/Clamp(#NumOfEl#,1,20)))
W=50
H=50
Hidden=(Clamp(#NumOfEl#,1,20)<2)
[Meter3]
Meter=Image
SolidColor=0,0,255
X=(#Radius#+#Radius#*Sin(3*2*PI/Clamp(#NumOfEl#,1,20)))
Y=(#Radius#+#Radius#*Cos(3*2*PI/Clamp(#NumOfEl#,1,20)))
W=50
H=50
Hidden=(Clamp(#NumOfEl#,1,20)<3)
[Meter4]
Meter=Image
SolidColor=255,240,0
X=(#Radius#+#Radius#*Sin(4*2*PI/Clamp(#NumOfEl#,1,20)))
Y=(#Radius#+#Radius#*Cos(4*2*PI/Clamp(#NumOfEl#,1,20)))
W=50
H=50
Hidden=(Clamp(#NumOfEl#,1,20)<4)
[Meter5]
Meter=Image
SolidColor=255,0,240
X=(#Radius#+#Radius#*Sin(5*2*PI/Clamp(#NumOfEl#,1,20)))
Y=(#Radius#+#Radius#*Cos(5*2*PI/Clamp(#NumOfEl#,1,20)))
W=50
H=50
Hidden=(Clamp(#NumOfEl#,1,20)<5)
[Meter6]
Meter=Image
SolidColor=0,255,240
X=(#Radius#+#Radius#*Sin(6*2*PI/Clamp(#NumOfEl#,1,20)))
Y=(#Radius#+#Radius#*Cos(6*2*PI/Clamp(#NumOfEl#,1,20)))
W=50
H=50
Hidden=(Clamp(#NumOfEl#,1,20)<6)
[Meter7]
Meter=Image
SolidColor=32,196,246
X=(#Radius#+#Radius#*Sin(7*2*PI/Clamp(#NumOfEl#,1,20)))
Y=(#Radius#+#Radius#*Cos(7*2*PI/Clamp(#NumOfEl#,1,20)))
W=50
H=50
Hidden=(Clamp(#NumOfEl#,1,20)<7)
[Meter8]
Meter=Image
SolidColor=182,65,120
X=(#Radius#+#Radius#*Sin(8*2*PI/Clamp(#NumOfEl#,1,20)))
Y=(#Radius#+#Radius#*Cos(8*2*PI/Clamp(#NumOfEl#,1,20)))
W=50
H=50
Hidden=(Clamp(#NumOfEl#,1,20)<8)
[Meter9]
Meter=Image
SolidColor=89,250,168
X=(#Radius#+#Radius#*Sin(9*2*PI/Clamp(#NumOfEl#,1,20)))
Y=(#Radius#+#Radius#*Cos(9*2*PI/Clamp(#NumOfEl#,1,20)))
W=50
H=50
Hidden=(Clamp(#NumOfEl#,1,20)<9)
[Meter10]
Meter=Image
SolidColor=147,159,32
X=(#Radius#+#Radius#*Sin(10*2*PI/Clamp(#NumOfEl#,1,20)))
Y=(#Radius#+#Radius#*Cos(10*2*PI/Clamp(#NumOfEl#,1,20)))
W=50
H=50
Hidden=(Clamp(#NumOfEl#,1,20)<10)
[Meter11]
Meter=Image
SolidColor=0,241,12
X=(#Radius#+#Radius#*Sin(11*2*PI/Clamp(#NumOfEl#,1,20)))
Y=(#Radius#+#Radius#*Cos(11*2*PI/Clamp(#NumOfEl#,1,20)))
W=50
H=50
Hidden=(Clamp(#NumOfEl#,1,20)<11)
[Meter12]
Meter=Image
SolidColor=201,214,150
X=(#Radius#+#Radius#*Sin(12*2*PI/Clamp(#NumOfEl#,1,20)))
Y=(#Radius#+#Radius#*Cos(12*2*PI/Clamp(#NumOfEl#,1,20)))
W=50
H=50
Hidden=(Clamp(#NumOfEl#,1,20)<12)
[Meter13]
Meter=Image
SolidColor=23,69,14
X=(#Radius#+#Radius#*Sin(13*2*PI/Clamp(#NumOfEl#,1,20)))
Y=(#Radius#+#Radius#*Cos(13*2*PI/Clamp(#NumOfEl#,1,20)))
W=50
H=50
Hidden=(Clamp(#NumOfEl#,1,20)<13)
[Meter14]
Meter=Image
SolidColor=187,235,140
X=(#Radius#+#Radius#*Sin(14*2*PI/Clamp(#NumOfEl#,1,20)))
Y=(#Radius#+#Radius#*Cos(14*2*PI/Clamp(#NumOfEl#,1,20)))
W=50
H=50
Hidden=(Clamp(#NumOfEl#,1,20)<14)
[Meter15]
Meter=Image
SolidColor=100,230,168
X=(#Radius#+#Radius#*Sin(15*2*PI/Clamp(#NumOfEl#,1,20)))
Y=(#Radius#+#Radius#*Cos(15*2*PI/Clamp(#NumOfEl#,1,20)))
W=50
H=50
Hidden=(Clamp(#NumOfEl#,1,20)<15)
[Meter16]
Meter=Image
SolidColor=156,147,36
X=(#Radius#+#Radius#*Sin(16*2*PI/Clamp(#NumOfEl#,1,20)))
Y=(#Radius#+#Radius#*Cos(16*2*PI/Clamp(#NumOfEl#,1,20)))
W=50
H=50
Hidden=(Clamp(#NumOfEl#,1,20)<16)
[Meter17]
Meter=Image
SolidColor=235,166,150
X=(#Radius#+#Radius#*Sin(17*2*PI/Clamp(#NumOfEl#,1,20)))
Y=(#Radius#+#Radius#*Cos(17*2*PI/Clamp(#NumOfEl#,1,20)))
W=50
H=50
Hidden=(Clamp(#NumOfEl#,1,20)<17)
[Meter18]
Meter=Image
SolidColor=192,135,200
X=(#Radius#+#Radius#*Sin(18*2*PI/Clamp(#NumOfEl#,1,20)))
Y=(#Radius#+#Radius#*Cos(18*2*PI/Clamp(#NumOfEl#,1,20)))
W=50
H=50
Hidden=(Clamp(#NumOfEl#,1,20)<18)
[Meter19]
Meter=Image
SolidColor=147,56,165
X=(#Radius#+#Radius#*Sin(19*2*PI/Clamp(#NumOfEl#,1,20)))
Y=(#Radius#+#Radius#*Cos(19*2*PI/Clamp(#NumOfEl#,1,20)))
W=50
H=50
Hidden=(Clamp(#NumOfEl#,1,20)<19)
[Meter20]
Meter=Image
SolidColor=56,202,140
X=(#Radius#+#Radius#*Sin(20*2*PI/Clamp(#NumOfEl#,1,20)))
Y=(#Radius#+#Radius#*Cos(20*2*PI/Clamp(#NumOfEl#,1,20)))
W=50
H=50
Hidden=(Clamp(#NumOfEl#,1,20)<20)