What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Wont send a message

Wont send a message
Author: Message:
Ruwen
Junior Member
**


Posts: 18
Joined: Jul 2006
O.P. Wont send a message
Why wont my script not send a message to the person im speaking with?

Messenger.SendMessage("Okay " + MsgPlus.RemoveFormatCodes(naam) + "..  Personlig Besked er nu blevet ændret! ER DU SÅ TILFRES?");
07-08-2006 08:48 PM
Profile E-Mail PM Find Quote Report
foaly
Senior Member
****

Avatar

Posts: 718
Reputation: 20
38 / Male / Flag
Joined: Jul 2006
RE: Wont send a message
ehm... isn't sendmessage a chatwindow object?

so it should be something like:

[code]
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, Kind)
{
  ChatWnd.SendMessage("Okay " + MsgPlus.RemoveFormatCodes(Origin) + "..  Personlig Besked er nu blevet ændret! ER DU SÅ TILFRES?");
}
07-08-2006 08:53 PM
Profile E-Mail PM Find Quote Report
Ruwen
Junior Member
**


Posts: 18
Joined: Jul 2006
O.P. RE: Wont send a message
How do i set it to a new line?
like
"Okay name.. Personlig Besked er nu blevet ændret!

ER DU SÅ TILFREDS?"
07-08-2006 09:17 PM
Profile E-Mail PM Find Quote Report
foaly
Senior Member
****

Avatar

Posts: 718
Reputation: 20
38 / Male / Flag
Joined: Jul 2006
RE: Wont send a message
just send a new message i guess....
[code]
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, Kind)
{
  ChatWnd.SendMessage("Okay " + MsgPlus.RemoveFormatCodes(Origin) + "..  Personlig Besked er nu blevet ændret!");
ChatWnd.SendMessage("ER DU SÅ TILFRES?");
}

07-08-2006 09:55 PM
Profile E-Mail PM Find Quote Report
Ezra
Veteran Member
*****

Avatar
Forgiveness is between them and God

Posts: 1960
Reputation: 31
37 / Male / Flag
Joined: Mar 2003
RE: Wont send a message
no, don't send a new message, that will also write another "%user% says:", just use "\n"

code:
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, Kind)
{
  ChatWnd.SendMessage("Okay " + MsgPlus.RemoveFormatCodes(Origin) + "..  Personlig Besked er nu blevet ændret!" + \n\n + "ER DU SÅ TILFRES?");
}


This post was edited on 07-08-2006 at 09:59 PM by Ezra.
[Image: 1-0.png]
             
07-08-2006 09:57 PM
Profile PM Web Find Quote Report
Ruwen
Junior Member
**


Posts: 18
Joined: Jul 2006
O.P. RE: Wont send a message
quote:
Originally posted by Ezra
no, don't send a new message, that will also write another "%user% says:", just use "\n"

code:
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, Kind)
{
  ChatWnd.SendMessage("Okay " + MsgPlus.RemoveFormatCodes(Origin) + "..  Personlig Besked er nu blevet ændret!" + \n\n + "ER DU SÅ TILFRES?");
}



It doesnt work :( The script will not be loaded if i put in " + \n\n + "
07-09-2006 07:21 AM
Profile E-Mail PM Find Quote Report
Dhaya
Junior Member
**

Avatar
lala~

Posts: 25
Reputation: 4
38 / Male / –
Joined: Jul 2006
RE: Wont send a message
the \n\n must be placed in the quotes like this :

code:
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, Kind)
{
  ChatWnd.SendMessage("Okay " + MsgPlus.RemoveFormatCodes(Origin) + "..  Personlig Besked er nu blevet ændret!\n\nER DU SÅ TILFRES?");
}

Godamn JScript ! I HATE you ! ... but I love you so much <3
07-09-2006 07:24 AM
Profile PM Find Quote Report
Ruwen
Junior Member
**


Posts: 18
Joined: Jul 2006
O.P. RE: Wont send a message
quote:
Originally posted by Ruwen
quote:
Originally posted by Ezra
no, don't send a new message, that will also write another "%user% says:", just use "\n"

code:
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, Kind)
{
  ChatWnd.SendMessage("Okay " + MsgPlus.RemoveFormatCodes(Origin) + "..  Personlig Besked er nu blevet ændret!" + \n\n + "ER DU SÅ TILFRES?");
}



It doesnt work :( The script will not be loaded if i put in " + \n\n + "

It still dont work.. :( It make my script stop
07-09-2006 07:40 PM
Profile E-Mail PM Find Quote Report
ddunk
Veteran Member
*****

Avatar

Posts: 1228
Reputation: 51
35 / Male / Flag
Joined: Mar 2004
RE: Wont send a message
quote:
Originally posted by Ruwen
It still dont work.. :( It make my script stop
quote:
Originally posted by Dhaya
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, Kind)
{
  ChatWnd.SendMessage("Okay " + MsgPlus.RemoveFormatCodes(Origin) + "..  Personlig Besked er nu blevet ændret!\n\nER DU SÅ TILFRES?");
}
Works fine, except for the fact that it doesn't check the origin so your own messages trigger it and sends it into a flood :D.
07-09-2006 07:45 PM
Profile E-Mail PM Web Find Quote Report
Ruwen
Junior Member
**


Posts: 18
Joined: Jul 2006
O.P. RE: Wont send a message
ok.. it works now

This post was edited on 07-09-2006 at 09:05 PM by Ruwen.
07-09-2006 08:41 PM
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