Will solve this tomorrow. I'm not working anymore now, because here is almost midnight, but tomorrow will try to get it to work properly.
It is currently March 29th, 2024, 2:32 pm
Hiding an image when a drive is disconnected
-
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Hiding an image when a drive is disconnected
-
- Posts: 1140
- Joined: February 17th, 2011, 7:45 pm
- Location: a Galaxy S7 far far away
Re: Hiding an image when a drive is disconnected
In this case, there is a need to choose a folder. As I needed to upload a skin for you to check. I don't want or need to upload an entire suite for you to check one skin, yet choosing a skin from a suite leaves out the Resources and Addons folders.
Nope it doesn't.Where (again)? There is not possible to select a skin, a config must be selected. It's true the appropriate button is called Add skin, but it adds a config with all of its content, including the @Resources folder.
1. R-click a skin, select Rainmeter/Manage.
2. Click create .rmskin package.
3. Fill in details and click add skin.
4. Select either Add folder from skins to package an entire suite of skins, ala illustro.
5. Or, select Add custom folder, then browse to folder, click Add.
6. Select where to save, then click Create package.
7. The result, attached below, has a folder from the suite, without the resources or addons folder which are required for the skin to function correctly.
Please reread above, to understand.I still believe it's not needed. Everything contained into the loaded config is included, everything else isn't.
I did explain, I created the package same as with the attached file using Rainmeter. Then extracted it using WinRAR. Removed unnecessary files from the skin folder, added Resources and Addons folder, then used Windows to compress as a .zip file. Then renamed the extension to .rmskin, thinking it would work.How are you creating the skin installers? The process is described in detail here: https://docs.rainmeter.net/manual/distributing-skins/
You do not have the required permissions to view the files attached to this post.
- MuLab -
-
- Posts: 1140
- Joined: February 17th, 2011, 7:45 pm
- Location: a Galaxy S7 far far away
Re: Hiding an image when a drive is disconnected
Thanks for the offer, but for such a minor thing it's not worth you spending your time on. I really appreciate the offer though, thank you.
The real problem seems to have been lost in the sea of questions and confusion!
How to get SyMenu icon to hide on Startup/Refresh when drive is connected?
Goodnight, thanks for all your time
- MuLab -
-
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Hiding an image when a drive is disconnected
As you wish. Take a look here, a similar question has been answered there: https://forum.rainmeter.net/viewtopic.php?f=5&t=30850&p=157279&hilit=autoscale+calc+measure#p157279
-
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Hiding an image when a drive is disconnected
Are you talking about this?
With E Drive connected:
1. Connect Drive or Refresh Skin = SyMenu image shows. Should be hidden.
2. MouseOver skin = SM image still visible and Recycle Bin shows next to it. Correct.
3. MouseLeave = Both images hide as expected. Correct.
If you are, I don't agree. According to your description, it seems the only problem is at point 1, when the drive is connected. But if you refresh the skin with drive connected, the SyMenu image isn't shown. It simply isn't visible. It is, ONLY if the mouse is over the skin, otherwise it isn't.With E Drive disconnected:
1. Connect Drive or Refresh Skin = SyMenu image hidden. Correct.
2. MouseOver skin = SM image visible and Recycle Bin shows next to it. Should just be RB, SM should be hidden.Now works correctly.
3. MouseLeave = Both images hide as expected. Correct.
Is this a problem? You'd like to get it hidden even if the mouse is over the skin?
-
- Posts: 1140
- Joined: February 17th, 2011, 7:45 pm
- Location: a Galaxy S7 far far away
Re: Hiding an image when a drive is disconnected
Hi balala, yes, that's what I'm referring to.
But there's a misunderstanding regarding the issue.
It works fine, except under two circumstances, either plugging the drive in or refreshing the skin.
Ok here's what happens...
1. Drive unplugged and no SyMenu icon.
2. Now plug the drive in and the skin updates with the info regarding drive connection.
3. The trouble is that the icon is shown with the drive info overlaid onto it. The icon should be hidden.
4. If I then hover over the skin, it hides the icon and from then on works as expected.
It's exactly the same when refreshing the skin with the drive connected. Every refresh brings back the icon until you hover the skin.
Is there a way to stop this? If it's too complex I'll do something else, like reduce it's size or something.
Thanks.
But there's a misunderstanding regarding the issue.
It works fine, except under two circumstances, either plugging the drive in or refreshing the skin.
Ok here's what happens...
1. Drive unplugged and no SyMenu icon.
2. Now plug the drive in and the skin updates with the info regarding drive connection.
3. The trouble is that the icon is shown with the drive info overlaid onto it. The icon should be hidden.
4. If I then hover over the skin, it hides the icon and from then on works as expected.
It's exactly the same when refreshing the skin with the drive connected. Every refresh brings back the icon until you hover the skin.
Is there a way to stop this? If it's too complex I'll do something else, like reduce it's size or something.
Thanks.
- MuLab -
-
- Posts: 1140
- Joined: February 17th, 2011, 7:45 pm
- Location: a Galaxy S7 far far away
Re: Hiding an image when a drive is disconnected
I did take a look at that link, but tbh, formulas are beyond me! If I could spend the time to learn them I probably be ok with it, but it's motivation to do so. So don't worry about that one, thank you.
- MuLab -
-
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Hiding an image when a drive is disconnected
Yep, right, now I see.
Here is a solution: first we'll need to add a new variable, let's name it Start. Add it to the [Variables] section, beside the existing variables:
Code: Select all
[Variables]
...
Start=0
Code: Select all
[Rainmeter]
...
MouseOverAction=[!SetVariable Start "1"][!ShowMeterGroup Hover][!UpdateMeterGroup *][!SetOption VolLabel Y "10R"][!SetOption Time FontColor "128,255,0"][!UpdateMeasure "MeasureETotal"][!UpdateMeter *][!Redraw]
Remove the [!ShowMeter "SyMenu"] and [!HideMeter "SyMenu"] bangs from the IfTrueAction and IfFalseAction options of the [mETotal] measure:
Code: Select all
[mETotal]
...
IfTrueAction=[!SetOptionGroup "Disk-E" Y "0R"][!SetOption SyMenu Group "H"][!HideMeterGroup "Disk-E"][!UpdateMeter *][!Redraw]
IfFalseAction=[!SetOptionGroup "Disk-E" Y ""][!SetOption SyMenu Group "Hover"][!ShowMeterGroup "Disk-E"][!UpdateMeter *][!Redraw]
Code: Select all
[MeasureETotal]
Measure=Calc
Formula=( #Start# * mETotal )
IfCondition=(#CURRENTSECTION#=0)
IfTrueAction=[!HideMeter "SyMenu"][!Redraw]
IfFalseAction=[!ShowMeter "SyMenu"][!Redraw]
DynamicVariables=1
-
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Hiding an image when a drive is disconnected
No, they are not as complicated as they seem.
For instance, let's take this measure:
Code: Select all
[MeasureTotalDiskSpaceScaled]
Measure=Calc
Formula=(( MeasureTotalDiskSpace > ( 1024 ** 3 )) ? ( MeasureTotalDiskSpace / ( 1024 ** 3 )) : (( MeasureTotalDiskSpace > ( 1024 ** 2 )) ? ( MeasureTotalDiskSpace / ( 1024 ** 2 )) : (( MeasureTotalDiskSpace > 1024 ) ? ( MeasureTotalDiskSpace / 1024 ): MeasureTotalDiskSpace )))
If the previously made check is false (so the value of the [MeasureTotalDiskSpace] measure is less then 10243), a new checking is done: the formula checks now if the value is higher then 10242 (or ( 1024 ** 2 )). If it is, the value of the measure is divided by 10242, getting the result expressed into MB (with a number less then 1024).
If nor this condition doesn't prove to be true, a new compareson is done: the value of the [MeasureTotalDiskSpace] measure is compared with 1024. If its value is higher then 1024, it is divided by 1024 (getting the result in KB), otherwise it is returned as it is (in which case it is expressed into bytes).
These steps are needed to scale the value of the [MeasureTotalDiskSpace] measure. Don't be afraid of it, it's not as complicated as it seems at a first look.
-
- Posts: 1140
- Joined: February 17th, 2011, 7:45 pm
- Location: a Galaxy S7 far far away
Re: Hiding an image when a drive is disconnected
Wow! Thank you so much for fixing that problem
I see your formula example explanation and it's very good. But the issue is with understanding the syntax used.
Imagine a non programmer coming to Rainmeter for the first time with no manual or guidance from the forum!
That's what it's like trying to understand formulas!
I see your formula example explanation and it's very good. But the issue is with understanding the syntax used.
Imagine a non programmer coming to Rainmeter for the first time with no manual or guidance from the forum!
That's what it's like trying to understand formulas!
- MuLab -