what is wrong? - 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: what is wrong? (/showthread.php?tid=77172) what is wrong? by 89rafa on 09-01-2007 at 11:03 PM
function OnEvent_MyPsmChange(NewPsm) RE: what is wrong? by foaly on 09-01-2007 at 11:05 PM
well it doesn't know where to send the message to... code:but you have to define that ChatWindow first... RE: what is wrong? by 89rafa on 09-01-2007 at 11:08 PM
and how we do that.. i'm noob in javascript RE: what is wrong? by Stigmata on 09-01-2007 at 11:10 PM
you haven't defined a chat window to send the message from. code: That will send the /me message to every open conversation you have. Hope that is what you want PS: you can also make it display your new psm by including it in the /me message like this code: RE: what is wrong? by 89rafa on 09-01-2007 at 11:14 PM
can you explain me the RE: what is wrong? by Stigmata on 09-01-2007 at 11:21 PM
code:The Messenger.CurrentChats is a list of chat windows already open. code:Here we enumerate the list so we can sort the chat windows individually. code:This is a start of a "for loop". Using the enumeration we did in the line before we go through each chat window object. Here is some more information on loops in javascript: http://www.w3schools.com/js/js_loop_for.asp code:Here we define the current enumerated chat window as ChatWindow so it is easier to handle RE: what is wrong? by 89rafa on 09-01-2007 at 11:28 PM
i think i get it now, RE: what is wrong? by Stigmata on 09-01-2007 at 11:35 PM
Here is a good place to start RE: what is wrong? by 89rafa on 09-01-2007 at 11:36 PM i already had that link. . but my english is kind of poor... but i'll try RE: what is wrong? by Stigmata on 09-01-2007 at 11:37 PM Well which language do you speak? RE: what is wrong? by 89rafa on 09-01-2007 at 11:42 PM
portuguese... and a little bit of spanish... RE: what is wrong? by Stigmata on 09-01-2007 at 11:55 PM
Perhaps a google search will help you RE: what is wrong? by 89rafa on 09-02-2007 at 04:40 PM
thanks... RE: what is wrong? by matty on 09-02-2007 at 04:47 PM
After the line ChatWnd.SendMessage(text); code: RE: RE: what is wrong? by 89rafa on 09-02-2007 at 04:50 PM
quote: can you explain what that does? i'm a begginer... RE: what is wrong? by effection on 09-02-2007 at 05:10 PM it means the function returns no message(an empty string) so it wont be displayed or try to be used as a command RE: what is wrong? by ShawnZ on 09-02-2007 at 05:13 PM
quote: it returns the text "" (an empty string) to whatever called it, as a result. plus! needs you to return something, otherwise it assumes that the command doesn't exist RE: what is wrong? by 89rafa on 09-02-2007 at 05:17 PM
ok. thanks. RE: what is wrong? by matty on 09-02-2007 at 05:23 PM
quote:Correction, Plus! requires you to return something to the function or else it will try and parse the command. And because the command doesn't exist you receive the error. |