It is currently May 20th, 2024, 7:16 am

using a meter from skinA from within skinB help.

Get help with creating, editing & fixing problems with skins
psycomunkee
Posts: 2
Joined: November 27th, 2012, 4:44 pm

using a meter from skinA from within skinB help.

Post by psycomunkee »

What I'm trying to achieve is a multi control skin. Has a music player skin, and some buttons for refreshing a picture frame and bringing up the picture viewer for the picture frame with some further functions to be forthcoming. (Soita skin by Poiru and Picture Frame by Alex Becherer/Michael Mohlman)

In the Picture frame I've got the refresh and fullscreen meters working right.

Code: Select all

[FULLSCREEN VIEW]
Meter=IMAGE
X=10
Y=650
ImageName=fullview.png
LeftMouseDownAction=!Execute [explorer.exe "[RandomImage]"]
ToolTipText="Fullscreen View"
In the multi control skin, I've got the refresh working right, but the fullscreen portion doesn't access the fullscreen meter from the Picture Frame skin - and so the meter brings up the my documents window not the random image like the Picture Frame meter.

Code: Select all

[FULLSCREEN VIEW2]
Meter=IMAGE
X=30r
Y=1r
ImageName=fullview.png
;LeftMouseDownAction=!Execute "MyPictureFrame" ["FULLSCREEN VIEW"]
LeftMouseDownAction=!Execute [!MyPictureFrame] ["explorer.exe" "[RandomImage]"]
;LeftMouseDownAction=!CommandMeasure "MyPictureFrame" [explorer.exe "[RandomImage]"] (doesn't work at all)
ToolTipText="Fullscreen View"
(I've got semicolons set for commenting out portions that don't work)
MyPictureFrame is the name of the skin that has my slideshow running. I know !execute is no longer used but I haven't gotten the way to open the picture without that.

Any suggestions/help/recommendations?
Eastwood
Posts: 35
Joined: November 1st, 2012, 10:50 pm

Re: using a meter from skinA from within skinB help.

Post by Eastwood »

what you could try is use the !WriteKeyValue bang to put your image path created in the [randomimage] measure - what ever kind that measure is - into a variable.
Share the variable with @includevariables=#@#myvariables.inc
Et voila, you can implement the following code in your multi control skin.

Code: Select all

LeftMouseDownAction=["explorer.exe" "(#thenameofthepathvariable#)" ]
This should work, as I have tried it.
If you have rainmeter 2.4 or 2.5 installed, the !execute bang is indeed excessive.

Will this work for you as well ?
psycomunkee
Posts: 2
Joined: November 27th, 2012, 4:44 pm

Re: using a meter from skinA from within skinB help.

Post by psycomunkee »

I will try that when i get up in a few hours. I'll need to tinker with the #include set up as i've not touched that yet.