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

Need some help.
Author: Message:
Bleet
New Member
*


Posts: 4
Joined: Aug 2006
O.P. Need some help.
Well, I was just playing around some and couldn't get my damn script to work.
What I tried was:
function OnEvent_ChatWndCreated(ChatWnd, Message)
{
var h = hey;
ChatWnd.SendMessage("", h);
}
Since I don't get any compilation errors I can't really figure out the problem. If anyone sees it, please help me. =)

Ooh, I also wonder what the variable for the text someone is sending is on event OnEvent_ChatWndReceiveMessage. (I think it's just something like if (Text == ****), but hell. Since I'm asking I might as well ask everything on my mind. Aah and does C/C++ stuff work? Like || && ! (OR AND NOT)

Thanks for any help I can get. :P

This post was edited on 08-12-2006 at 08:25 AM by Bleet.
08-12-2006 08:16 AM
Profile E-Mail PM Find Quote Report
Silentdragon
Full Member
***

Avatar
if(life==null && wrists) EmoAlert();

Posts: 148
Reputation: 2
34 / Male / –
Joined: Jun 2006
RE: Need some help.
1. SendMessage only accepts one parameter eg ChatWnd.SendMessage(h); or ChatWnd.SendMessage("Stuff"+h);

2. var h = hey; is wrong var h = "hey"; is right. Strings need to be in quotes

3. OnEvent_ChatWndReceiveMessage(ChatWnd,Origin,Message,Type)

4. Yes you can use C/C++ style equality checking.
08-12-2006 08:32 AM
Profile E-Mail PM Web Find Quote Report
Eljay
Elite Member
*****

Avatar
:O

Posts: 2949
Reputation: 77
– / Male / –
Joined: May 2004
RE: Need some help.
quote:
Originally posted by Bleet
Well, I was just playing around some and couldn't get my damn script to work.
What I tried was:
function OnEvent_ChatWndCreated(ChatWnd, Message)
{
var h = hey;
ChatWnd.SendMessage("", h);
}
Since I don't get any compilation errors I can't really figure out the problem. If anyone sees it, please help me. =)

code:
function OnEvent_ChatWndCreated(ChatWnd, Message){
  ChatWnd.SendMessage("hey");
}

quote:
Originally posted by Bleet
Ooh, I also wonder what the variable for the text someone is sending is on event OnEvent_ChatWndReceiveMessage. (I think it's just something like if (Text == ****), but hell.

code:
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind){
  if(Message == 'whatever'){
    //do something
  }
}

quote:
Originally posted by Bleet
Aah and does C/C++ stuff work? Like || && ! (OR AND NOT)

the actual operators work (||, &&, !) but the "text versions" dont (OR, AND, NOT)

edit: ok im a bit slow :sad: :P

This post was edited on 08-12-2006 at 08:36 AM by Eljay.
08-12-2006 08:36 AM
Profile PM Find Quote Report
Bleet
New Member
*


Posts: 4
Joined: Aug 2006
O.P. RE: Need some help.
function OnEvent_ChatWndCreated(ChatWnd, Message){
  ChatWnd.SendMessage("hey");
}
Doesn't work.. Well, it's supposed to say hey when I open a chat window, right?

This post was edited on 08-12-2006 at 08:41 AM by Bleet.
08-12-2006 08:36 AM
Profile E-Mail PM Find Quote Report
markee
Veteran Member
*****

Avatar

Posts: 1621
Reputation: 50
35 / Male / Flag
Joined: Jan 2006
RE: Need some help.
You should just have
code:
function OnEvent_ChatWndCreated(ChatWnd){
  ChatWnd.SendMessage("hey");
}
This is because there is no message variable on the creation of the window.
[Image: markee.png]
08-12-2006 08:51 AM
Profile PM Find Quote Report
Bleet
New Member
*


Posts: 4
Joined: Aug 2006
O.P. RE: Need some help.
function OnEvent_ChatWndCreated(ChatWnd, Message){
var hey = "hey";
  ChatWnd.SendMessage(hey);
}
I tried that too and that didn't work. (I'm not sure if this is what you mean by messafe variable though.
08-12-2006 08:58 AM
Profile E-Mail PM Find Quote Report
Eljay
Elite Member
*****

Avatar
:O

Posts: 2949
Reputation: 77
– / Male / –
Joined: May 2004
RE: Need some help.
quote:
Originally posted by Bleet
function OnEvent_ChatWndCreated(ChatWnd, Message){
var hey = "hey";
  ChatWnd.SendMessage(hey);
}
I tried that too and that didn't work. (I'm not sure if this is what you mean by messafe variable though.

he meant the message parameter in the function
quote:
Originally posted by Bleet
function OnEvent_ChatWndCreated(ChatWnd, Message){
08-12-2006 09:00 AM
Profile PM Find Quote Report
Bleet
New Member
*


Posts: 4
Joined: Aug 2006
O.P. RE: Need some help.
Aha, okay. It works now, so thanks =)
08-12-2006 09:05 AM
Profile E-Mail PM Find Quote Report
« 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