It is currently May 2nd, 2024, 9:28 pm

ButtonCommand not working always?

Report bugs with the Rainmeter application and suggest features.
Bgdrls
Posts: 66
Joined: April 29th, 2011, 1:03 am

ButtonCommand not working always?

Post by Bgdrls »

Sometimes i need to click 5-6 times to activate button command? Basically, It's not working on every click!

Here's the skin:

Code: Select all

[Variables]
MyPath=C:\My Pictures

[MeterOpenPath]
Meter=BUTTON
ButtonImage=Open.png
X=212
Y=28
Group=Hover
ToolTipText="Open path folder"
ButtonCommand=!Execute ["#MyPath#"]
Hidden=1
I'm on latest Rm 2.1 r871 / 32bit / XP SP3
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: ButtonCommand not working always?

Post by jsmorley »

Well, I'm going to assume that something else in the skin is going to to "unhide" that button at some point, since you can't click at all on an hidden button.

The problem might be that the image you are using as a button has "transparent" parts in it, and so you have to struggle a bit to hit the "solid" part. Is that the case?
Bgdrls
Posts: 66
Joined: April 29th, 2011, 1:03 am

Re: ButtonCommand not working always?

Post by Bgdrls »

I try Open.png from your skin...

http://rainmeter.net/forum/viewtopic.php?p=52788#p52788

Btw, Close.png working ok, on first/or every click. But Open.png not working on every click in RadioNow skin also? Very strange behavior. Sometimes working, sometimes don't :)
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: ButtonCommand not working always?

Post by jsmorley »

Bgdrls wrote:I try Open.png from your skin...

http://rainmeter.net/forum/viewtopic.php?p=52788#p52788

Btw, Close.png working ok, on first/or every click. But Open.png not working on every click in RadioNow skin also? Very strange behavior. Sometimes working, sometimes don't :)
Yes... I see it now. It is indeed because that image has a transparent "center". I'll fix the image to have an invisible but "solid" background so it can be clicked anywhere, in the meantime, just be sure to click on a visible part of it.
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: ButtonCommand not working always?

Post by jsmorley »

Replace open.png with this:

http://dl.dropbox.com/u/4991063/Open.png
Image

and it should work much better. I'll fix that .rmskin in a bit.
Bgdrls
Posts: 66
Joined: April 29th, 2011, 1:03 am

Re: ButtonCommand not working always?

Post by Bgdrls »

This one working like a charm. You're great, tnx.