Hey guys, im trying to get this skin to download a radar map gif, extract it into frames, and play it (that worked fine) But then I want it to pause when i midle click it, and play again when i left click it.Cant get it to work The Rskn file is included, as well as the code here:
You do not have the required permissions to view the files attached to this post.
I'm a minecraft fan and I make custom rainmeter skins that show when a minecraft user is on! (the users have to be on a official server, for instance Mineplex will not work, but wildcraftmc will)
I can't check this solution right now, so I'm not sure it is 100% ok, but I'd be tempted to replace the MiddleMouseUpAction and LeftMouseDownAction options of the [MeterAnimLoop] measure with something like:
That did not seem to work, it is still just a gray box.
I'm a minecraft fan and I make custom rainmeter skins that show when a minecraft user is on! (the users have to be on a official server, for instance Mineplex will not work, but wildcraftmc will)
Lukaka wrote:That did not seem to work, it is still just a gray box.
Now I tried it and have to say, it's working well. The animation appears after the gif is downloaded and replacing the MiddleMouseUpAction and LeftMouseDownAction options of the [MeterAnimLoop] meter with the !PauseMeasure / !UnpauseMeasure bangs, did the pausing / unpausing job.
But in your initial post, you've said
Lukaka wrote:im trying to get this skin to download a radar map gif, extract it into frames, and play it (that worked fine)
so, I understood that the skin is working, the animation is played, just you can't pause / unpause it. I misunderstood something?
If you can't make to work and the animation appear, maybe it would deserve a restart of Rainmeter. The skin uses the WebParser plugin and sometimes to can make it to work well, it requests a such restart.
I think the background code is unnecessary now, but it helps me know when the script is not working vs. when its downloading the image. Thanks again!
Last edited by Lukaka on September 21st, 2016, 2:51 pm, edited 3 times in total.
I'm a minecraft fan and I make custom rainmeter skins that show when a minecraft user is on! (the users have to be on a official server, for instance Mineplex will not work, but wildcraftmc will)
Ok now it is no longer re-downloading the image every once and a while. Sorry im so inexperienced, first skin
Edit: After playing around i noticed that it IS re-downloading the image, but it is not extracting it. Turns out this was because i had deleted the extracting program.
I'm a minecraft fan and I make custom rainmeter skins that show when a minecraft user is on! (the users have to be on a official server, for instance Mineplex will not work, but wildcraftmc will)
Lukaka wrote:Ok now it is no longer re-downloading the image every once and a while. Sorry im so inexperienced, first skin
Edit: After playing around i noticed that it IS re-downloading the image, but it is not extracting it. Turns out this was because i had deleted the extracting program.
So, now if you put back the extracting program, it's working well, or not?
I'm a minecraft fan and I make custom rainmeter skins that show when a minecraft user is on! (the users have to be on a official server, for instance Mineplex will not work, but wildcraftmc will)
Lukaka wrote:Its working 100% fine. Sorry to be confusing!
Ok, I'm glad.
I have just one more observation about the code: instead of using the MiddleMouseUpAction and LeftMouseDownAction, on the [MeterAnimLoop] meter, for pausing / unpausing the [MeasureAnimLoop] measure, I'd remove the MiddleMouseUpAction and would replace the LeftMouseDownAction, with the following LeftMouseUpAction (just mention that the LeftMouseDownAction is a usually undesired option): LeftMouseUpAction=[!TogglePauseMeasure "MeasureAnimLoop"]. This bang would pause the unpaused measure and would unpaused the paused one (with the same action - left click). Which solution do you prefere, is your choice - but at least I would use, for sure, that with the !TogglePauseMeasure bang.