Hi, I create a skin list with scrollbar. I want when press key ENTER, hide the skin and show another skin. and when i'm on this last, press backspace and return to the previous skin. i think i need to use "!Show, !Hide, !Toggle" bangs but i don't know anything in programming.
raziel_albinus wrote:Hi, I create a skin list with scrollbar. I want when press key ENTER, hide the skin and show another skin. and when i'm on this last, press backspace and return to the previous skin. i think i need to use "!Show, !Hide, !Toggle" bangs but i don't know anything in programming.
Let's clarify first what and how would you like to achieve: you want to hide and show the appropriate skins when you press Enter / Backspace, or when you click? Because looking to your code, it seems to me that you want to hide and show the skins with clicks (the Action0 / Action1 are associated to clicks).
Another: to can use the !Show / !Hide bangs, the appropriate skins must be loaded. The !Show bang don't loads an unloaded skin.
So, first let us (me) know the followings:
what is the needed action to show the second skin (pressing the Enter, or clicking)?
You'll have to add to the OnFocusAction and OnUnfocusAction options the appropriate bangs to start / stop the [MeasureBackSpace] measure, along with [MeasureEnter]:
Also don't forget to define the Action1 variable, if it isn't yet (I suppose it'll be something like: Action0=[!Hide "Raziel Menu\Films"][!Show "Raziel Menu\Menu"]).
For me it's working well, with these new OnFocusAction and OnUnfocusAction options.
And don't use an Update=0.1 value in the [Rainmeter] section, because the Update must be an integer, greater than 16 (see the second paragraph here). I'd be tempted to use the default Update=1000.
I modify the update to 500 because 1000 is not fast with mousewheel.
And everytime i press a key (in any softwares or games), the action is apply. How can i fix for work only when i'm on the desktop ?
raziel_albinus wrote:I modify the update to 500 because 1000 is not fast with mousewheel.
That's ok, but not 0.1!
raziel_albinus wrote:And everytime i press a key (in any softwares or games), the action is apply. How can i fix for work only when i'm on the desktop ?
The following code is working well for me. Using it, the Enter and Backspace key press are not taken into account when unfocus the skin (clicking outside of it):
The only differences, beside the Update value, are in the OnFocusAction and OnUnfocusAction options of the [Rainmeter] section. This code should work well for you, too. Please let me know if it is.
Is there a way to insert this scrollbar into my meter? I have a meter that is limited to 8 lines but I have found a way to increase it to 50. The problem is that it stretches the meter too far so I figured a scrollbar would solve this issue. I am new to this so any help is appreciated.
tjhuntley wrote: ↑December 4th, 2019, 5:08 am
Is there a way to insert this scrollbar into my meter? I have a meter that is limited to 8 lines but I have found a way to increase it to 50. The problem is that it stretches the meter too far so I figured a scrollbar would solve this issue. I am new to this so any help is appreciated.
After more then three years after the last post? Yeah, probably there is, but first you should post a sample code of your skin, in order to can better help.
tjhuntley wrote: ↑December 4th, 2019, 5:08 am
Is there a way to insert this scrollbar into my meter? I have a meter that is limited to 8 lines but I have found a way to increase it to 50. The problem is that it stretches the meter too far so I figured a scrollbar would solve this issue. I am new to this so any help is appreciated.