Shoutbox

Wont send a message - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: Wont send a message (/showthread.php?tid=62842)

Wont send a message by Ruwen on 07-08-2006 at 08:48 PM

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?");


RE: Wont send a message by foaly on 07-08-2006 at 08:53 PM

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?");
}

RE: Wont send a message by Ruwen on 07-08-2006 at 09:17 PM

How do i set it to a new line?
like
"Okay name.. Personlig Besked er nu blevet ændret!

ER DU SÅ TILFREDS?"


RE: Wont send a message by foaly on 07-08-2006 at 09:55 PM

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?");
}



RE: Wont send a message by Ezra on 07-08-2006 at 09:57 PM

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?");
}


RE: Wont send a message by Ruwen on 07-09-2006 at 07:21 AM

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 + "

RE: Wont send a message by Dhaya on 07-09-2006 at 07:24 AM

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?");
}


RE: Wont send a message by Ruwen on 07-09-2006 at 07:40 PM

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

RE: Wont send a message by ddunk on 07-09-2006 at 07:45 PM

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.

RE: Wont send a message by Ruwen on 07-09-2006 at 08:41 PM

ok.. it works now