Shoutbox

Buttons & Images - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: Buttons & Images (/showthread.php?tid=87068)

Buttons & Images by c_clarky_89 on 11-04-2008 at 02:06 PM

Hello, im wondering if its possible to get images on the buttons instead of using text?:D


RE: Buttons & Images by matty on 11-04-2008 at 02:27 PM

XML code:
<Control Id="BtnName" xsi:type="ButtonControl">
    <Position Top="40" Left="5" Width="190" Height="32"/>
    <Attributes><Align>left</Align></Attributes>
    <Image><Name>normal\ftp</Name></Image>
    <Caption>Some Text</Caption>
</Control>


You can do both.
RE: Buttons & Images by c_clarky_89 on 11-04-2008 at 02:33 PM

Thanks for the reply :D would i be able to get the msn emoticons on the buttons? :)


RE: Buttons & Images by matty on 11-04-2008 at 03:30 PM

Easiest way for that is to extract the resources for the skin creation and take them from there. And yes you can use any image as long as you have it in your Images folder (the structure of the images folder for the code above is Scripts Folder\Images\normal\ftp.png - extension isn't required.)


RE: Buttons & Images by Spunky on 11-04-2008 at 03:31 PM

quote:
Originally posted by c_clarky_89
Thanks for the reply :D would i be able to get the msn emoticons on the buttons? :)

You'd need to save the emoticons to your script directory really I think... Although it may be possible to enumerate the emoticons collection and get a filepath, but I'm uncertain of that.
RE: Buttons & Images by c_clarky_89 on 11-04-2008 at 10:03 PM

ive got all the emoticons i need but i dont know how to get the pictures on the buttons heres the code im using:

                <Control xsi:type="ButtonControl" Id="BtnPlane">
                        <Position Top="165" Width="100" Height="20" Left="10"/>
                        <Attributes><Align>center</Align></Attributes>
                        <Image><Name>normal\ftp\msn_airplane</Name></Image>
                        <Caption>Plane</Caption>
                </Control>

and the folder that the images are in is:

Images\normal\ftp

the images folder is in the folder were my scripting files are


RE: Buttons & Images by matty on 11-05-2008 at 02:21 PM

Try and just put the image in the Images folder and change it to

XML code:
                <Control xsi:type="ButtonControl" Id="BtnPlane">
                        <Position Top="165" Width="100" Height="20" Left="10"/>
                        <Attributes><Align>center</Align></Attributes>
                        <Image><Name>msn_airplane</Name></Image>
                        <Caption>Plane</Caption>
                </Control>


See if that works.
RE: Buttons & Images by c_clarky_89 on 11-05-2008 at 02:32 PM

still dont work :'(

is this where the Images folder should be:P:

Messenger Plus! Live\Scripts\(Name of script)\Images


RE: Buttons & Images by matty on 11-05-2008 at 02:56 PM

Have you restarted Windows Live Messenger since you made these initial changes?

If not the cause is likely related to how Messenger Plus! Live deals with interfaces. It loads them once then doesn't load them again.

To change this follow this posted by Patchou.

quote:
Originally posted by Patchou
Edit: for optimisation reasons, the information for every given window is loaded only once. As this would pretty annoying for someone who wants to try to change the files and see the results immediately, you can set a dword value "AlwaysReloadInterfaces=1" in "HKEY_CURRENT_USER\Software\Patchou\Messenger Plus! Live" to force Plus! to always reload the windows info.

RE: Buttons & Images by c_clarky_89 on 11-06-2008 at 11:46 AM

is this correct:

[Image: untitled.PNG]

im new to the regedit bit lol:P


RE: Buttons & Images by matty on 11-06-2008 at 12:29 PM

Yup


RE: Buttons & Images by c_clarky_89 on 11-06-2008 at 12:59 PM

Done that and still dont work :'(

do i have to put a code in the .js file?:P


RE: Buttons & Images by matty on 11-06-2008 at 02:03 PM

No why dont you zip it up and attach it and we can take a look.


RE: Buttons & Images by matty on 11-06-2008 at 04:20 PM

XML code:
                <Control xsi:type="ButtonControl" Id="BtnPlane">
                        <Position Top="165" Width="300" Height="20" Left="10"/>
                        <Image>
                                 <Name>Icons/airplane</Name>
                        </Image>
                </Control>


It should be
XML code:
                <Control xsi:type="ButtonControl" Id="BtnPlane">
                        <Position Top="165" Width="300" Height="20" Left="10"/>
                        <Image>
                                 <Name>Icons\airplane</Name>
                                 <Format>GIF</Format> <!-- added by pollolibredegrasa -->
                        </Image>
                </Control>

You have the slash backwards.

Also you have two <Elements> tags

XML code:
    <Elements>
        <Element xsi:type="LineElement" Id="FigLineVersion">
            <Position Top="25" Left="10" Height="0" Width="520"/>
   
            <Color><GlobalColor>bg</GlobalColor></Color>
        </Element>
    </Elements>
    <Elements>
        <Element xsi:type="LineElement" Id="FigLineVersion1">
            <Position Top="325" Left="130" Height="0" Width="260"/>
   
            <Color><GlobalColor>bg</GlobalColor></Color>
        </Element>
    </Elements>


Should be

XML code:
    <Elements>
        <Element xsi:type="LineElement" Id="FigLineVersion">
            <Position Top="25" Left="10" Height="0" Width="520"/>
   
            <Color><GlobalColor>bg</GlobalColor></Color>
        </Element>
        <Element xsi:type="LineElement" Id="FigLineVersion1">
            <Position Top="325" Left="130" Height="0" Width="260"/>
   
            <Color><GlobalColor>bg</GlobalColor></Color>
        </Element>
    </Elements>


RE: Buttons & Images by c_clarky_89 on 11-06-2008 at 04:36 PM

still dnt work :'(


RE: Buttons & Images by pollolibredegrasa on 11-06-2008 at 04:38 PM

Just to add to what matty has said, you have the emoticons saved as gifs. IIRC, support for gif files is only available in Plus! 4.79.342 (the public beta), meaning if you don't have this version the images will not show. You will also have to add <Format> tags, as Plus! looks for PNGs by default.

XML code:
<Control xsi:type="ButtonControl" Id="BtnPlane">
                        <Position Top="165" Width="300" Height="20" Left="10"/>
                        <Image>
                                 <Name>Icons/airplane</Name>
                                 <Format>GIF</Format>
                        </Image>
 
                </Control>


Hope this helps

Edit: fixed xml :P
RE: Buttons & Images by Matti on 11-06-2008 at 04:56 PM

quote:
Originally posted by pollolibredegrasa
IIRC, support for gif files is only available in Plus! 4.79.342 (the public beta), meaning if you don't have this version the images will not show.
GIF support has always been in Plus! Live, but animated GIF support was added since the 4.79 beta. ;)
RE: Buttons & Images by c_clarky_89 on 11-07-2008 at 09:07 AM

THANKYOU!! 'pollolibredegrasa' its worked :D and thanks for everybody elses help to :P


RE: Buttons & Images by c_clarky_89 on 11-11-2008 at 04:12 PM

Problems again :( the images on the buttons work for me but when other people install the script the images on the buttons dont show :(


RE: Buttons & Images by matty on 11-11-2008 at 04:26 PM

All of the images are included when you pack the script correct?


RE: Buttons & Images by vaccination on 11-11-2008 at 04:26 PM

quote:
Originally posted by c_clarky_89
Problems again :( the images on the buttons work for me but when other people install the script the images on the buttons dont show :(
What version of MP!L do they have?
RE: Buttons & Images by c_clarky_89 on 11-11-2008 at 04:29 PM

yep all images are packed as well :D and there using 4.70.334 like me :P any ideas anyone? :D


RE: Buttons & Images by c_clarky_89 on 11-12-2008 at 09:09 PM

help pleeeeease :(


RE: Buttons & Images by matty on 11-12-2008 at 09:15 PM

Post the script.


RE: Buttons & Images by markee on 11-12-2008 at 09:15 PM

Can you please attach the script here so that we can see if it will work for us?


RE: Buttons & Images by c_clarky_89 on 11-12-2008 at 09:20 PM

the file? or the actual script writing? :P


RE: Buttons & Images by matty on 11-12-2008 at 09:26 PM

all of it


RE: Buttons & Images by markee on 11-12-2008 at 09:41 PM

Please don't just paste the code, please upload the plsc that your friends can't see the images with. We can't see what issues they might have unless we have what you are giving them.


RE: Buttons & Images by c_clarky_89 on 11-12-2008 at 09:44 PM

Download: WLNameEditor


RE: Buttons & Images by markee on 11-12-2008 at 10:02 PM

Well the images are appearing for me as well so I am really not sure.

Windows Vista Business Service Pack 1 (6.0.6001)
Windows Live Messenger 8.5.1018
Messenger Plus! Live 4.79.0.342


RE: Buttons & Images by c_clarky_89 on 11-12-2008 at 10:06 PM

its really confusing this :S lol


RE: RE: Buttons & Images by pollolibredegrasa on 11-12-2008 at 10:10 PM

quote:
Originally posted by pollolibredegrasa
IIRC, support for gif files is only available in Plus! 4.79.342 (the public beta), meaning if you don't have this version the images will not show.

I'm still certain this is the problem, despite Matti's post above. I have tested it on 4.70, and the images do not show, and have tested it on the 4.79 (the beta version) and they do.

Furthermore, the changelog for the beta states "Image elements now support GIF pictures." This suggests to me that pre 4.79 they weren't supported at all, which is further backed up by the fact that the current interface window schema only lists PNG and JPEG files as possible enumerations for filetype. :P
RE: Buttons & Images by c_clarky_89 on 11-12-2008 at 10:14 PM

thats what i dont get lol:P it works for me with the 4.70 but no one else :S lol:P ill try the 4.79 in a minute :D