Wont send a message |
Author: |
Message: |
Ruwen
Junior Member
![*](images/star.gif) ![*](images/star.gif)
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 |
|
![](images/pixel.gif) |
foaly
Senior Member
![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif)
![Avatar](images/avatars/removed/dimensions.png)
Posts: 718 Reputation: 20
38 / / ![The Netherlands Flag](images/flags/nl.png)
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 |
|
![](images/pixel.gif) |
Ruwen
Junior Member
![*](images/star.gif) ![*](images/star.gif)
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 |
|
![](images/pixel.gif) |
foaly
Senior Member
![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif)
![Avatar](images/avatars/removed/dimensions.png)
Posts: 718 Reputation: 20
38 / / ![The Netherlands Flag](images/flags/nl.png)
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 |
|
![](images/pixel.gif) |
Ezra
Veteran Member
![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif)
![Avatar](http://tsdme.nl/yass/image/1-1.png)
Forgiveness is between them and God
Posts: 1960 Reputation: 31
37 / / ![The Netherlands Flag](images/flags/nl.png)
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.
|
|
07-08-2006 09:57 PM |
|
![](images/pixel.gif) |
Ruwen
Junior Member
![*](images/star.gif) ![*](images/star.gif)
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 ![:(](images/smilies/msn_sad.gif) The script will not be loaded if i put in " + \n\n + "
|
|
07-09-2006 07:21 AM |
|
![](images/pixel.gif) |
Dhaya
Junior Member
![*](images/star.gif) ![*](images/star.gif)
![Avatar](http://dhaya.free.fr/avatars/azumanga_daioh03.gif)
lala~
Posts: 25 Reputation: 4
38 / / –
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 |
|
![](images/pixel.gif) |
Ruwen
Junior Member
![*](images/star.gif) ![*](images/star.gif)
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.. ![:(](images/smilies/msn_sad.gif) It make my script stop
|
|
07-09-2006 07:40 PM |
|
![](images/pixel.gif) |
ddunk
Veteran Member
![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif)
![Avatar](http://s2.ytimg.com/vi/yBOPCOkZUVM/default.jpg)
Posts: 1228 Reputation: 51
35 / / ![United States Flag](images/flags/us.png)
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](images/smilies/msn_grin.gif) .
|
|
07-09-2006 07:45 PM |
|
![](images/pixel.gif) |
Ruwen
Junior Member
![*](images/star.gif) ![*](images/star.gif)
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 |
|
![](images/pixel.gif) |
|