It is currently September 29th, 2024, 7:20 am

help for modified slideshow

General topics related to Rainmeter.
User avatar
arsenik59fr
Posts: 13
Joined: September 30th, 2015, 3:04 pm
Location: france

help for modified slideshow

Post by arsenik59fr »

hello, I need help.

I modified a slideshow with a preview and next button. it works with the quote plugin (random). if I click on the image it displays me big. I would servire me for my tv show or games but I do not know how to affect the way each image file to each TV show or games?
can be with formulas but I do not know how to use! Can you help me ?

sorry for my English :)

sidebar.ini

Code: Select all

[Rainmeter]
Update=5000

[Metadata]
Name=
Config=
Description=
Instructions=
Version=
Tags=
License=
Variant=
Preview=

;End of added Metadata

[Variables]
border.color=0, 0, 0, 125
@include=#@#Variables.inc

[TextLEFTStyle]
StringEffect=Shadow
StringStyle=NORMAL
StringAlign=LEFT
FontColor=255, 255, 255,100 
FontFace=Calibri
FontSize=6
Antialias=1
AutoScale=1

[TextLEFTStyle1]
StringEffect=Shadow
StringStyle=NORMAL
StringAlign=LEFT
FontColor=255, 255, 255,255 
FontFace=Calibri
FontSize=6
Antialias=1
AutoScale=1

[TextCENTERStyle]
StringEffect=Shadow
StringStyle=NORMAL
StringAlign=CENTER
FontColor=255, 255, 255,100 
FontFace=Calibri
FontSize=6
Antialias=1
AutoScale=1

[TextCENTERStyle1]
StringEffect=Shadow
StringStyle=NORMAL
StringAlign=CENTER
FontColor=255, 255, 255,255 
FontFace=Calibri
FontSize=6
Antialias=1
AutoScale=1

[TextRIGHTStyle]
StringEffect=Shadow
StringStyle=NORMAL
StringAlign=RIGHT
FontColor=255, 255, 255,100
FontFace=Calibri
FontSize=6
Antialias=1
AutoScale=1

[TextRIGHTStyle1]
StringEffect=Shadow
StringStyle=NORMAL
StringAlign=RIGHT
FontColor=255, 255, 255,255 
FontFace=Calibri
FontSize=6
Antialias=1
AutoScale=1

[Background]
Meter=IMAGE
;SolidColor=0, 0, 0
X=0
Y=0
;H=1440
;W=290
ImageName=#@#Images\PanelG0.png

 ----------------------------------
MEASURES
 ----------------------------------



[Viewer]
Measure=Plugin
Plugin=Plugins\QuotePlugin.dll
PathName=#@#PosterTV\
Subfolders=1
FileFilter=*.jpg;*.jpeg;*.png;*.gif;*.bmp



 ----------------------------------
 METERS
 ----------------------------------

[Image]
MeasureName=Viewer
Meter=IMAGE
X=25
Y=5
W=100
H=100

[PreviousImageOff]
Meter=Image
X=35
Y=105
ImageName=#@#Images\TextPanelOff1.png
MouseOverAction=!Execute [!RainmeterHideMeter PreviousImageOff][!RainmeterShowMeter PreviousImageOn] [!RainmeterHideMeter PreviousTextOff][!RainmeterShowMeter PreviousTextOn] [!RainmeterRedraw]

[PreviousImageOn]
Hidden=1
Meter=Image
X=35
Y=105
ImageName=#@#Images\TextPanelOn1.png
MouseLeaveAction=!Execute [!RainmeterShowMeter PreviousImageOff][!RainmeterHideMeter PreviousImageOn] [!RainmeterShowMeter PreviousTextOff][!RainmeterHideMeter PreviousTextOn]  [!RainmeterRedraw]
LeftMouseDownAction=!Execute [!RainmeterRefresh]

[PreviousTextOff]
Meter=STRING
X=55
Y=107
MeterStyle=TextCENTERStyle
Text="<"

[PreviousTextOn]
Hidden=1
Meter=STRING
X=55
Y=107
MeterStyle=TextCENTERStyle
FontColor=255,255,255
Text="<"
ToolTipText="Previous"

[NextImageOff]
Meter=Image
X=75
Y=105
ImageName=#@#Images\TextPanelOff1.png
MouseOverAction=!Execute [!RainmeterHideMeter NextImageOff][!RainmeterShowMeter NextImageOn] [!RainmeterHideMeter NextTextOff][!RainmeterShowMeter NextTextOn] [!RainmeterRedraw]

[NextImageOn]
Hidden=1
Meter=Image
X=75
Y=105
ImageName=#@#Images\TextPanelOn1.png
MouseLeaveAction=!Execute [!RainmeterShowMeter NextImageOff][!RainmeterHideMeter NextImageOn] [!RainmeterShowMeter NextTextOff][!RainmeterHideMeter NextTextOn]  [!RainmeterRedraw]
LeftMouseDownAction=!Execute [!RainmeterRefresh]

[NextTextOff]
Meter=STRING
X=95
Y=107
MeterStyle=TextCENTERStyle
Text=">"

[NextTextOn]
Hidden=1
Meter=STRING
X=95
Y=107
MeterStyle=TextCENTERStyle
FontColor=255,255,255
Text=">"
ToolTipText="Next"

variables.inc

Code: Select all


[Variables]

LinkTV1=E:\Series TV\Arrow\
NameTV1=Arrow
LinkTV2=E:\Series TV\Falling Skies\
NameTV2=Falling Skies
LinkTV3=E:\Series TV\Le trone de fer\
NameTV3=Game Of Thrones
LinkTV4=E:\Series TV\Marvel's Daredevil\
NameTV4=Marvel's Daredevil
LinkTV5=E:\Series TV\Marvel's Agent Of SHIELD\
NameTV5=Mavel's Agents Of SHIELD
LinkTV6=E:\Series TV\The 100\
NameTV6=The 100
LinkTV7=E:\Series TV\The Flash\
NameTV7=The Flash
LinkTV8=E:\Series TV\The Originals\
NameTV8=The Originals
LinkTV9=E:\Series TV\The Walking Dead\
NameTV9=The Wallking Dead


Image

Image
Last edited by arsenik59fr on April 25th, 2016, 7:03 am, edited 1 time in total.
Image
User avatar
balala
Rainmeter Sage
Posts: 16602
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: help for modified slideshow

Post by balala »

I'm not sure what you'd like to do, because, to be honest, I didn't understand. Could you please come back with details?
In the meantime take into account the followings:
  • The !Execute bang was long ago deprecated and you should avoid using it.
  • I'm not sure why you have two image meters, showing the same image in the same position ([Image] and [Photo]). [Photo] is overlapping [Image], this last one being useless (because its not visible). Maybe the [Image] meter should be removed?
  • Add to the [Photo] (and if you keep it, also to [Image]) a PreserveAspectRatio=1 option, in order not to distort the shown image. Without this all images will be resized to 100x100 pixels, no matter their size.
All this being said, I (we) wait for some details about what your want.
User avatar
arsenik59fr
Posts: 13
Joined: September 30th, 2015, 3:04 pm
Location: france

Re: help for modified slideshow

Post by arsenik59fr »

thx for your reply.
ok so
  • i have removed the [Photo] and keep only [image]
  • not need the PreserveAspectRatio=1 because all image in my folder have the same sizes (100px)
  • i want when i click to the image one (Arrow.png) --> opening the folder of the TV show "Arrow" (the path is :"E:\Series TV\Arrow\") look a the variables code "1link=1name" or "1path=1image"
  • "The !Execute bang was long ago deprecated and you should avoid using it."so what need the bang to use for opening the folder with the LeftMouseUpAction= ?
Image
User avatar
balala
Rainmeter Sage
Posts: 16602
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: help for modified slideshow

Post by balala »

arsenik59fr wrote:
  • i want when i click to the image one (Arrow.png) --> opening the folder of the TV show "Arrow" (the path is :"E:\Series TV\Arrow\") look a the variables code "1link=1name" or "1path=1image"
I'm not sure what Arrow.png means, because nowhere in your code I couldn't find it. But you should add to the appropriate meter (I hope you know which one) the following option: LeftMouseUpAction=["#LinkTV1#"].
arsenik59fr wrote:
  • "The !Execute bang was long ago deprecated and you should avoid using it."so what need the bang to use for opening the folder with the LeftMouseUpAction= ?
Nothing: eg instead of LeftMouseUpAction=!Execute ["[Viewer]"], use simply LeftMouseUpAction=["[Viewer]"].
User avatar
arsenik59fr
Posts: 13
Joined: September 30th, 2015, 3:04 pm
Location: france

Re: help for modified slideshow

Post by arsenik59fr »

thanks again.
the action is correct

Code: Select all

LeftMouseUpAction=["#LinkTV1#"]
but the problem as it is a slidershow the image changes after a few seconds and the links do not change it remains permanently.
exemple:

Image with LeftMouseUpAction=["#LinkTV1#"] and the path is correct (E:\Series TV\Arrow\)
but the image changes after a few seconds
Image with LeftMouseUpAction=["#LinkTV1#"] the link don't change, I should have the link that corresponds to the image: ["#LinkTV3#"] and the path is correct (E:\Series TV\Le trone de fer\)


I need the links also changes at the same time as the image.
I know how to do that! ... Can be with formulas?
Image
User avatar
balala
Rainmeter Sage
Posts: 16602
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: help for modified slideshow

Post by balala »

I'm not sure we're talking about the same thing: initially you had on the [Photo] meter (I assume you've moved this option to the [Image] meter, if you've removed the [Photo]) this option: LeftMouseUpAction=["[Viewer]"] (I removed the !Execute bang). This is opening the shown image. When the image is changing, the link follows the image and always opens the appropriate image. But the option I wrote in my last reply (LeftMouseUpAction=["#LinkTV1#"]) opens always the folder specified by the LinkTV1 variable, and this is not changing, because neither the variable is changing. In your request you said:
arsenik59fr wrote:
  • i want when i click to the image one (Arrow.png) --> opening the folder of the TV show "Arrow" (the path is :"E:\Series TV\Arrow\") look a the variables code "1link=1name" or "1path=1image"
which I think means to open always the same folder.
Now, what you want to open, clicking where?
User avatar
arsenik59fr
Posts: 13
Joined: September 30th, 2015, 3:04 pm
Location: france

Re: help for modified slideshow

Post by arsenik59fr »

Code: Select all

[Image]
MeasureName=Viewer
Meter=IMAGE
X=25
Y=5
W=100
H=100
LeftMouseUpAction=["#LinkTV1#"]
this code is correct for only one image on a slidershow
how can I do to the links "link x" changes at the same time as the picture?
exemple for:
image 3 i need to have LeftMouseUpAction=["#LinkTV3#"]
.....
image 8 i need to have LeftMouseUpAction=["#LinkTV8#"]
Image
User avatar
balala
Rainmeter Sage
Posts: 16602
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: help for modified slideshow

Post by balala »

arsenik59fr wrote:

Code: Select all

[Image]
MeasureName=Viewer
Meter=IMAGE
X=25
Y=5
W=100
H=100
LeftMouseUpAction=["#LinkTV1#"]
this code is correct for only one image on a slidershow
how can I do to the links "link x" changes at the same time as the picture?
exemple for:
image 3 i need to have LeftMouseUpAction=["#LinkTV3#"]
.....
image 8 i need to have LeftMouseUpAction=["#LinkTV8#"]
If I'm not wrong, I think I understood the essence: when you click to the image, instead of opening the image, you'd like to open a folder. The folder depends on the shown image. Am I right?
If so, here is what you have to do: first you'll need a measure which returns the same value as [Viewer], but in this case you'll substitute its value. For this reason you can't use the [Viewer], because if you substitute its value, the [Image] meter won't work. So, add the following measure:

Code: Select all

[MeasureLink]
Measure=String
String=[Viewer]
Substitute="#@#PosterTV\":"","Arrow.png":"#LinkTV1#","Falling Skies.png":"#LinkTV2#","Game Of Thrones.png":"#LinkTV3#","Marvel's Daredevil.png":"#LinkTV4#","Mavel's Agents Of SHIELD.png":"#LinkTV5#","The 100.png":"#LinkTV6#","The Flash.png":"#LinkTV7#","The Originals.png":"#LinkTV8#","The Wallking Dead.png":"#LinkTV9#"
DynamicVariables=1
See that in this measure I used a quite long Substitute option. The first substitution will substitute the path of the PosterTV folder with nothing (because this path is the same for each image), while the next ones will substitute each image name with the appropriate variable.
Now you need to do just one more thing: replace the LeftMouseUpAction option of the [Image] meter with the following: LeftMouseUpAction=["[MeasureLink]"]. This will open the needed folder.
I hope I didn't misunderstand what you'd like. Please let me know if I had right.
User avatar
balala
Rainmeter Sage
Posts: 16602
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: help for modified slideshow

Post by balala »

dvo wrote:yess i think he's thinking that otherwise he didn't had the link to his map's in his script pointing them so you replaced
the image name with the map as link ;) smart but simple :)
We'll see as soon as arsenik59fr will come back with a reply.
User avatar
arsenik59fr
Posts: 13
Joined: September 30th, 2015, 3:04 pm
Location: france

Re: help for modified slideshow

Post by arsenik59fr »

yes that's exactly what I wanted !!! Thank you for having solved my problem. I can continue to develop my skin ;)
Image