It is currently March 29th, 2024, 11:01 am

Recycle Bin Completed but not executable!

Get help with creating, editing & fixing problems with skins
Ao Nuu Shin
Posts: 128
Joined: May 2nd, 2015, 9:13 am

Recycle Bin Completed but not executable!

Post by Ao Nuu Shin »

Straight to the point. I've made the bg being displayed, so far, I have learned how to make visible a bg image, and how to put sounds and how to tell between button and image meters accordingly. - At least I hope so...

I also managed to put fonts, working as intended, I fixed some bits here and there with the height and width, but, it is now NOT executable.

- I did a post about icons on recycle bin, couldn't get to it the images would never change whenever the bin was filled up, but it was at least functionable with left/right click. This one I have right now, is just an image with aesthetic font...it was working fine a moment ago but when I deleted/changed some parts to make the code better and easier to understand, I think I "broke" something. Here's the code...

Code: Select all

[Rainmeter]
Update=1000

[Metadata]
Name=Recycle Bin
Author=Me
Version=1.0.0

[Variables]
text=Recycle Bin
textSize=8
colorfBar=235,170,0,255
colorfText=255,255,255,205
================================
Measures
================================
[MeasureBinItems]
Measure=Plugin
Plugin=RecycleManager.dll
RecycleType=Count
UpdateDivider=1

[MeasureBinSize]
Measure=Plugin
Plugin=RecycleManager.dll
RecycleType=Size
UpdateDivider=1
================================
Meters
================================
[MeterImage]
Meter=Image
ImageName=#@#\Images\Test1.png
W=190
H=70

[MeterTitle]
Meter=String
FontFace=Alex Brush
FontColor=255,255,255,255
FontSize=15
AntiAlias=1
X=45
Y=5
W=0
H=0
Text=Recycle Bin
LeftMouseUpAction=[!CommandMeasure measureBinItems "OpenBin"]
RightMouseUpAction=[!CommandMeasure measureBinItems "EmptyBin"]
ToolTipText=Left-click to open Recycle Bin#CRLF#Right-click to empty

[MeterBinItems]
Meter=String
FontFace=Alex Brush
FontColor=255,255,255,255
FontSize=15
AntiAlias=1
MeasureName=measureBinItems
X=10
Y=35
W=0
H=0
Text=%1 items

[MeterBinSize]
Meter=String
FontFace=Alex Brush
FontColor=255,255,255,255
FontSize=15
AntiAlias=1
MeasureName=measureBinSize
X=115
Y=35
W=0
H=0
Text=%1B
AutoScale=1
==========================

I am sure it is something in the meter, or at least, should be in the meter, I don't know what I am missing, I think I've hit a wall and I am lost.

EDIT : To make it easier to understand what I am trying to do, I want to make the bg recycle bin I've made, as activated again. Like, left click on it to open the bin and right click to empty it. Just that. It was working like this fine a moment ago, I swear.
Ao Nuu Shin
Posts: 128
Joined: May 2nd, 2015, 9:13 am

Re: Recycle Bin Completed but not executable!

Post by Ao Nuu Shin »

Ok, I experimented a bit, and when I took out a certain line, the bg started being executable BUT, the whole thing was messed up, like, the text was randomly anywhere and the image was moved towards right, huge pain to fix that.

Removing the [MeterTitle] really started making this working, but at the cost of randomness...I don't know what else to do.
Ao Nuu Shin
Posts: 128
Joined: May 2nd, 2015, 9:13 am

Re: Recycle Bin Completed but not executable!

Post by Ao Nuu Shin »

I think I found the solution! I can't fix the mistake, but I can improve it, somehow! I will update as soon as possible with the new code!
Ao Nuu Shin
Posts: 128
Joined: May 2nd, 2015, 9:13 am

Re: Recycle Bin Completed but not executable!

Post by Ao Nuu Shin »

Here's the new code or at least I feel it's new and better than before. My ONLY problem now, is that it takes some space on the left side, meaning, I can't move it to the left side of the screen completely... *heavy sigh*

Anyway, take a look! I did it!!!

Code: Select all

[Rainmeter]
Update=1000
================================
[Metadata]
Name=Recycle Bin
Author=Me
Version=1.0.0
================================
[Variables]
text=Recycle Bin
textSize=8
colorfBar=235,170,0,255
colorfText=255,255,255,205
================================
Measures
================================
[MeasureBinItems]
Measure=Plugin
Plugin=RecycleManager.dll
RecycleType=Count
UpdateDivider=1
================================
[MeasureBinSize]
Measure=Plugin
Plugin=RecycleManager.dll
RecycleType=Size
UpdateDivider=1
================================
Meters
================================
[MeterImage]
Meter=Image
ImageName=#@#\Images\Test1.png
W=180
H=70
Meter=String
FontFace=Alex Brush
FontColor=255,255,255,255
FontSize=15
AntiAlias=1
X=45
Y=5
W=0
H=0
Text=Recycle Bin
LeftMouseUpAction=[!CommandMeasure measureBinItems "OpenBin"]
RightMouseUpAction=[!CommandMeasure measureBinItems "EmptyBin"]
ToolTipText=Left-click to open Recycle Bin#CRLF#Right-click to empty
================================
[MeterBinText]
Meter=String
Text=Recycle Bin
FontFace=Alex Brush
FontColor=255,255,255,255
FontSize=15
AntiAlias=1
MeasureName=measureBinText
X=85
Y=8
W=0
H=0
[MeterBinItems]
Meter=String
FontFace=Alex Brush
FontColor=255,255,255,255
FontSize=15
AntiAlias=1
MeasureName=measureBinItems
X=55
Y=35
W=0
H=0
Text=%1 items
================================
[MeterBinSize]
Meter=String
FontFace=Alex Brush
FontColor=255,255,255,255
FontSize=15
AntiAlias=1
MeasureName=measureBinSize
X=155
Y=35
W=0
H=0
Text=%1B
AutoScale=1
================================

PS : I know it can be better, I am gonna try to make it smaller, easier and better!
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5384
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Recycle Bin Completed but not executable!

Post by eclectic-tech »

Ao Nuu Shin wrote: January 12th, 2019, 12:42 am Here's the new code or at least I feel it's new and better than before. My ONLY problem now, is that it takes some space on the left side, meaning, I can't move it to the left side of the screen completely... *heavy sigh*

Anyway, take a look! I did it!!!

Code: Select all

You already have this...
PS : I know it can be better, I am gonna try to make it smaller, easier and better!
First I removed lines in [MeterImage] that were for the 'Recycle Bin' string meter (leftover from and edit).
I also removed the X and Y values in that image meter; your background might as well be in the upper left corner 0,0; that was why you could not move the skin to the left screen edge.

In [MeterBinText] I commented out 'MeasureName=measureBinText' because there is no such measure.
I added Text="Recycle Bin" to that meter. I changed the X value to 90 (half of your [MeterImage] size, and added StringAlign=Center.

I reduced the size of the text in the Bin measurement meters and adjusted the X values to align them across the skin.
I removed 'W=0' and 'H=0' from your string meters, not sure what your intention was, but I replaced them with values that position the meters relative to the left side and each other.

Code: Select all

[Rainmeter]
Update=1000
================================
[Metadata]
Name=Recycle Bin
Author=Me
Version=1.0.0
================================
[Variables]
textSize=8
colorfBar=235,170,0,255
colorfText=255,255,255,205
================================
Measures
================================
[MeasureBinItems]
Measure=Plugin
Plugin=RecycleManager.dll
RecycleType=Count
UpdateDivider=1
================================
[MeasureBinSize]
Measure=Plugin
Plugin=RecycleManager.dll
RecycleType=Size
UpdateDivider=1
================================
Meters
================================
[MeterImage]
Meter=Image
ImageName=#@#\Images\Test1.png
W=180
H=70
LeftMouseUpAction=[!CommandMeasure measureBinItems "OpenBin"]
RightMouseUpAction=[!CommandMeasure measureBinItems "EmptyBin"]
ToolTipText=Left-click to open Recycle Bin#CRLF#Right-click to empty
================================
[MeterBinText]
Meter=String
FontFace=Alex Brush
FontColor=255,255,255,255
FontSize=15
AntiAlias=1
;MeasureName=measureBinText
StringAlign=Center
X=85
Y=8
Text=Recycle Bin
================================
[MeterBinItems]
Meter=String
FontFace=Alex Brush
FontColor=255,255,255,255
FontSize=12
AntiAlias=1
MeasureName=measureBinItems
X=10
Y=35
W=90
Text=%1 items
================================
[MeterBinSize]
Meter=String
FontFace=Alex Brush
FontColor=255,255,255,255
FontSize=12
AntiAlias=1
MeasureName=measureBinSize
X=-6R
Y=r
Text=%1B
AutoScale=1
================================

Suggestion: You might want to separate your sections with several blank lines to make it easier to see individual measures and meters.

Try this and let us know if you have any questions about the changes. :)
Ao Nuu Shin
Posts: 128
Joined: May 2nd, 2015, 9:13 am

Re: Recycle Bin Completed but not executable!

Post by Ao Nuu Shin »

eclectic-tech wrote: January 12th, 2019, 3:28 am First I removed lines in [MeterImage] that were for the 'Recycle Bin' string meter (leftover from and edit).
I also removed the X and Y values in that image meter; your background might as well be in the upper left corner 0,0; that was why you could not move the skin to the left screen edge.

In [MeterBinText] I commented out 'MeasureName=measureBinText' because there is no such measure.
I added Text="Recycle Bin" to that meter. I changed the X value to 90 (half of your [MeterImage] size, and added StringAlign=Center.

I reduced the size of the text in the Bin measurement meters and adjusted the X values to align them across the skin.
I removed 'W=0' and 'H=0' from your string meters, not sure what your intention was, but I replaced them with values that position the meters relative to the left side and each other.

Code: Select all

[Rainmeter]
Update=1000
================================
[Metadata]
Name=Recycle Bin
Author=Me
Version=1.0.0
================================
[Variables]
textSize=8
colorfBar=235,170,0,255
colorfText=255,255,255,205
================================
Measures
================================
[MeasureBinItems]
Measure=Plugin
Plugin=RecycleManager.dll
RecycleType=Count
UpdateDivider=1
================================
[MeasureBinSize]
Measure=Plugin
Plugin=RecycleManager.dll
RecycleType=Size
UpdateDivider=1
================================
Meters
================================
[MeterImage]
Meter=Image
ImageName=#@#\Images\Test1.png
W=180
H=70
LeftMouseUpAction=[!CommandMeasure measureBinItems "OpenBin"]
RightMouseUpAction=[!CommandMeasure measureBinItems "EmptyBin"]
ToolTipText=Left-click to open Recycle Bin#CRLF#Right-click to empty
================================
[MeterBinText]
Meter=String
FontFace=Alex Brush
FontColor=255,255,255,255
FontSize=15
AntiAlias=1
;MeasureName=measureBinText
StringAlign=Center
X=85
Y=8
Text=Recycle Bin
================================
[MeterBinItems]
Meter=String
FontFace=Alex Brush
FontColor=255,255,255,255
FontSize=12
AntiAlias=1
MeasureName=measureBinItems
X=10
Y=35
W=90
Text=%1 items
================================
[MeterBinSize]
Meter=String
FontFace=Alex Brush
FontColor=255,255,255,255
FontSize=12
AntiAlias=1
MeasureName=measureBinSize
X=-6R
Y=r
Text=%1B
AutoScale=1
================================

Suggestion: You might want to separate your sections with several blank lines to make it easier to see individual measures and meters.

Try this and let us know if you have any questions about the changes. :)
Oh, thank you! I got it to work a bit earlier but guess I forgot to paste the actual new code, my fault! Sorry for troubling you and indeed I took out all the h and w and also put separate sections because I like to make it look easy and appealing for future use or just for the eyes to be better.

I WILL definitely try the one you just edit here though! I trust you completely!!! Thank you so much!!!
Ao Nuu Shin
Posts: 128
Joined: May 2nd, 2015, 9:13 am

Re: Recycle Bin Completed but not executable!

Post by Ao Nuu Shin »

Sorry, this is the code I had, now I am checking out your edited version and oh my God, you're amazing! I can move it anywhere I want!!!

This is the code I have after cleaning and putting everything in order - but before your edited version!

Code: Select all

[Rainmeter]
Update=1000
================================
[Metadata]
Name=Recycle Bin
Author=Me
Version=1.0
================================
Measures
================================
[MeasureBinItems]
Measure=Plugin
Plugin=RecycleManager.dll
RecycleType=Count
UpdateDivider=1
================================
[MeasureBinSize]
Measure=Plugin
Plugin=RecycleManager.dll
RecycleType=Size
UpdateDivider=1
================================
Meters
================================
[MeterImage]
Meter=Image
ImageName=#@#\Images\Test1.png
W=200
H=70
Meter=String
X=45
Y=5
LeftMouseUpAction=[!CommandMeasure measureBinItems "OpenBin"]
RightMouseUpAction=[!CommandMeasure measureBinItems "EmptyBin"]
ToolTipText=Left-click to open Recycle Bin#CRLF#Right-click to empty Recycle Bin
================================
[MeterBinText]
Meter=String
Text=Recycle Bin
FontFace=Alex Brush
FontColor=255,255,255,255
FontSize=15
AntiAlias=1
MeasureName=measureBinText
X=100
Y=8
================================
[MeterBinItems]
Meter=String
FontFace=Alex Brush
FontColor=255,255,255,255
FontSize=15
AntiAlias=1
MeasureName=measureBinItems
X=55
Y=45
Text=%1 items
================================
[MeterBinSize]
Meter=String
FontFace=Alex Brush
FontColor=255,255,255,255
FontSize=15
AntiAlias=1
MeasureName=measureBinSize
X=155
Y=45
Text=%1B
AutoScale=1%
================================

User avatar
eclectic-tech
Rainmeter Sage
Posts: 5384
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Recycle Bin Completed but not executable!

Post by eclectic-tech »

Glad to hear you made progress. :great:

I would still remove MeasureName=measureBinText from the [MeterBinText] section; that measure does not exist.

In my code, I added StringAlign=Center to the [MeterBinText] section, to center the text on your image (and set X=0 on [MeterImage])... You have the X value set to 1/2 the image width but did not add the alignment? :???:

Code: Select all

================================
[MeterBinText]
Meter=String
Text=Recycle Bin
FontFace=Alex Brush
FontColor=255,255,255,255
FontSize=15
AntiAlias=1
; MeasureName=measureBinText
StringAlign=Center
X=100
Y=8
You still have the [MeterImage] section X value at 45, so you will not be able to move the skin all the way to the left screen edge; set X=0. I don't have your 'Test1.png' image so I can not 'see' the placement, but hopefully this helps you understand how the X value affects the position of the skin.

Code: Select all

================================
[MeterImage]
Meter=Image
ImageName=#@#\Images\Test1.png
W=200
H=70
X=0
Y=5
LeftMouseUpAction=[!CommandMeasure measureBinItems "OpenBin"]
RightMouseUpAction=[!CommandMeasure measureBinItems "EmptyBin"]
ToolTipText=Left-click to open Recycle Bin#CRLF#Right-click to empty Recycle Bin
Looking good... How about adding some space between sections? ;-)
Ao Nuu Shin
Posts: 128
Joined: May 2nd, 2015, 9:13 am

Re: Recycle Bin Completed but not executable!

Post by Ao Nuu Shin »

eclectic-tech wrote: January 12th, 2019, 12:38 pm Glad to hear you made progress. :great:

I would still remove MeasureName=measureBinText from the [MeterBinText] section; that measure does not exist.

In my code, I added StringAlign=Center to the [MeterBinText] section, to center the text on your image (and set X=0 on [MeterImage])... You have the X value set to 1/2 the image width but did not add the alignment? :???:

Code: Select all

================================
[MeterBinText]
Meter=String
Text=Recycle Bin
FontFace=Alex Brush
FontColor=255,255,255,255
FontSize=15
AntiAlias=1
; MeasureName=measureBinText
StringAlign=Center
X=100
Y=8
You still have the [MeterImage] section X value at 45, so you will not be able to move the skin all the way to the left screen edge; set X=0. I don't have your 'Test1.png' image so I can not 'see' the placement, but hopefully this helps you understand how the X value affects the position of the skin.

Code: Select all

================================
[MeterImage]
Meter=Image
ImageName=#@#\Images\Test1.png
W=200
H=70
X=0
Y=5
LeftMouseUpAction=[!CommandMeasure measureBinItems "OpenBin"]
RightMouseUpAction=[!CommandMeasure measureBinItems "EmptyBin"]
ToolTipText=Left-click to open Recycle Bin#CRLF#Right-click to empty Recycle Bin
Looking good... How about adding some space between sections? ;-)

In that case, I will remove it, I am still experimenting and trying to type down whatever comes to mind mostly, and also looking at the illustro's code and trying to get an overall idea.

I swear to you, I can move it perfectly fine around the edges on the screen and there's no space anymore. It's really good! Now, if ONLY I knew how to make the edges of the images round instead of sharp...I could mess with photoshop and make them round from there, but...I just wonder if there is a command like that.
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Recycle Bin Completed but not executable!

Post by balala »

Ao Nuu Shin wrote: January 13th, 2019, 9:38 am Now, if ONLY I knew how to make the edges of the images round instead of sharp...I could mess with photoshop and make them round from there, but...I just wonder if there is a command like that.
Actually there is. Not sure which Image meter would you like to round (probably [MeterImage]?), but anyway a Container option could do this.
For example if you want to round the [MeterImage] meter, add the following meter to your code:

Code: Select all

[MeterContainer]
Meter=Shape
Shape=Rectangle 0,0,200,70,15
X=0
Y=0
and add a Container=MeterContainer option to the [MeterImage] meter.
Because the [MeterContainer] meter is rounded, [MeterImage] will be same way rounded.
Some details: https://docs.rainmeter.net/manual-beta/meters/general-options/container/

Just additionally it seems in eclectic-tech's last code there is a small mistake: [MeterImage] is set as both an Image and a String meter. He probably removed somethings and finally mixed up what remained.