What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Download file

Download file
Author: Message:
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: Download file
If you know that your image is static and will never change, you're better off with adding it to your script package rather than having to download it over and over again.

  1. Copy your image to your script's Images directory. If the Images folder doesn't exist yet, create it. E.g.:
    quote:
    C:\Program Files\Messenger Plus! Live\Scripts\My Script\Images
  2. In your Windows XML, place the following in the <Elements> block of your window:
    code:
    <Element xsi:type="ImageElement" Id="ImgThing">
       <Position Left="5" Top="5" Width="50" Height="50">
          <Units>SizePixels</Units> <!-- This makes that you can set the width and height in pixels. You can also change this to AllPixels so everything is in pixels -->
       </Position>
       <Image>
          <Name>Image001</Name> <!-- The file name of the image, without extension. In this case, Plus! will look for "Image001.png" in the Images folder. -->
       </Image>
    </Element>
  3. Open your window and see if it turns out right. :) You can change the image of the element using PlusWnd::ImageElmt_SetImageFile, as described in markee's reply to Download file.

/me looks at last post...
Crap, it isn't static at all. :P Blah.

To resize a window:
code:
var Result = Interop.Call("user32.dll", "SetWindowPos", PlusWnd.Handle, 0, 0, 0, Width, Height, 18);
where:
  • PlusWnd = a PlusWnd object
  • Width = a number specifying the new width
  • Height = a number specifying the new height
The return value "Result" will be zero (0) if the function fails, else it'll be non-zero (1).

This post was edited on 11-01-2007 at 09:13 AM by Matti.
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
11-01-2007 08:38 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Download file - by SnuZZer on 10-31-2007 at 06:54 PM
RE: Download file - by Dempsey on 10-31-2007 at 06:57 PM
RE: Download file - by SnuZZer on 10-31-2007 at 07:01 PM
RE: Download file - by markee on 10-31-2007 at 11:04 PM
RE: Download file - by SnuZZer on 11-01-2007 at 05:46 AM
RE: Download file - by Matti on 11-01-2007 at 08:38 AM
RE: Download file - by SnuZZer on 11-01-2007 at 01:36 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On