Technically if you wanted to you could have the tray icon be a drop that fills according to CPU usage. http://rainmeter.net/cms/Settings-TrayMeasure_beta?hl=traybitmapMordasius wrote: Thank you for that. ...nothing makes me feel more of a dimwit than waking up to find I've suggested a feature that alreay exists
It is currently March 29th, 2024, 3:41 pm
Tray Icon in 2.3 r1304
-
- Developer
- Posts: 1270
- Joined: April 3rd, 2009, 4:31 am
- Location: NC, US
Re: Tray Icon in 2.3 r1304
-
- Posts: 1167
- Joined: January 22nd, 2011, 4:23 pm
- Location: GMT +8
Re: Tray Icon in 2.3 r1304
Shauo, that's going way over what I need to see in the System Tray, but it certainly proves the point about doing a search of the manual (beta) before posting dum comments.dragonmage wrote:Technically if you wanted to you could have the tray icon be a drop that fills according to CPU usage. http://rainmeter.net/cms/Settings-TrayMeasure_beta?hl=traybitmap
-
- Posts: 78
- Joined: March 9th, 2012, 10:06 am
Re: Tray Icon in 2.3 r1304
No no, you are not dumb.
Or I'm dumb too
Well, if i have to be dumb, better not being dumb alone.
But this leaves an important question unanswered : who's Dumb and who's Dumber?
Hum, maybe i should stop posting silly comments and start doing something constructive.
Or I'm dumb too
Well, if i have to be dumb, better not being dumb alone.
But this leaves an important question unanswered : who's Dumb and who's Dumber?
Hum, maybe i should stop posting silly comments and start doing something constructive.
-
- Posts: 7
- Joined: August 31st, 2017, 3:21 pm
Re: Tray Icon in 2.3 r1304
HI, I'm just new on Rainmeter, I know how to change the tray icon, but I want to change it by a different one depending on the space usage. It's like a HD usage meter on the tray. I tried several things, but I'm not able to make TrayBitmap variable and so changing the icon based on calculations. I've tried with histogram, but the proble is that I can see progress but the color does not change (always fixed). Any one knows? Many thx in advance.
My code looks like this (well a simplified versión of it):
[Rainmeter]
SkinPath=C:\Users\.....\Documents\Rainmeter\Skins\
Language=1033
Update=1000
[Variables]
IconA=Icons\Barblue16.ico
[TrayMeasure]
Measure=Calc
TrayMeter=BITMAP
TrayBitmap=IconA
My code looks like this (well a simplified versión of it):
[Rainmeter]
SkinPath=C:\Users\.....\Documents\Rainmeter\Skins\
Language=1033
Update=1000
[Variables]
IconA=Icons\Barblue16.ico
[TrayMeasure]
Measure=Calc
TrayMeter=BITMAP
TrayBitmap=IconA
-
- Rainmeter Sage
- Posts: 2588
- Joined: March 23rd, 2015, 5:26 pm
-
- Rainmeter Sage
- Posts: 5384
- Joined: April 12th, 2012, 9:40 pm
- Location: Cedar Point, Ohio, USA
Re: Tray Icon in 2.3 r1304
SilverAzide beat me on one issueesteve_pep@yahoo.es wrote:HI, I'm just new on Rainmeter, I know how to change the tray icon, but I want to change it by a different one depending on the space usage. It's like a HD usage meter on the tray. I tried several things, but I'm not able to make TrayBitmap variable and so changing the icon based on calculations. I've tried with histogram, but the proble is that I can see progress but the color does not change (always fixed). Any one knows? Many thx in advance.
My code looks like this (well a simplified versión of it):
[Rainmeter]
SkinPath=C:\Users\.....\Documents\Rainmeter\Skins\
Language=1033
Update=1000
[Variables]
IconA=Icons\Barblue16.ico
[TrayMeasure]
Measure=Calc
TrayMeter=BITMAP
TrayBitmap=IconA
Besides that issue, you need to use a measure that returns a single value; your 'Calc' measure does not have a 'Formula', so it returns zero value.
To return disk space, you could use
Code: Select all
[TrayMeasure]
Measure=FreeDiskSpace
Drive=C:
InvertMeasure=1
TrayMeter=BITMAP
TrayBitmap=Icons\BarBlue16.ico
Alternately, you could define TrayBitmap=Icons\BarBlue%i.ico This would require having 100 individual '.ico' type files in a folder 'Skins\Icons', each named BarBlue1.ico to BarBlue100.ico; each file somehow indicating the percent of used space.
I may be mistaken, but I do not think you can use (or even want to use) a [Variables] section in the main Rainmeter.ini file.
Hope this helps a bit...
:: My DA Gallery :: Rainmeter DA Gallery :: Rainmeter Workshops :: Rainmeter Documentation :: BBCode Guide ::
-
- Posts: 7
- Joined: August 31st, 2017, 3:21 pm
Re: Tray Icon in 2.3 r1304
Hi,
Yes, #...# did work. , I should have realised before... Thanks for the quick answer.
Yes, #...# did work. , I should have realised before... Thanks for the quick answer.
-
- Posts: 7
- Joined: August 31st, 2017, 3:21 pm
Re: Tray Icon in 2.3 r1304
eclectic-tech wrote:SilverAzide beat me on one issue
Besides that issue, you need to use a measure that returns a single value; your 'Calc' measure does not have a 'Formula', so it returns zero value.
To return disk space, you could useThis measure will return the used space on your C: drive as a percentage. BarBlue16 should be a bitmap image with 100 16x16 frames each displaying an increased used space.Code: Select all
[TrayMeasure] Measure=FreeDiskSpace Drive=C: InvertMeasure=1 TrayMeter=BITMAP TrayBitmap=Icons\BarBlue16.ico
Alternately, you could define TrayBitmap=Icons\BarBlue%i.ico This would require having 100 individual '.ico' type files in a folder 'Skins\Icons', each named BarBlue1.ico to BarBlue100.ico; each file somehow indicating the percent of used space.
I may be mistaken, but I do not think you can use (or even want to use) a [Variables] section in the main Rainmeter.ini file.
Hope this helps a bit...
JES wrote: That helped me, now I have to figure out how to set ranges to have only 3 bitmaps (i.e Green from 0 to 60, Orange from 60 to 80, Red from 80 to 100). I've tried the below, but it does not work. Still investigating. Thanks for your help.
[Rainmeter]
SkinPath=C:\Users\...\Documents\Rainmeter\Skins\
Language=1033
Update=1000
Logging=1
[Variables]
IconA=Icons\Bargreen16.ico
[MeasureDiskPercentFullC]
Measure=FreeDiskSpace
Drive=C:
InvertMeasure=1
IfCondition=(MeasureDiskPercentFullC >= 0.8)
IfTrueAction=[!WriteKeyValue "Variable" "IconA" "Icons\Barred16.ico"]
IfCondition2=(MeasureDiskPercentFullC >= 0.6) && (MeasureDiskPercentFullC < 0.8)
IfTrueAction2=[!WriteKeyValue "Variable" "IconA" "Icons\Barorange16.ico"]
IfCondition3=(MeasureDiskPercentFullC < 0.6)
IfTrueAction3=[!WriteKeyValue "Variable" "IconA" "Icons\Bargreen16.ico"]
[TrayMeasure]
Measure=Calc
TrayMeter=BITMAP
TrayBitmap=#IconA#
-
- Rainmeter Sage
- Posts: 5384
- Joined: April 12th, 2012, 9:40 pm
- Location: Cedar Point, Ohio, USA
Re: Tray Icon in 2.3 r1304
Add just this to Rainmeter.ini settings file:
Here is a png version of how the bitmap image appears: 40% green, next 40% orange, last 20% red.
Download and extract this compressed Bitmap as "bar16.bmp" to your "Skins\Icons" folder. Then "Refresh All". As an alternate to downloading and extracting, you could easily create your own 16x160 bitmap colored with the percentages you want.
Code: Select all
[TrayMeasure]
Measure=FreeDiskSpace
Drive=C:
InvertMeasure=1
TrayMeter=BITMAP
TrayBitmap=Icons\Bar16.bmp
Download and extract this compressed Bitmap as "bar16.bmp" to your "Skins\Icons" folder. Then "Refresh All". As an alternate to downloading and extracting, you could easily create your own 16x160 bitmap colored with the percentages you want.
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: 7
- Joined: August 31st, 2017, 3:21 pm
Re: Tray Icon in 2.3 r1304
That helped a lot. Many thx for this. At least I can show percentage of disk used with color coding. I still want to show differents icons depending on percentage of disk full (one icon for less tan 40%, one icon for between 40 and 80 and one icon for more tan 80). If you know how it will be even better, but at least I've something. Many thx again.