balala is always right
It is currently April 26th, 2024, 8:06 am
Open first File in Folder?
-
- Posts: 518
- Joined: May 4th, 2020, 3:01 pm
- Location: Ankara, TURKEY
Re: Open first File in Folder?
I don't know where i going from here, but i promise it won't be boring...
-
- Posts: 50
- Joined: December 5th, 2022, 3:45 am
- Location: Madrid, Spain
Re: Open first File in Folder?
Thanks to Tass_co, the MeaMedias system has worked perfectly for me, except that when I press play or pause again, it launches wmp again.
I have made some slight modification in order to avoid that instead of pausing or playing, the player opens again:
But if I close wmp, and then I want to press play again, it no longer activates, I must refresh the skin to do it correctly.
I tried these other examples, but they would not open the player directly
I have made some slight modification in order to avoid that instead of pausing or playing, the player opens again:
Code: Select all
[Variables]
PlayPlaylist="#@#Musica\Playlist\Noël.wpl"
......
......
......
......
......
[PauseOrPlay]
Meter=IMAGE
ImageName=#@#Imagenes\[mStateButton]
MeterStyle=sController
MouseOverAction=[!SetOption "#CURRENTSECTION#" ImageAlpha #AlphaBright#][!UpdateMeter #CURRENTSECTION#][!Redraw]
LeftMouseUpAction=[!EnableMeasure MeaMedia][!UpdateMeasure MeaMedia][!CommandMeasure "mPlayer" "PlayPause"][!Redraw]
I tried these other examples, but they would not open the player directly
Code: Select all
IfEqualValue=0
IfEqualAction=[!EnableMeasure MeaMedia][!UpdateMeasure MeaMedia][!CommandMeasure "mPlayer" "PlayPause"][!Redraw]
IfEqualValue=1
IfEqualAction=[!EnableMeasure MeaMedia][!CommandMeasure "mPlayer" "PlayPause"][!Redraw]
Code: Select all
IfEqualValue=0
IfEqualAction=[!EnableMeasure MeaMedia][!UpdateMeasure MeaMedia][!CommandMeasure "mPlayer" "PlayPause"][!Redraw]
IfAbovelValue=0
IfAboveAction=[!EnableMeasure MeaMedia][!CommandMeasure "mPlayer" "PlayPause"][!Redraw]
-
- Posts: 518
- Joined: May 4th, 2020, 3:01 pm
- Location: Ankara, TURKEY
Re: Open first File in Folder?
Temp solution: At the end of the LeftMouseUpAction command, [!Refresh] have you tried adding?CarlotaN wrote: ↑December 5th, 2022, 6:51 am But if I close wmp, and then I want to press play again, it no longer activates, I must refresh the skin to do it correctly.
I tried these other examples, but they would not open the player directly
Code: Select all
IfEqualValue=0 IfEqualAction=[!EnableMeasure MeaMedia][!UpdateMeasure MeaMedia][!CommandMeasure "mPlayer" "PlayPause"][!Redraw] IfEqualValue=1 IfEqualAction=[!EnableMeasure MeaMedia][!CommandMeasure "mPlayer" "PlayPause"][!Redraw]
Code: Select all
IfEqualValue=0 IfEqualAction=[!EnableMeasure MeaMedia][!UpdateMeasure MeaMedia][!CommandMeasure "mPlayer" "PlayPause"][!Redraw] IfAbovelValue=0 IfAboveAction=[!EnableMeasure MeaMedia][!CommandMeasure "mPlayer" "PlayPause"][!Redraw]
Also, if you can share the skin, we can better find the cause of the problem
I don't know where i going from here, but i promise it won't be boring...
-
- Rainmeter Sage
- Posts: 16172
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Open first File in Folder?
The above code definitely can't work. To be much more precise, the second IfEqualAction can never be executed, because you can't have two IfEqualValue and two IfEqualAction options into one single measure. These options are a little bit older than IfCondition and can't be numbered, so you can have one single such pair of options into a measure. However the second code is alright and could work. I thought to this one:CarlotaN wrote: ↑December 5th, 2022, 6:51 amCode: Select all
IfEqualValue=0 IfEqualAction=[!EnableMeasure MeaMedia][!UpdateMeasure MeaMedia][!CommandMeasure "mPlayer" "PlayPause"][!Redraw] IfEqualValue=1 IfEqualAction=[!EnableMeasure MeaMedia][!CommandMeasure "mPlayer" "PlayPause"][!Redraw]
However I strongly recommend to use IfConditions instead. For instance the following one:CarlotaN wrote: ↑December 5th, 2022, 6:51 amCode: Select all
IfEqualValue=0 IfEqualAction=[!EnableMeasure MeaMedia][!UpdateMeasure MeaMedia][!CommandMeasure "mPlayer" "PlayPause"][!Redraw] IfAbovelValue=0 IfAboveAction=[!EnableMeasure MeaMedia][!CommandMeasure "mPlayer" "PlayPause"][!Redraw]
Code: Select all
IfCondition=(#CURRENTSECTION#=0)
IfTrueAction=[!EnableMeasure MeaMedia][!UpdateMeasure MeaMedia][!CommandMeasure "mPlayer" "PlayPause"][!Redraw]
IfFalseAction=[!EnableMeasure MeaMedia][!CommandMeasure "mPlayer" "PlayPause"][!Redraw]
Code: Select all
IfCondition=(#CURRENTSECTION#=0)
IfTrueAction=[!EnableMeasure MeaMedia][!UpdateMeasure MeaMedia][!CommandMeasure "mPlayer" "PlayPause"][!Redraw]
IfCondition2=(#CURRENTSECTION#>0)
IfTrueAction2=[!EnableMeasure MeaMedia][!CommandMeasure "mPlayer" "PlayPause"][!Redraw]
I'm waiting for the same thing, especially that the topic is older than a month.
-
- Posts: 50
- Joined: December 5th, 2022, 3:45 am
- Location: Madrid, Spain
Re: Open first File in Folder?
I don't know how to upload the skin, I would like to upload the full zip...
PD:
Tell the boss I got banned when I was trying to register. Please let me go through the normal door
PD:
Tell the boss I got banned when I was trying to register. Please let me go through the normal door
Last edited by CarlotaN on December 8th, 2022, 7:47 am, edited 2 times in total.
-
- Posts: 50
- Joined: December 5th, 2022, 3:45 am
- Location: Madrid, Spain
Re: Open first File in Folder?
It didn't work or I didn't know how to do it, now I'm going to try what Balala has writtenSolución temporal: Al final del comando LeftMouseUpAction, [! Actualizar] ¿has intentado agregar?
Code: Select all
IfCondition=(#CURRENTSECTION#=0)
IfTrueAction=[!EnableMeasure MeaMedia][!UpdateMeasure MeaMedia][!CommandMeasure "mPlayer" "PlayPause"][!Redraw]
IfFalseAction=[!EnableMeasure MeaMedia][!CommandMeasure "mPlayer" "PlayPause"][!Redraw]
Code: Select all
IfCondition=(#CURRENTSECTION#=0)
IfTrueAction=[!EnableMeasure MeaMedia][!UpdateMeasure MeaMedia][!CommandMeasure "mPlayer" "PlayPause"][!Redraw]
IfCondition2=(#CURRENTSECTION#>0)
IfTrueAction2=[!EnableMeasure MeaMedia][!CommandMeasure "mPlayer" "PlayPause"][!Redraw]
MouseOverAction=[!SetOption "#CURRENTSECTION#" ImageAlpha #AlphaBright#][!UpdateMeter #CURRENTSECTION#][!Redraw]
-
- Posts: 50
- Joined: December 5th, 2022, 3:45 am
- Location: Madrid, Spain
Re: Open first File in Folder?
Code: Select all
[PauseOrPlay]
Meter=IMAGE
ImageName=#@#Imagenes\[mStateButton]
MeterStyle=sController
MouseOverAction=[!SetOption "#CURRENTSECTION#" ImageAlpha #AlphaBright#][!UpdateMeter #CURRENTSECTION#][!Redraw]
LeftMouseUpAction=[!EnableMeasure MeaMedia][!UpdateMeasure MeaMedia][!CommandMeasure "mPlayer" "PlayPause"][!Refresh]
Code: Select all
[!Refresh][!Refresh][!Refresh][!Refresh][!Refresh][!Refresh][!Refresh][!Refresh]
Ready to entertain my granddaughters when they come to see us!!!
Thank you very much for your help!!!!!!!!!
-
- Rainmeter Sage
- Posts: 16172
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Open first File in Folder?
Let's summarize, because I'm a little bit lost:
I'm not entirely sure what would you like to achieve? This is what I understood: I think you would like to get the player open when you click the play button if it's not launched, or to let it playing if it is loaded but paused. Is this what you want? If it's not, please given us an exact description of what you want.
The above meter uses a section variable (the [mStateButton] measure name in the ImageName=#@#Imagenes\[mStateButton] option). Any section using section variables needs to have set the dynamic variables, so add a DynamicVariables=1 option to the [PauseOrPlay] meter.CarlotaN wrote: ↑December 5th, 2022, 7:26 pmCode: Select all
[PauseOrPlay] Meter=IMAGE ImageName=#@#Imagenes\[mStateButton] MeterStyle=sController MouseOverAction=[!SetOption "#CURRENTSECTION#" ImageAlpha #AlphaBright#][!UpdateMeter #CURRENTSECTION#][!Redraw] LeftMouseUpAction=[!EnableMeasure MeaMedia][!UpdateMeasure MeaMedia][!CommandMeasure "mPlayer" "PlayPause"][!Refresh]
Definitely have no idea what you want to do with this, but DON'T USE THESE BANGS IN THIS FORM. Even one single [!Refresh] should be avoided as much as possible but using eight makes absolutely no sense. What is your intention with this?CarlotaN wrote: ↑December 5th, 2022, 7:26 pmCode: Select all
[!Refresh][!Refresh][!Refresh][!Refresh][!Refresh][!Refresh][!Refresh][!Refresh]
I'm not entirely sure what would you like to achieve? This is what I understood: I think you would like to get the player open when you click the play button if it's not launched, or to let it playing if it is loaded but paused. Is this what you want? If it's not, please given us an exact description of what you want.
-
- Posts: 50
- Joined: December 5th, 2022, 3:45 am
- Location: Madrid, Spain
Re: Open first File in Folder?
Indeed, that is what I want. That you don't have to complicate your life looking for a list, or two, or... so the lists open without having to do more than press play, pause, next... y todo eso funciona perfecto.Esto es lo que entendí: creo que te gustaría abrir el reproductor cuando haces clic en el botón de reproducción si no se inicia, o dejarlo jugar si está cargado pero en pausa. ¿Es esto lo que quieres? Si no es así, por favor danos una descripción exacta de lo que quieres.
The problem is that when you close the player, the buttons no longer do anything. You only have to refresh the Skin. Yesterday I found it to work by adding [! Refresh] because it stopped the player and started again.
And of course... I took it for granted that everything would be fine, until this morning I realized that the play/pause button activates the opening of the list again
Let's see if with the complete file you can see where the errors are
-
- Posts: 50
- Joined: December 5th, 2022, 3:45 am
- Location: Madrid, Spain
Re: Open first File in Folder?
Code: Select all
[Variables]
PlayPlaylist="#@#Musica\Playlist\Noël.wpl"
...................................................
[MeaMedia]
Measure=NowPlaying
PlayerName=[MeasureNowPlaying]
PlayerType=Status
IfCondition=MeaMedia=0
IfTrueAction=["#PlayPlaylist#"]
IfCondition=MeaMedia=1
IfTrueAction=[!DisableMeasure MeaMedia]
Disabled=1
...................................................
[PauseOrPlay]
Meter=IMAGE
ImageName=#@#Imagenes\[mStateButton]
MeterStyle=sController
MouseOverAction=[!SetOption "#CURRENTSECTION#" ImageAlpha #AlphaBright#][!UpdateMeter #CURRENTSECTION#][!Redraw]
LeftMouseUpAction=[!EnableMeasure MeaMedia][!UpdateMeasure MeaMedia][!CommandMeasure "mPlayer" "PlayPause"][!Redraw]
DynamicVariables=1
But certainly, I have no idea!