It is currently April 23rd, 2024, 8:06 am

Displaying picture on mouseclick/mouseover

Get help with creating, editing & fixing problems with skins
mochibear
Posts: 45
Joined: June 3rd, 2014, 11:16 pm

Displaying picture on mouseclick/mouseover

Post by mochibear »

Hi all,

I am a new user/Samurize convert. I am truly, really blown away from Rainmeter. Wow..! I am going gaga over all of the things I can do.

Anyways, I am trying to convert a few things I did with Samurize. Here's my first project:

Code: Select all

[MeterBackground]
Meter=Image
ImageName=D:\Dropbox\Work\Schedule\IntensiveCare_Current.jpg
W=850
H=480

Simple image display on my desktop of my (current) schedule. What I want to do is when I LEFT click my mouse and hold key down, I want to display the future schedule (D:\Dropbox\Work\Schedule\IntensiveCare_Future.jpg)

Can someone help modify the code to accomplish this? I am subscribing to this thread and will reply promptly when replies come in :D


EDIT: Update1 I think the command I need to use is LeftMouseDownAction, but
I am not sure how to link this to displaying the other aforementioned "future" schedule.
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Displaying picture on mouseclick/mouseover

Post by jsmorley »

Assuming I understand you correctly, you probably want something like:

Code: Select all

[MeterBackground]
Meter=Image
ImagePath=D:\Dropbox\Work\Schedule\
ImageName=IntensiveCare_Current.jpg
W=850
H=480
LeftMouseDownAction=[!SetOption MeterBackground ImageName "IntensiveCare_Future.jpg"][!UpdateMeter *][!Redraw]
LeftMouseUpAction=[!SetOption MeterBackground ImageName "IntensiveCare_Current.jpg"][!UpdateMeter *][!Redraw]
mochibear
Posts: 45
Joined: June 3rd, 2014, 11:16 pm

Re: Displaying picture on mouseclick/mouseover

Post by mochibear »

Absolutely perfect js! This saves me sooooo much room on my desktop :D