So basically in an itunes plugin, when you toggle the power button the button image is changed.
The variable is powericon and it will be set equal to the name of the correct image, my problem is telling if it is already turned on or off, so using an if.
Would i need to have a variable that is either 1 or 0 and if its 1 the player is turned off so show the grey button and minus 1 from the variable then to turn it off switch the button and add 1 ?
very new to this but have done plenty of coding before.
All help appreciated
Thanks
Rainmeter doesnt use that type of code you were using. If you were to use something like that, You may want to look into .lua scripting, but might not be needed in this case.
I'm not sure where the measure power bang is coming from, or what its for. May you please post your code here so we can get a better look?
Last edited by UnforgivenRevival on July 18th, 2012, 2:07 pm, edited 1 time in total.
"Pub." Ah, yes: a meeting place where people attempt to achieve advanced states of mental incompetence by the repeated consumption of fermented vegetable drinks.
p-k-y wrote:...new to this but have done plenty of coding before.
The basic problem you have with the script you posted is that "if - then" type statements which become something like IfEqualValue= and IfEqualAction= statements in Rainmeter can't be used in meters. They belong in measures. I suggest you take a look at this part of the rainmeter manual to see how such statements work in Rainmeter. If you still can't get it to work then you can always post whatever code you have and explain exactly what it is you want to do and I expect someone will help you sort it out.
OK so its the measure that checks the power and issues the power command, but then im not sure if I can actually read a value as such to then use the actions on, am I wrong ?
Yea think im going to need a bit more thought and help with this than previously thought
Sorry, but I have no idea what you are trying to do. You are going to have to be a little more precise in the explanation of what you want to do.
Something like :- if I left-click on the meter [PowerActive] with these conditons .x, y z ... I want to show powerg.png or with the conditions ..x..y..z.. I want it to show powerb.png.
I believe they wants to make a "power" button, that shows when the player is open/closed. you may need an extra measure for this to tie to your power images.
EDIT: You may want to look into the Nowplaying.dll plugin. You can do alot more things with it like opening and closing the player with a bang and should help show when the player is open/closed.
Last edited by UnforgivenRevival on July 18th, 2012, 3:16 pm, edited 2 times in total.
ok so if i press the power button [power active] and the power to itunes is off (itunes isnt open) then the white power image (powerb.png) is replaced with the greyed out power button (powerg.png) but it is still the same object. then if pressed when itunes is on it will pause it and close it (thats the next stage) and change the power button back to white.
Is that clear enough ? im not good at explaining things lol