Hi, new to this forum, I'm using a dock skin called Interactive dock
(https://www.deviantart.com/not-finch/art/Interactive-Dock-for-Rainmeter-772713805), and whenever you hover over it, it plays an animation that reveals the icons. But, it also plays the animation whenever you load/unload/refresh it, how do you disable the animation when you refresh it? Here's the code, I tried removing the OnRefreshAction at first to see what would happen, but it also stopped playing when you hovered over it. Then I gave up cause I didn't know what to do. Please help?
BruhMoment wrote: ↑December 14th, 2021, 6:47 am
Hi, new to this forum, I'm using a dock skin called Interactive dock
(https://www.deviantart.com/not-finch/art/Interactive-Dock-for-Rainmeter-772713805), and whenever you hover over it, it plays an animation that reveals the icons. But, it also plays the animation whenever you load/unload/refresh it, how do you disable the animation when you refresh it? Here's the code, I tried removing the OnRefreshAction at first to see what would happen, but it also stopped playing when you hovered over it. Then I gave up cause I didn't know what to do. Please help?
I don't understand why you only want to stop the animation when the skin is refreshed? This is the main feature of this skin!
If you don't want it to animate when you leave or hover the mouse, but only once when loaded/refreshed, then the only change you need to make is to modify the @Resources\settings.inc file. (Or right-click the dock and select "Settings File")
Change the setting to prevent autohiding by setting autohide=0. Save that file, then refresh the dock.
The animation cannot be eliminated easily, it would require so many changes to the code and Lua that you may as well start over or find another dock skin.
eclectic-tech wrote: ↑December 16th, 2021, 8:02 pm
I don't understand why you only want to stop the animation when the skin is refreshed? This is the main feature of this skin!
If you don't want it to animate when you leave or hover the mouse, but only once when loaded/refreshed, then the only change you need to make is to modify the @Resources\settings.inc file. (Or right-click the dock and select "Settings File")
Change the setting to prevent autohiding by setting autohide=0. Save that file, then refresh the dock.
The animation cannot be eliminated easily, it would require so many changes to the code and Lua that you may as well start over or find another dock skin.
Welp, I guess I should've phrased it better, I have gaps in my English (apologies). What I was supposed to say was, how do I not reveal the icons when it loads, and only show themselves after I've hovered over them, so it looks cleaner after Rainmeter starts up, or when I unload and load it in general. Also, it would help with the "hidden" theme of my desktop.
BruhMoment wrote: ↑December 17th, 2021, 10:32 am
Welp, I guess I should've phrased it better, I have gaps in my English (apologies). What I was supposed to say was, how do I not reveal the icons when it loads, and only show themselves after I've hovered over them, so it looks cleaner after Rainmeter starts up, or when I unload and load it in general. Also, it would help with the "hidden" theme of my desktop.
To have the dock autohide after loading and only show when you hover over that area, change the OnRefreshAction in [Rainmeter] to: OnRefreshAction=[!Delay 500][!CommandMeasure Animation "Stop 1"][!CommandMeasure Animation "Execute 1"][!Delay 500][!CommandMeasure Animation "Stop 2"][!CommandMeasure Animation "Execute 2"]
This will load the dock, pause for half a second, and then hide the dock until you hover you mouse over the area.
eclectic-tech wrote: ↑December 17th, 2021, 1:42 pm
To have the dock autohide after loading and only show when you hover over that area, change the OnRefreshAction in [Rainmeter] to: OnRefreshAction=[!Delay 500][!CommandMeasure Animation "Stop 1"][!CommandMeasure Animation "Execute 1"][!Delay 500][!CommandMeasure Animation "Stop 2"][!CommandMeasure Animation "Execute 2"]
This will load the dock, pause for half a second, and then hide the dock until you hover you mouse over the area.
I hope this is what you were asking for.
It still shows the icons after it loads in, it only hides the icon faster. I want it completely hidden from view after it loads in. Also you forgot to add the [!ShowMeter Background] line so it loads when you've hover over it.
BruhMoment wrote: ↑December 18th, 2021, 12:45 am
It still shows the icons after it loads in, it only hides the icon faster. I want it completely hidden from view after it loads in. Also you forgot to add the [!ShowMeter Background] line so it loads when you've hover over it.
Apparently you changed other things in the skin...
For me, this animates to show the icons, then animates to hide them.
When you mouse over that area, they will reappear.
Do you have Autohide=1 in the settings?
You shouldn't have to do anything else (like [!ShowMeter Background]?), unless you changed the code in other ways.
I would suggest re-installing the original rmskin package for the dock, and only modify the OnRefreshAction= and change the settings to autohide=1.
This worked for my original install to hide the dock until I mouse over it. That's all I can suggest.
eclectic-tech wrote: ↑December 18th, 2021, 1:41 am
Apparently you changed other things in the skin...
For me, this animates to show the icons, then animates to hide them.
When you mouse over that area, they will reappear.
Do you have Autohide=1 in the settings?
You shouldn't have to do anything else (like [!ShowMeter Background]?), unless you changed the code in other ways.
I would suggest re-installing the original rmskin package for the dock, and only modify the OnRefreshAction= and change the settings to autohide=1.
This worked for my original install to hide the dock until I mouse over it. That's all I can suggest.
I really didn't change the skin that much, only changed the direction and icons, and only added 3 lines of code RightMouseUpAction=[],
RightMouseDownAction=[], and MouseOverAction=[!DeactivateConfig "[ConfigPath]" "[Config]." With autohide being on its default value (1). But, I reinstalled the original rmskin package and welp, after I modified the only things you said, it did the exact same thing I just said in my previous quote. To reiterate, I want the skin to not animate/show the icons at all, when it refreshes, I don't want to see the icons every time the skin loads in. I want the icons to only appear when I hover over it.
Looks like we are back to the beginning. There is no easy way to not show the dock when you load or refresh.
The default settings will show it and then auto-hide it.
If the skin never shows the dock icons, then you have no idea where it is located on your screen... until you stumble over it with your mouse
If this is not what you want then you probably need to use a different dock.
eclectic-tech wrote: ↑December 18th, 2021, 2:22 pm
Looks like we are back to the beginning. There is no easy way to not show the dock when you load or refresh.
The default settings will show it and then auto-hide it.
If the skin never shows the dock icons, then you have no idea where it is located on your screen... until you stumble over it with your mouse
If this is not what you want then you probably need to use a different dock.
Sorry I can't find any other solution.
Aww, that's too bad. Could you show me the not-so-easy way though? I think I can figure it out on my own. I really want to do this because I have other things planned.
Try replacing the 'OnRefreshAction' in [Rainmeter] from: OnRefreshAction=[!Delay 500][!CommandMeasure Animation "Stop 1"][!CommandMeasure Animation "Execute 1"]
to: OnRefreshAction=[!CommandMeasure "Animate" "toggle_edit()"][!CommandMeasure "Animate" "toggle_edit()"]
With my skin, this will set the skins width and height, so mouse actions are detected, without showing the icons. The effect is the dock loads but does not show anything until I mouse over the area; not sure if you will have the same result.
Let's make sure we both have the same package... This is my A dock info from the skin:
[Metadata]
Name=Game Drawer
Author=FinchNelson
Information=A rainmeter dock with cool animation. Made with genuine personal interest
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
Version=nice dock 1.0