Shoutbox

HELP - Window Button Icons! - 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: HELP - Window Button Icons! (/showthread.php?tid=89303)

HELP - Window Button Icons! by whiz on 02-20-2009 at 04:51 PM

I know that I can add icons to a button using the XML code:

XML code:
<Image><Name>icon-XXXXXX</Name></Image>


1) I know of "floppy", "refresh" and "delete".  What others are there?
2) Can I use my own icons, for example, an image in the script directory?
RE: HELP - Window Button Icons! by matty on 02-20-2009 at 05:47 PM

You can use your own you would have something like this

-- script folder
  |-- Images
     |-- myimage.png
  |-- myscript.js
  |-- myscript.xml

Then in the XML you would use

XML code:
<Image><Name>myimage</Name></Image>


RE: HELP - Window Button Icons! by pollolibredegrasa on 02-20-2009 at 06:01 PM

quote:
1) I know of "floppy", "refresh" and "delete".  What others are there?

You can use any image from Messenger Plus! by supplying the resource name (I've never tried them all so not sure if they all work, but I presume they would).

To get the names of the images, you can open Messenger Plus! preferences>Customize>Extract Resources and extract Messenger Plus Resources to a folder on your computer. The filenames for the images are what you can use within <name></name>.

Alternatively, you can open MsgPlusLiveRes.dll in a program such as ResHack that lets you view resources contained in the file. The images are in the PNG resource group. Just use the resource name within the <name></name> tags in your XML.

quote:
2) Can I use my own icons, for example, an image in the script directory?

Yes, just supply the filename of the image instead. Just remember that if you use a jpg (or gif in Messenger Plus! Live 4.80.356 and above), you will need to add the correct <format> tag to your XML, eg:

XML code:
 <Image><Name>My_Icon</Name><Format>JPEG</Format></Image>


Hope this helps.
RE: HELP - Window Button Icons! by whiz on 02-20-2009 at 07:50 PM

Works great, thanks!