What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » My own msg with SendMessage

My own msg with SendMessage
Author: Message:
felipEx
Scripting Contest Winner
***


Posts: 378
Reputation: 24
35 / Male / Flag
Joined: Jun 2006
RE: RE: My own msg with SendMessage
quote:
Originally posted by SuNcO
code:
function OnEvent_ChatWndSendMessage(ChatWnd, sMessage) {
  // check if it is an encoded msg
  if (Mid(sMessage,0,1) != "¬") {
    // check if this contact have a pass setted
    for (i = 0; i < hwnds.length; i ++) {
      if (hwnds[i] == ChatWnd.Handle) {
        ChatWnd.SendMessage("¬" + secureEncrypt(claves[i],sMessage));
        //return "";
      }
    }
  } else {
    // is an encoded msg.. so not encode again, just send it
    return sMessage;
  }
}


Off course, need a lot of work, is just a start
i don't know if you really need the loop ;D
i wonder what the Mid function does, try out with  sMessage.substr(0, 1)

code:
ChatWnd.SendMessage("¬" + secureEncrypt(claves[i],sMessage));
return "";

Please, come to the [Image: favicon.ico] Spanish Forum

:)

This post was edited on 12-05-2007 at 07:15 AM by felipEx.
12-05-2007 07:09 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
My own msg with SendMessage - by SuNcO on 12-05-2007 at 05:31 AM
RE: My own msg with SendMessage - by NiteMare on 12-05-2007 at 06:18 AM
RE: My own msg with SendMessage - by SuNcO on 12-05-2007 at 06:24 AM
RE: RE: My own msg with SendMessage - by Deco on 12-05-2007 at 12:38 PM
RE: RE: My own msg with SendMessage - by felipEx on 12-05-2007 at 07:09 AM
RE: My own msg with SendMessage - by SuNcO on 12-05-2007 at 07:21 AM
RE: My own msg with SendMessage - by Deco on 12-05-2007 at 10:15 AM
RE: My own msg with SendMessage - by SuNcO on 12-05-2007 at 04:21 PM
RE: My own msg with SendMessage - by Spunky on 12-05-2007 at 08:12 PM
RE: RE: My own msg with SendMessage - by vikke on 12-05-2007 at 08:26 PM


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