What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » why won't this work?

why won't this work?
Author: Message:
Shondoit
Full Member
***

Avatar
Hmm, Just Me...

Posts: 227
Reputation: 15
36 / Male / Flag
Joined: Jul 2006
RE: why won't this work?
It would work but you can only have one function with a specified name, so you have to put all options together, like this:
code:
function OnEvent_ChatWndSendMessage(ChatWnd, Message){
   if (Message.substr(0, 6) == "bye"){
      return'/signout'
   }else if (Message.substr(0, 6) == "away"){
      return'/away'
   } else if (Message.substr(0, 6) == "back"){
      return '/online'
   }
}

Edit: Beaten by Felu

This post was edited on 10-19-2006 at 04:26 PM by Shondoit.
My scripts:                            [Image: shondoit.gif]
+ Timezone
+ Camelo
+ Multisearch
10-19-2006 04:26 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
why won't this work? - by Jimbo on 10-19-2006 at 04:22 PM
RE: why won't this work? - by markee on 10-19-2006 at 04:25 PM
RE: why won't this work? - by Felu on 10-19-2006 at 04:25 PM
RE: why won't this work? - by Shondoit on 10-19-2006 at 04:26 PM
RE: why won't this work? - by Jimbo on 10-19-2006 at 04:27 PM
RE: why won't this work? - by Felu on 10-19-2006 at 04:28 PM
RE: why won't this work? - by Jimbo on 10-19-2006 at 04:31 PM
RE: why won't this work? - by Ezra on 10-19-2006 at 04:43 PM
RE: why won't this work? - by Jimbo on 10-19-2006 at 04:44 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