Window example from Scripting Doc and questions |
Author: |
Message: |
Aloshi
New Member
Posts: 12
– / / –
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 |
|
|
pollolibredegrasa
Full Member
formerly fatfreechicken
Posts: 483 Reputation: 34
35 / /
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
Vaccy is my thin twin!
|
|
06-25-2006 11:17 PM |
|
|
Aloshi
New Member
Posts: 12
– / / –
Joined: Jun 2006
|
O.P. RE: Window example from Scripting Doc and questions
It works!
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 |
|
|
matty
Scripting Guru
Posts: 8336 Reputation: 109
39 / /
Joined: Dec 2002
Status: Away
|
RE: Window example from Scripting Doc and questions
|
|
06-26-2006 03:20 AM |
|
|
ivan300
Junior Member
Posts: 51
36 / / –
Joined: Oct 2003
|
RE: Window example from Scripting Doc and questions
try
Messenger.OpenChat(email)
|
|
06-26-2006 03:20 AM |
|
|
Aloshi
New Member
Posts: 12
– / / –
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 |
|
|
matty
Scripting Guru
Posts: 8336 Reputation: 109
39 / /
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 |
|
|
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 |
|
|
Aloshi
New Member
Posts: 12
– / / –
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 |
|
|
Aloshi
New Member
Posts: 12
– / / –
Joined: Jun 2006
|
O.P. RE: Window example from Scripting Doc and questions
Alright (Sorry for double post ), 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 |
|
|
Pages: (2):
« First
[ 1 ]
2
»
Last »
|
|