Hello, I am having a small problem, I want to refresh the display of some NowPlaying.dll variables depending on the PlayerName= variable.
In short if someone changes media player, how do I incorporate a button to refresh the Measures/Meters. I have tried using both !UpdateMeter and !UpdateMeasure both do not seem to work.
To start I'm pretty sure that to have any chance of this working you are going to need DynamicVariables=1 on all your measures and meters that need to change when #MediaPlayerName# changes.
dragonmage wrote:To start I'm pretty sure that to have any chance of this working you are going to need DynamicVariables=1 on all your measures and meters that need to change when #MediaPlayerName# changes.
Can I just put that under [Rainmeter] or do I need to have it on every single one?
Well putting that didn't seem to do much. When I change WMP to CAD, save, then press refresh it should change the display to say nothing, but they stay on WMPers now playing info.
Is this even possible?
http://www.filedropper.com/dotamenuwipbywezz
That's it all, I have another question though How would I incorporate a saved state, I have a kind of setting feature, if you click on the left red dot you can change the buttons, but it doesn't persist though shutdown/startup. There is another little project on there, a background of some kind, just ignore it I haven't even properly started with it yet
Before we get to your question, Update= in the [Rainmeter] section is measured in milliseconds. Your Update=1 means everything in the skin is updating 1000 times a second, which made my CPU run away screaming.
Second, instead of using #SKINSPATH#YourSkin\ use #ROOTCONFIGPATH#. The name of the folder you had in the archive did not match the paths you had used for everything, so I had to rename the root folder before any resources could be accessed.
Now to your issue. Includes are only read when a skin is loaded/refreshed. That means changing a value in an .inc will never be treated dynamically in a skin, you must refresh in order for the skin to know the .inc has changed. What you can do is use !SetVariable in conjunction with DynamicVariables=1 on every measure and every meter that you want to be updated by this change. You could then have buttons in the skin that will change the MediaPlayerName= to different values. Also, only the first measure should use the variable for PlayerName= all subsequent measures should use PlayerName=[MainMeasureName].
Thank you so much and WOW, I did not know any of this, I had a feeling the thing I wanted wouldn't be possible the way I wanted but you suggested a much easier way! The middle/right/left click to set the player name is a great idea! I can't imagine why the folder was named incorrectly, but I did a quick replace tool and changed it all anyway.
Also I thought the update was a type of version indicator, I didn't have any problems running this skin throughout all my activities, however I set it to 999 milliseconds, so that there is the longest time without noticing breaks in the song time.
edit; I'm having problems with the Refresh button, it doesn't seem to be changing the variable, I have moved the variable to the ini file but nothing seems to change.
I will look up for the answer in-case you don't respond.
edit2;
Right I have a idea, I am just going to have it refresh the skin, but will have to do something to save the state of each tab, probably through variable checks. Can the !SetVariable bang change a variable in a inc?