It is currently May 2nd, 2024, 11:36 am

How do I make a variable change on click?

Get help with creating, editing & fixing problems with skins
junnyuu
Posts: 4
Joined: May 20th, 2012, 9:31 am

How do I make a variable change on click?

Post by junnyuu »

Code: Select all

[Rainmeter]
Author:Junyu
Update=1000

[Variables]
Font=Trebuchet MS
Color=255,255,255
Name=Junyu
Dot=.
Song=30
z=0


;----------MEASURES----------

[mProcessPID]
Measure=Plugin
Plugin=Plugins\Perfmon.dll
PerfMonObject="Process"
PerfMonCounter="ID Process"
PerfMonInstance=itunes
PerfMonDifference=0
UpdateDivider=3


[msTime]
Measure=Time
Format=%H #Name# #Dot#
Substitute="00":"Good night","01":"Good night","02":"Good night","03":"Good night","04":"Good night","05":"Good morning","06":"Good morning","07":"Good morning","08":"Good morning","09":"Good morning","10":"Good morning","11":"Good morning","12":"Good afternoon","13":"Good afternoon","14":"Good afternoon","15":"Good afternoon","16":"Good afternoon","17":"Good afternoon","18":"Good evening","19":"Good evening","20":"Good night","21":"Good night","22":"Good night","23":"Good night"



;----------METERS------------

[MeterTime]
MeasureName=msTime
Meter=String 

FontColor=#Color#,255
FontSize=20
FontFace=#Font#

AntiAlias=1


[msTunes]
Measure=Plugin
Plugin=Plugins\iTunesPlugin.dll
Command=GetCurrentTrackName
Command=GetCurrentTrackArtist

[msArtist]
Measure=Plugin
Plugin=Plugins\iTunesPlugin.dll
Command=GetCurrentTrackArtist


[MeterTunes]
MeasureName=msTunes
Meter=String 
FontColor=#Color#,255
FontSize=15
FontFace=#Font#
AntiAlias=1
y=#song#
z=#z#



[MeterArtist]
MeasureName=msArtist
Meter=String 
FontColor=#Color#,255
FontSize=15
FontFace=#Font#
AntiAlias=1
y=50
z=100

[MeterHash]
Meter=String
Text="#nowplaying"
y=70
FontColor=#Color#,255
FontSize=15
FontFace=#Font#
AntiAlias=1




Here's my current theme, it's messy I know. Do point out if there are ways to optimize it, but that's not my main problem here.
I want the theme to show the Good Morning blablabla, and when I click it it'll change to my now playing for about 5 seconds ( or until next click, whichever is easier ) with a little fade in fade out transition? I mean that's not needed but it'll be pretty sleek.
I have NO IDEA how I should go about on doing this. Any help is appreciated!
junnyuu
Posts: 4
Joined: May 20th, 2012, 9:31 am

Re: How do I make a variable change on click?

Post by junnyuu »

Alright, fixed it myself. In case anyone wonders how, I added a variable for my greeting and another for my nowplaying. Then I just used "LeftMouseDownAction" to hide my greeting and "LeftMouseUpAction" to show my nowplaying, and vice versa. it works now.

here's the result http://illuminarias.deviantart.com/#/d52swlp