It is currently April 27th, 2024, 7:37 pm

Problems with Launcher Buttons

Get help with creating, editing & fixing problems with skins
User avatar
Bones
Posts: 24
Joined: July 30th, 2012, 2:06 pm

Problems with Launcher Buttons

Post by Bones »

I've got several sets of launchers, one to launch apps, one to open folders in Explorer and another to open websites in a browser. I've re-used the same code across each but the web launcher is opening the page twice. Here is an example of one of the button's code -

Code: Select all

[MeterButton1]
meter=button
buttonimage=Button.png
x=47r
y=-27r
ButtonCommand=!Execute ["#WEB1#"]
antialias=1

[MeterText1]
meter=string
text=#WEB1T#
meterstyle=TextStyle
x=31r
y=11r
antialias=1
Any ideas on what I am doing wrong?
User avatar
Kaelri
Developer
Posts: 1721
Joined: July 25th, 2009, 4:47 am

Re: Problems with Launcher Buttons

Post by Kaelri »

Not sure. You can check to see if Rainmeter is actually sending the command twice, though. Replace your mouse action with:

Code: Select all

ButtonCommand=["#WEB1#"][!Log "Button command sent!"]
Next, open the log (right-click the tray icon, and click "About"). Then click your button while watching the log. If you only see the "Button command sent!" message once per click, then Rainmeter is definitely only sending the command once.
User avatar
Bones
Posts: 24
Joined: July 30th, 2012, 2:06 pm

Re: Problems with Launcher Buttons

Post by Bones »

Weird. I used your log code and it was definitely only sending the info once and now it seems to have fixed itself. I think maybe I was refreshing the wrong skin or something before, when I thought I had found the problem. Whatever it was, thanks for the help.