What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [?] Interface Windows - Custom Look

Pages: (2): « First « 1 [ 2 ] Last »
[?] Interface Windows - Custom Look
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: [?] Interface Windows - Custom Look
Post the entire function where you are creating the window and trying to change the element.
08-20-2007 02:47 PM
Profile E-Mail PM Find Quote Report
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
29 / Male / Flag
Joined: Nov 2006
Status: Away
O.P. RE: [?] Interface Windows - Custom Look
quote:
Originally posted by matty
Post the entire function where you are creating the window and trying to change the element.
code:
function set(){
var Wnd = MsgPlus.CreateWnd("windows.xml","test");
Wnd.ImageElmt_SetImageFile("testImg","crazyman");
}

testImg is defined
[quote]
Ultimatess6
: What a noob mod
08-20-2007 02:49 PM
Profile PM Web Find Quote Report
mynetx
Skinning Contest Winner
*****

Avatar
Microsoft insider

Posts: 1175
Reputation: 33
36 / Male / Flag
Joined: Jul 2007
RE: [?] Interface Windows - Custom Look
then there is no XML Image Element using the ID "BtnImg1". Pay attention as XML is case-sensitive.
mynetx - Microsoft, enhanced.

You have a problem or issue with Windows, Internet
Explorer or Office?
Send a tweet!
08-20-2007 02:55 PM
Profile E-Mail PM Web Find Quote Report
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
29 / Male / Flag
Joined: Nov 2006
Status: Away
O.P. RE: [?] Interface Windows - Custom Look
quote:
Originally posted by mynetx
Pay attention as XML is case-sensitive.
* roflmao456 knows that.

do i have to instead put the button's ID instead of the image element id?

damn i spilled brisk on my keyboard

This post was edited on 08-20-2007 at 05:19 PM by roflmao456.
[quote]
Ultimatess6
: What a noob mod
08-20-2007 05:18 PM
Profile PM Web Find Quote Report
mynetx
Skinning Contest Winner
*****

Avatar
Microsoft insider

Posts: 1175
Reputation: 33
36 / Male / Flag
Joined: Jul 2007
RE: [?] Interface Windows - Custom Look
Syntax
ImageElmt_SetImageFile(
    [string] ElementId,
    [string] File
);

Parameters
ElementId
[string] Unique identifier of the element.
File
[string] Path to the image's file to use. It can be a PNG, a JPG, a GIF or a BMP file. The path is relative to the script's "Images" sub-directory by default, to override this behavior, prefix the path with "\". Example: "\C:\directory\picture.png".


IMHO, strings must always be noted within " "  or ' '. Or am I wrong?! :P
mynetx - Microsoft, enhanced.

You have a problem or issue with Windows, Internet
Explorer or Office?
Send a tweet!
08-21-2007 09:40 AM
Profile E-Mail PM Web Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
35 / Male / Flag
Joined: Aug 2006
RE: [?] Interface Windows - Custom Look
quote:
Originally posted by roflmao456
code:

function set(){
var Wnd = MsgPlus.CreateWnd("windows.xml","test");
Wnd.ImageElmt_SetImageFile("testImg","crazyman");
}

testImg is defined

testImg is defined as a variable? If thats what you mean, why are you using quotes? Or do you mean defined in the XML?

I think I actually tried to do what your doing with part of the interface for the tic-tac-toe script we made, but I don't think it was possible to change it via code
<Eljay> "Problems encountered: shit blew up" :zippy:
08-21-2007 01:58 PM
Profile PM Find Quote Report
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
29 / Male / Flag
Joined: Nov 2006
Status: Away
O.P. RE: [?] Interface Windows - Custom Look
quote:
Originally posted by mynetx
IMHO, strings must always be noted within " "  or ' '. Or am I wrong?!

both. but they could contain each other =\

"lool 'this is in single quote'"
'lool "this is in double quote"'

but i prefer "" :P


oops didn't read post correctly :(

yep.

quote:
Originally posted by SpunkyLoveMuff
Or do you mean defined in the XML?
yeah :)

This post was edited on 08-21-2007 at 02:05 PM by roflmao456.
[quote]
Ultimatess6
: What a noob mod
08-21-2007 02:04 PM
Profile PM Web Find Quote Report
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
31 / Male / Flag
Joined: Apr 2004
RE: [?] Interface Windows - Custom Look
code:
Wnd.ImageElmt_SetImageFile("testImg","crazyman");
Shouldn't it be something like:
code:
Wnd.ImageElmt_SetImageFile("testImg","crazyman.png");
However I doubt this whole thing can work, since I don't know if you can set an ImageElement which is part of a CustomLook structure... :-\
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
08-21-2007 04:37 PM
Profile E-Mail PM Web Find Quote Report
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
29 / Male / Flag
Joined: Nov 2006
Status: Away
O.P. RE: [?] Interface Windows - Custom Look
quote:
Originally posted by Mattike
code:
Wnd.ImageElmt_SetImageFile("testImg","crazyman");
Shouldn't it be something like:
code:
Wnd.ImageElmt_SetImageFile("testImg","crazyman.png");
However I doubt this whole thing can work, since I don't know if you can set an ImageElement which is part of a CustomLook structure... :-\
i tried that too :P
doesn't work, it's ok if this imageelement thing doesn't work, i will just try something else =\
[quote]
Ultimatess6
: What a noob mod
08-21-2007 04:44 PM
Profile PM Web Find Quote Report
Pages: (2): « First « 1 [ 2 ] Last »
« Next Oldest Return to Top Next Newest »


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