It is currently June 26th, 2019, 4:52 pm

Displaying picture on mouseclick/mouseover

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

Displaying picture on mouseclick/mouseover

mochibear » June 6th, 2014, 12:05 am

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: 19272
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Displaying picture on mouseclick/mouseover

jsmorley » June 6th, 2014, 1:05 am

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

mochibear » June 10th, 2014, 3:46 am

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