What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Window example from Scripting Doc and questions

Pages: (2): « First [ 1 ] 2 » Last »
Window example from Scripting Doc and questions
Author: Message:
Aloshi
New Member
*

Avatar

Posts: 12
– / Male / –
Joined: Jun 2006
O.P. Window example from Scripting Doc and questions
I've been at this for an hour and a half or so and have followed the Scripting Documentation to the letter. Looking in the section Working with scripts->Windows for your scripts it isn't working. I checked the debug window and no errors. The code in the script is this:
function OnEvent_Initialize(MessengerStart)
{
var Wnd = MsgPlus.CreateWnd("InterfaceTest.xml", "WndTest");
}
function OnEvent_Uninitialize(MessengerExit)
{
}

And I made the file InterfaceTest.xml (Which is really a .txt file...) with the exact copy/pasted code in it (Its a bit large so I wont post it...). I have also tried making a copy of another XML file, editing what it said, and using it instead. I have no idea what to try now. Any help would be appreaciated.

EDIT: It works, but now I have another question XD. Can someone just give me an example of a working OpenChat command? I have been trying to simply open a chat for a long time...>.>

This post was edited on 06-26-2006 at 02:30 AM by Aloshi.
06-25-2006 11:13 PM
Profile PM Web Find Quote Report
pollolibredegrasa
Full Member
***

Avatar
formerly fatfreechicken

Posts: 483
Reputation: 34
35 / Male / Flag
Joined: May 2005
RE: Window example from Scripting Doc not working
Try saving the xml file in Unicode if you aren't already. Read this thread for more info ;)

Hope this helps...
;p

[Image: chickennana.gif] Vaccy is my thin twin! [Image: chickennana.gif]
06-25-2006 11:17 PM
Profile PM Find Quote Report
Aloshi
New Member
*

Avatar

Posts: 12
– / Male / –
Joined: Jun 2006
O.P. RE: Window example from Scripting Doc and questions
It works! :D

Err, now I have a question XD. Can someone just give me an example of a working OpenChat command? I have been trying to simply open a chat for a long time...>.>

This post was edited on 06-26-2006 at 02:38 AM by Aloshi.
06-26-2006 02:38 AM
Profile PM Web Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Window example from Scripting Doc and questions
Matty's reply to Notification Toast Problem
06-26-2006 03:20 AM
Profile E-Mail PM Find Quote Report
ivan300
Junior Member
**


Posts: 51
36 / Male / –
Joined: Oct 2003
RE: Window example from Scripting Doc and questions
try
Messenger.OpenChat(email) ;)
06-26-2006 03:20 AM
Profile E-Mail PM Find Quote Report
Aloshi
New Member
*

Avatar

Posts: 12
– / Male / –
Joined: Jun 2006
O.P. RE: Window example from Scripting Doc and questions
Doesn't work...Heres what I have (The email is just an example):
function OnEvent_Initialize(MessengerStart)
{
Messenger.OpenChat(smarterchild@hotmail.com);
}

function OnEvent_Uninitialize(MessengerExit)
{
}
06-26-2006 02:22 PM
Profile PM Web Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Window example from Scripting Doc and questions
quote:
Originally posted by Aloshi
Doesn't work...Heres what I have (The email is just an example):
function OnEvent_Initialize(MessengerStart)
{
Messenger.OpenChat(smarterchild@hotmail.com);
}

function OnEvent_Uninitialize(MessengerExit)
{
}
You need to put the address in quotes if you are specifying the address

code:
    function OnEvent_Initialize(MessengerStart) {
        Messenger.OpenChat('smarterchild@hotmail.com');
    }
06-26-2006 02:25 PM
Profile E-Mail PM Find Quote Report
Yomeh
New Member
*


Posts: 5
Joined: Jun 2006
RE: Window example from Scripting Doc and questions
code:
function OnEvent_Initialize(MessengerStart)
{
var contact = "xxx@hotmail.com"
Messenger.OpenChat(contact);
}


that works for me
06-26-2006 02:28 PM
Profile E-Mail PM Find Quote Report
Aloshi
New Member
*

Avatar

Posts: 12
– / Male / –
Joined: Jun 2006
O.P. RE: Window example from Scripting Doc and questions
Works. I think it was because it wasnt running the script when I saved (I unchecked dit and couldnt recheck, so I made a new script)...I had tried some of the other suggestions before too. Now I'm trying to get the SendMessage command to work...

This post was edited on 06-26-2006 at 06:03 PM by Aloshi.
06-26-2006 02:59 PM
Profile PM Web Find Quote Report
Aloshi
New Member
*

Avatar

Posts: 12
– / Male / –
Joined: Jun 2006
O.P. RE: Window example from Scripting Doc and questions
Alright (Sorry for double post :S), I am using this code:
code:
function OnEvent_Initialize(MessengerStart)
{
var Wnd = MsgPlus.CreateWnd("InterfaceTest.xml", "WndTest");
}

function OnEvent_Uninitialize(MessengerExit)
{
}
function OnWndTestEvent_CtrlClicked(Wnd, ControlId)
{
if(ControlId == "BtnClose")
Wnd.Close(1);
var contact = "Email@email.com"
Messenger.OpenChat(contact);
ChatWnd.SendMessage("Test");
}
But it's not sending a message...The gui pops up, I hit the button, it brings up a chat, but no message is sent.

This post was edited on 06-26-2006 at 06:23 PM by Aloshi.
06-26-2006 06:21 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