What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » A simple question about scripts^^

Pages: (2): « First [ 1 ] 2 » Last »
A simple question about scripts^^
Author: Message:
Light86
Junior Member
**


Posts: 17
Joined: Apr 2007
O.P. A simple question about scripts^^
Hi 1'm new in script developement and 1 made a script which can make appear a message in a toast when the user logs in...pretty simple 1 know:)
But 1 though...is it possible to make an image appear in the toast too?Or,even better,make it appear for a couple of sec in the middle of the screen?
1 want to make a present for a nice girl..so help me please^^
Thx anyways!
04-24-2007 08:56 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: A simple question about scripts^^
You could technically move the toast but you would need to find it using the Windows API

As far as showing an image not possible.
04-24-2007 10:08 PM
Profile E-Mail PM Find Quote Report
deAd
Scripting Contest Winner
*****

Avatar

Posts: 1060
Reputation: 28
– / Male / Flag
Joined: Jan 2006
RE: A simple question about scripts^^
Instead you'll probably want to create a custom window..
04-24-2007 10:13 PM
Profile PM Find Quote Report
Light86
Junior Member
**


Posts: 17
Joined: Apr 2007
O.P. RE: A simple question about scripts^^
Mmm...and how could 1 make it?
04-25-2007 10:44 AM
Profile E-Mail PM Find Quote Report
Supersonicdarky
Veteran Member
*****

Avatar

Posts: 2317
Reputation: 48
– / – / Flag
Joined: Feb 2005
Status: Away
RE: A simple question about scripts^^
code:
function OnEvent_Signin(Email) {
WindowName = MsgPlus.CreateWnd("FileName.xml", "WindowName");
}

then all you have to do is create a window
04-25-2007 11:16 AM
Profile E-Mail PM Find Quote Report
Light86
Junior Member
**


Posts: 17
Joined: Apr 2007
O.P. RE: A simple question about scripts^^
Thx much but...how to create the window?xD
Is there a tutorial?
04-25-2007 11:58 AM
Profile E-Mail PM Find Quote Report
Volv
Skinning Contest Winner
*****

Avatar

Posts: 1233
Reputation: 31
35 / Male / Flag
Joined: Oct 2004
RE: A simple question about scripts^^
quote:
Originally posted by Light86
Thx much but...how to create the window?xD
Is there a tutorial?
Scripting Documentation - Windows for your Script

This post was edited on 04-25-2007 at 12:31 PM by Volv.
04-25-2007 12:31 PM
Profile PM Find Quote Report
Light86
Junior Member
**


Posts: 17
Joined: Apr 2007
O.P. RE: A simple question about scripts^^
It doesn't work:(
1 created a script called "text window",1 put the file "interface.xml" in this script's folder but still no window appears...wht 1 do wrong?
Could someone post me the istructions?
04-25-2007 02:13 PM
Profile E-Mail PM Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: A simple question about scripts^^
Did you make another xml file with the code for the window? If not you need to look at the documentation for an example. If you have, make sure the file is saved as UNICODE-16...
<Eljay> "Problems encountered: shit blew up" :zippy:
04-26-2007 02:26 PM
Profile PM Find Quote Report
Light86
Junior Member
**


Posts: 17
Joined: Apr 2007
O.P. RE: A simple question about scripts^^
This is the interface's code(1 tried to save it as Unicode and Big Endian Unicode but nothing),1 save it as .xml.

code:
<Interfaces xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

        <Window Id="WndTest" Version="1">
            <Attributes>
                <Caption>Test Window</Caption>
            </Attributes>

            <TitleBar>
                <Title><Text>Hello!</Text></Title>
            </TitleBar>

            <Position Width="180" Height="75"/>
            <DialogTmpl/>

            <Controls>
                <Control xsi:type="StaticControl" Id="LblTop">
                    <Position Left="10" Top="10" Width="150"/>
                    <Caption>Hello world!</Caption>
                </Control>

                <Control xsi:type="ButtonControl" Id="BtnClose">
                    <Position Left="112" Top="25" Width="50"/>
                    <Caption>Close</Caption>
                </Control>
            </Controls>
        </Window>

    </Interfaces>

And this is the script:

code:
function OnEvent_Initialize(MessengerStart)
{
}

function OnEvent_Uninitialize(MessengerExit)
{
}

function OnEvent_Signin(Email) {
WindowName = MsgPlus.CreateWnd("InterfaceTest.xml", "WindowName");
}

Both are in the folder "WindowTest",the script is on,and when 1 access to msn,a window should be displayed..but nothing :@

Did 1 make some errors in the code?Please helpT_T
04-26-2007 03:06 PM
Profile E-Mail PM 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