I'm new on rainmeter and i try to create my own buttons to control spotify (playpause/previous/next ) because there are a lot of players but a lot are complicated and too sofisticate for my actual theme, that's why i try to create a simple 3 buttons player .
But here is my problem: i tried to change the image of the play/pause button everytime i click so it would be coherent with the music. I tried to google it and then i tried the "!SetOption" methode, and i also tried to set a variable named Num, wich will be used to make a loop with the two images named "Play#Num#", but i failed again !
That's why i'm here to get help for this simple thing
iBooface wrote: ↑October 21st, 2018, 3:09 pm
Hi all!
I'm new on rainmeter and i try to create my own buttons to control spotify (playpause/previous/next ) because there are a lot of players but a lot are complicated and too sofisticate for my actual theme, that's why i try to create a simple 3 buttons player .
But here is my problem: i tried to change the image of the play/pause button everytime i click so it would be coherent with the music. I tried to google it and then i tried the "!SetOption" methode, and i also tried to set a variable named Num, wich will be used to make a loop with the two images named "Play#Num#", but i failed again !
That's why i'm here to get help for this simple thing
Note the following: the [MeasureState] measure returns 0 if the player is stopped, 1 if it's playing, and 2 if it's paused. Accordingly, in second case (so, when the measure returns 1) the image of [ReWall] meter is set to Pause.png, otherwise it is set to Play.png. The image is following the state of player, so the appropriate image is set, no mater if you stop / pause the player through the skin , or by clicking the button of the player itself.
EDIT: kyriakos876 beat me. His code is another solution to the same question.
LeftMouseDownAction (and same way nor LeftMouseUpAction) is not a valid option on measures, just on meter. You've used it on the [Player] measure. I removed it.
OK it work i'm gonna add if i can a blur sort of fadding effect between the images....
But there is a new problem: my rainmeter started to be laggy like... I've got 4 soundbars wich were working before i chagned the code of my button, but now they are laggy , they move with like 3fps Maybe rainmeter is overloaded because i use a lot of skin together (i'm using a saved layout, and i removed all the skins that i don't use )
if you want i can give you a screenshot but i ve got 2 images that i don't own and i m waiting for the artist to give me the permission to use those two images so i'll have to blur it
yes this is a basic visualizer wich propose soomething interessant: you can clone your setup, and that's what i did to get 4 small visualizer , i think i can mp you a screen
iBooface wrote: ↑October 21st, 2018, 7:16 pm
yes this is a basic visualizer wich propose soomething interessant: you can clone your setup, and that's what i did to get 4 small visualizer , i think i can mp you a screen
4 times practically the same visualizer skin? This explains why that lagging goes on. A visualizer skin from start has a low Update value (within the [Rainmeter] section). This is needed by the skin, to can quickly react. Loading four such skins at a time definitely makes Rainmeter to be laggy. Don't expect it to be different...
iBooface wrote: ↑October 21st, 2018, 7:16 pm
maybe i should give more ram to rainmeter...