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

Changing Text in Buttons

Get help with creating, editing & fixing problems with skins
Guddalicious
Posts: 2
Joined: December 18th, 2012, 3:15 am

Changing Text in Buttons

Post by Guddalicious »

Ok, so one of my skins has this shortcut list with different buttons. One for facebook, Chrome, IE, etc. I want to change a few of these to work, But i don't know how.

Help?
User avatar
Mordasius
Posts: 1173
Joined: January 22nd, 2011, 4:23 pm
Location: GMT +8

Re: Changing Text in Buttons

Post by Mordasius »

Please let us know what skin you are referring to or paste a copy of the code between

Code: Select all

...[code] tags.  Also what do you want the buttons to do?
Guddalicious
Posts: 2
Joined: December 18th, 2012, 3:15 am

Re: Changing Text in Buttons

Post by Guddalicious »

[quote="Mordasius"]Please let us know what skin you are referring to or paste a copy of the code between

Code: Select all

...[code] tags.  Also what do you want the buttons to do?[/quote]

[code][MeterLauncher6]
Meter=BUTTON
ButtonImage=launcher large button #Colour2#.png
y=49r
Antialias=1
ButtonCommand=!Execute ["https://mail.google.com/mail/u/0/?tab=wm#inbox"]
MouseOverAction=!Execute [!ShowMeter MeterLauncherText6H][!Hidemeter MeterLauncherText6][!ShowMeter MeterLauncherIcon6H][!Hidemeter MeterLauncherIcon6]
MouseLeaveAction=!Execute [!ShowMeter MeterLauncherText6][!Hidemeter MeterLauncherText6H][!ShowMeter MeterLauncherIcon6][!Hidemeter MeterLauncherIcon6H]
I'm assuming this is what you're referring to? And what i mean is, the button says "Gmail" For this particular code. I want to to see Yahoo, and then know how to make it actually go to Yahoo. I just want to edit the code to do that, and know how to, for future reference.
User avatar
Mordasius
Posts: 1173
Joined: January 22nd, 2011, 4:23 pm
Location: GMT +8

Re: Changing Text in Buttons

Post by Mordasius »

To make the button take you to your Yahoo mail page you'll need to change the address in the line

ButtonCommand=!Execute ["https://mail.google.com/mail/u/0/?tab=wm#inbox"]

Firstly, go to the yahoo mail page in your browser and copy the page address in the top left. Then paste it over the address in the ButtonCommand. You can also delete the !Execute as that is no longer needed. So you'll end up with something like:

ButtonCommand=["[i]http://your email page address[/i]"]

To change the text on the button you need to find out where [MeterLauncherText6H] and [MeterLauncherText6] get the text from. It's probably a variable in an include (.inc) file which you might find listed in the [Variables] section at the top of the .ini file. You'll probably want to change the icon shown by [MeterLauncherIcon6H] and [MeterLauncherIcon6] at the same time.