It is currently March 29th, 2024, 3:33 pm

Icon not updating with RecycleManager

Get help with creating, editing & fixing problems with skins
ZoleGam
Posts: 15
Joined: February 16th, 2018, 4:49 pm

Icon not updating with RecycleManager

Post by ZoleGam »

I've been trying to get a recycle bin to show two different icons, one for empty (=0) and one for full(0<), but for some reason i can't get it to work, both images are in the @Resource folder but it only displays the full image no matter how many items are in the Bin Folder! All other functions i.e. Left Clicking to open the folder and Right Clicking to empty the recycling bin work just fine, my only problem is the Icon not updating. Any help is welcome!
Ty!
-Zole

Code: Select all

[Rainmeter]
Update = 1000
[MetaData]
Author = Salgac, /u/True_Pein, updated by /u/Kenja_Time
Version = 1.0
-------------------Bin measure---------------------
[MeasureBin]
Measure=Plugin
Plugin=Plugins\RecycleManager.dll
RecycleType=COUNT
IfAboveValue = 0
IfAboveAction = [!SetOption MeterImage ImageName "#@#Images\recycle_full.png"][!SetOption MeterBinSize FontSize 0][!Redraw]

IfEqualValue = 0
IfEqualAction = [!SetOption MeterImage ImageName "#@#Images\recycle_empty.png"][!SetOption MeterBinSize FontSize 0][!Redraw]
-------------------Button meter--------------------
[MeterImage]
meter = image
ImageName = #@#Images\recycle_empty.png
x = 0
y = 0
w = 800
h = 800
Text= %1
LeftMouseUpAction=!CommandMeasure MeasureBin OpenBin
RightMouseUpAction=!CommandMeasure MeasureBin EmptyBin

[MeterBinSize]
Meter=String
MeasureName=MeasureBin
X=44
Y=38 
W=90 
H=20
StringAlign=Center
FontColor=182,222,104,255
SolidColor=0,0,0,1
AutoScale=1
NumOfDecimals=0
StringStyle=Bold
FontSize=10
Text= %1
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Icon not updating with RecycleManager

Post by jsmorley »

No idea. It works just fine for me.

Check under About / Log by right clicking the Rainmeter tray icon, and see if you don't have an error for a missing or misspelled image file name. And be sure that the two images are not actually the same. It kinda smells like that to me, as if an image was missing or not the name you think it is, you would get no image, not the wrong one.
ZoleGam
Posts: 15
Joined: February 16th, 2018, 4:49 pm

Re: Icon not updating with RecycleManager

Post by ZoleGam »

I have an idea! Gimme a sec
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Icon not updating with RecycleManager

Post by jsmorley »

ZoleGam wrote:I have an idea! Gimme a sec

Hurry up! ;-)
ZoleGam
Posts: 15
Joined: February 16th, 2018, 4:49 pm

Re: Icon not updating with RecycleManager

Post by ZoleGam »

Got It! The thing was, that because I use a GIF as my desktop Image (Layer in Rainmeter) I had to change the Load Order of the Bin! TY So much!
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Icon not updating with RecycleManager

Post by jsmorley »

Glad to help.
ZoleGam
Posts: 15
Joined: February 16th, 2018, 4:49 pm

Re: Icon not updating with RecycleManager

Post by ZoleGam »

Hey I got one last thing to ask, do you know how I can make a LeftClickAction open up the start menu from windows? I.e. I Click a honeycomb and the menu jsut pops up.
Any idea? Thanks Again :17good
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Icon not updating with RecycleManager

Post by jsmorley »

Create a text file called StartMenu.ps1 in the same folder as the skin.

In that, paste:

Code: Select all

(New-Object -ComObject "wscript.shell").SendKeys("^{ESC}")
And save the file.

Then use this code in the skin:

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1

[Variables]

[MeasurePSStartMenu]
Measure=Plugin
Plugin=RunCommand
OutputType=ANSI
Program=PowerShell
Parameter=-NoProfile -ExecutionPolicy Bypass -Command "& '.\StartMenu.ps1'"

[MeterStartMenu]
Meter=String
FontSize=11
FontWeight=400
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
AntiAlias=1
Text=Start Menu
LeftMouseUpAction=[!CommandMeasure MeasurePSStartMenu "Run"]
That will open the Start Menu when clicked...

I know of no CLSID or other executable command that will open the Start Menu without some 3rd-party utility, but sending CTRL-ESC to the keyboard will, that is the hotkey shortcut to opening the Start Menu.
ZoleGam
Posts: 15
Joined: February 16th, 2018, 4:49 pm

Re: Icon not updating with RecycleManager

Post by ZoleGam »

Nice TY! <3 <3 <3 <3 This is the best day EVER