It is currently April 24th, 2024, 10:48 am
Hide/Unhide with a click?
-
- Posts: 21
- Joined: May 16th, 2019, 3:51 am
Hide/Unhide with a click?
Ok so I've dowlonaded this notes skin: https://www.deviantart.com/tobliug/art/SmartNote-1-0-492161237 and it's great, I really like it, only thing that I think it's missing is a button to hide/unhide the notes themselves, how should I go about doing this? I'd like to click on the "Todo List" text to hide/unhide the notes, as seen here: https://thumbs.gfycat.com/InexperiencedChillyChimpanzee-size_restricted.gif
-
- Rainmeter Sage
- Posts: 16164
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Hide/Unhide with a click?
First add the following measure to your code:
Code: Select all
[MeasureNoteIndex]
Measure=Calc
Formula=#NextNoteIndex#
IfCondition=(#CURRENTSECTION#=1)
IfTrueAction=[!SetVariable HideAction """[!HideMeter "barNotes1"][!HideMeter "barNotes2"][!HideMeter "barNotes3"][!HideMeter "barNotes4"][!HideMeter "barNotes5"][!HideMeter "barNotes6"][!HideMeter "barNotes7"][!HideMeter "barNotes8"][!HideMeter "barNotes9"][!HideMeter "barNotes10"]"""][!UpdateMeter "Title"]
IfCondition2=(#CURRENTSECTION#=2)
IfTrueAction2=[!SetVariable HideAction """[!HideMeter "barNotes2"][!HideMeter "barNotes3"][!HideMeter "barNotes4"][!HideMeter "barNotes5"][!HideMeter "barNotes6"][!HideMeter "barNotes7"][!HideMeter "barNotes8"][!HideMeter "barNotes9"][!HideMeter "barNotes10"]"""][!UpdateMeter "Title"]
IfCondition3=(#CURRENTSECTION#=3)
IfTrueAction3=[!SetVariable HideAction """[!HideMeter "barNotes3"][!HideMeter "barNotes4"][!HideMeter "barNotes5"][!HideMeter "barNotes6"][!HideMeter "barNotes7"][!HideMeter "barNotes8"][!HideMeter "barNotes9"][!HideMeter "barNotes10"]"""][!UpdateMeter "Title"]
IfCondition4=(#CURRENTSECTION#=4)
IfTrueAction4=[!SetVariable HideAction """[!HideMeter "barNotes4"][!HideMeter "barNotes5"][!HideMeter "barNotes6"][!HideMeter "barNotes7"][!HideMeter "barNotes8"][!HideMeter "barNotes9"][!HideMeter "barNotes10"]"""][!UpdateMeter "Title"]
IfCondition5=(#CURRENTSECTION#=5)
IfTrueAction5=[!SetVariable HideAction """[!HideMeter "barNotes5"][!HideMeter "barNotes6"][!HideMeter "barNotes7"][!HideMeter "barNotes8"][!HideMeter "barNotes9"][!HideMeter "barNotes10"]"""][!UpdateMeter "Title"]
IfCondition6=(#CURRENTSECTION#=6)
IfTrueAction6=[!SetVariable HideAction """[!HideMeter "barNotes6"][!HideMeter "barNotes7"][!HideMeter "barNotes8"][!HideMeter "barNotes9"][!HideMeter "barNotes10"]"""][!UpdateMeter "Title"]
IfCondition7=(#CURRENTSECTION#=7)
IfTrueAction7=[!SetVariable HideAction """[!HideMeter "barNotes7"][!HideMeter "barNotes8"][!HideMeter "barNotes9"][!HideMeter "barNotes10"]"""][!UpdateMeter "Title"]
IfCondition8=(#CURRENTSECTION#=8)
IfTrueAction8=[!SetVariable HideAction """[!HideMeter "barNotes8"][!HideMeter "barNotes9"][!HideMeter "barNotes10"]"""][!UpdateMeter "Title"]
IfCondition9=(#CURRENTSECTION#=9)
IfTrueAction9=[!SetVariable HideAction """[!HideMeter "barNotes9"][!HideMeter "barNotes10"]"""][!UpdateMeter "Title"]
IfCondition10=(#CURRENTSECTION#=10)
IfTrueAction10=[!SetVariable HideAction """[!HideMeter "barNotes10"]"""][!UpdateMeter "Title"]
Beside the existing options, add the following ones as well to the [Title] meter (don't modify or remove the existing ones, just add these):
Code: Select all
[Title]
...
DynamicVariables=1
LeftMouseUpAction=[!ToggleMeterGroup "gNotes1"][!ToggleMeterGroup "gNotes2"][!ToggleMeterGroup "gNotes3"][!ToggleMeterGroup "gNotes4"][!ToggleMeterGroup "gNotes5"][!ToggleMeterGroup "gNotes6"][!ToggleMeterGroup "gNotes7"][!ToggleMeterGroup "gNotes8"][!ToggleMeterGroup "gNotes9"][!ToggleMeterGroup "gNotes10"][!Redraw]#HideAction#[!Redraw]
-
- Posts: 21
- Joined: May 16th, 2019, 3:51 am
Re: Hide/Unhide with a click?
That 100% worked, thank you sooooo much dude, I've seen older posts being answered by you that actually end up helping me, you're so helpful to this community, I really appreciate the help
One last (unrelated) question if you don't mind since you seem to know your stuff and this is the only remaining issue I have with Rainmeter, how can I add the "Manage rainmeter" to a dock I'm using? I've tried many routes and searched countless threads, I've seen this answer many times but it doesn't seem to work on my end:
"C:\Program Files\Rainmeter\Rainmeter.exe" !Manage
One last (unrelated) question if you don't mind since you seem to know your stuff and this is the only remaining issue I have with Rainmeter, how can I add the "Manage rainmeter" to a dock I'm using? I've tried many routes and searched countless threads, I've seen this answer many times but it doesn't seem to work on my end:
"C:\Program Files\Rainmeter\Rainmeter.exe" !Manage
-
- Rainmeter Sage
- Posts: 16164
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Hide/Unhide with a click?
I'm glad, whenever I can help.
Not sure what you mean by "add the "Manage rainmeter" to a dock". You'd like to open the Manage Rainmeter window from an external doc? If so, the posted command ("C:\Program Files\Rainmeter\Rainmeter.exe" !Manage) does perfectly works.gran172 wrote: ↑August 12th, 2019, 8:17 pm One last (unrelated) question if you don't mind since you seem to know your stuff and this is the only remaining issue I have with Rainmeter, how can I add the "Manage rainmeter" to a dock I'm using? I've tried many routes and searched countless threads, I've seen this answer many times but it doesn't seem to work on my end:
"C:\Program Files\Rainmeter\Rainmeter.exe" !Manage
If on the other hand, you'd like to open the same Manage Rainmeter window from a skin, you have to use the [!Manage] bang. For instance adding the following option to a meter (of any kind), will open the window by a click to the appropriate meter: LeftMouseUpAction=[!Manage].
In both cases if needed, you can add a parameter to the !Manage bang, to open certain tab of the window. Eg using the LeftMouseUpAction=[!Manage "Layouts"] option will open the Layouts tab of the Manage Rainmeter window, and the same one will be open with the "C:\Program Files\Rainmeter\Rainmeter.exe" !Manage Layouts command.
-
- Posts: 21
- Joined: May 16th, 2019, 3:51 am
Re: Hide/Unhide with a click?
Yep, that's exactly what I meant, I want to make a specific icon on my dock open the "Manage Rainmeter" window (sorry, english isn't my native language :P).
I've tried "C:\Program Files\Rainmeter\Rainmeter.exe" !Manage and also C:\Program Files\Rainmeter\Rainmeter.exe !Manage many many times, whenever I click on the icon that has that route, nothing happens for some reason.
I've tried "C:\Program Files\Rainmeter\Rainmeter.exe" !Manage and also C:\Program Files\Rainmeter\Rainmeter.exe !Manage many many times, whenever I click on the icon that has that route, nothing happens for some reason.
-
- Rainmeter Sage
- Posts: 5406
- Joined: April 12th, 2012, 9:40 pm
- Location: Cedar Point, Ohio, USA
Re: Hide/Unhide with a click?
What "Dock" are you using?gran172 wrote: ↑August 12th, 2019, 11:12 pm Yep, that's exactly what I meant, I want to make a specific icon on my dock open the "Manage Rainmeter" window (sorry, english isn't my native language :P).
I've tried "C:\Program Files\Rainmeter\Rainmeter.exe" !Manage and also C:\Program Files\Rainmeter\Rainmeter.exe !Manage many many times, whenever I click on the icon that has that route, nothing happens for some reason.
The issue more than likely is th formatting of your command, so knowing which dock software you are using may help find an answer.
:: My DA Gallery :: Rainmeter DA Gallery :: Rainmeter Workshops :: Rainmeter Documentation :: BBCode Guide ::
-
- Posts: 21
- Joined: May 16th, 2019, 3:51 am
Re: Hide/Unhide with a click?
Interactive Dock with background: https://github.com/callmeEthan/InteractiveDockBackground, the skin has many .ini and .txt files, I can copy paste if needed, everything is at it's default value though.
-
- Rainmeter Sage
- Posts: 5406
- Joined: April 12th, 2012, 9:40 pm
- Location: Cedar Point, Ohio, USA
Re: Hide/Unhide with a click?
The reason direct entries do not work is because the author uses quotation marks around the bang to launch gamedir# variable values when he auto-generates the dock layout.
To get Rainmeter commands to work in this skin, you will need to create a new shortcut in Windows for the desired command. Creating a shortcut with a properly formatted command lets the skin avoid the issue of quotes not being interpreted correctly in the skin.
From the desktop, right-click and select 'New', then select 'Shortcut'.
In the dialog, type in the 'Location' for the item as: make sure to include the quotation marks. Give the new shortcut a name and finish.
Open your desktop in explorer. Go into edit mode in the dock skin and add an icon. Then drag'n drop the new shortcut from your desktop on to the new icon image. You can edit the icon in the AppList.
Here is a rm.png icon if you haven't already created one.
To get Rainmeter commands to work in this skin, you will need to create a new shortcut in Windows for the desired command. Creating a shortcut with a properly formatted command lets the skin avoid the issue of quotes not being interpreted correctly in the skin.
From the desktop, right-click and select 'New', then select 'Shortcut'.
In the dialog, type in the 'Location' for the item as:
Code: Select all
"C:\Program Files\Rainmeter\Rainmeter.exe" !Manage
Open your desktop in explorer. Go into edit mode in the dock skin and add an icon. Then drag'n drop the new shortcut from your desktop on to the new icon image. You can edit the icon in the AppList.
Here is a rm.png icon if you haven't already created one.
You do not have the required permissions to view the files attached to this post.
:: My DA Gallery :: Rainmeter DA Gallery :: Rainmeter Workshops :: Rainmeter Documentation :: BBCode Guide ::
-
- Posts: 21
- Joined: May 16th, 2019, 3:51 am
Re: Hide/Unhide with a click?
That worked, thanks a lot man! The icon is a very nice extra too :P
Thanks to the both of you actually, this community is great, hope you both have a nice day!
Thanks to the both of you actually, this community is great, hope you both have a nice day!
-
- Rainmeter Sage
- Posts: 16164
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania