What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Calculator to friends

Calculator to friends
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Calculator to friends
Seriously it isn't hard to do if you take the time to learn.

You have the following:

Javascript code:
function OnEvent_ChatWndReceiveMessage(pChatWnd, sOrigin, nMessage, nMessageKind) {
 
}


You can check if the command is !calc by doing something like this:
Javascript code:
if (nMessage.indexOf('!calc') === 0) {
    /* the above if statement checks if the beginning of the message
        is !calc.
    */

}


To get the equation you can do something like this:
Javascript code:
nMessage.substr(6);


Then research how to use eval() or figure out how the script does it.

This post was edited on 12-22-2008 at 03:18 PM by matty.
12-18-2008 08:21 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Calculator to friends - by mrfireman on 12-18-2008 at 12:37 AM
RE: Calculator to friends - by toddy on 12-18-2008 at 01:35 AM
RE: Calculator to friends - by mrfireman on 12-18-2008 at 01:44 PM
RE: Calculator to friends - by matty on 12-18-2008 at 04:04 PM
RE: Calculator to friends - by mrfireman on 12-18-2008 at 05:56 PM
RE: Calculator to friends - by matty on 12-18-2008 at 06:01 PM
RE: Calculator to friends - by mrfireman on 12-18-2008 at 06:49 PM
RE: Calculator to friends - by matty on 12-18-2008 at 07:51 PM
RE: Calculator to friends - by mrfireman on 12-18-2008 at 08:13 PM
RE: Calculator to friends - by matty on 12-18-2008 at 08:21 PM
RE: Calculator to friends - by mrfireman on 12-18-2008 at 09:03 PM
RE: Calculator to friends - by matty on 12-18-2008 at 09:05 PM
RE: Calculator to friends - by Chrono on 12-18-2008 at 09:12 PM
RE: Calculator to friends - by matty on 12-18-2008 at 09:15 PM
RE: Calculator to friends - by mrfireman on 12-18-2008 at 09:22 PM
RE: Calculator to friends - by WDZ on 12-19-2008 at 06:06 AM
RE: Calculator to friends - by Matti on 12-19-2008 at 08:31 AM
RE: RE: Calculator to friends - by segosa on 12-20-2008 at 05:11 AM
RE: Calculator to friends - by mrfireman on 12-19-2008 at 10:12 PM
RE: Calculator to friends - by TheBlasphemer on 12-20-2008 at 09:33 PM
RE: Calculator to friends - by Pinecone on 12-21-2008 at 11:14 AM
RE: Calculator to friends - by Spunky on 12-21-2008 at 11:56 PM
RE: Calculator to friends - by Matti on 12-22-2008 at 10:58 AM
RE: Calculator to friends - by mrfireman on 12-22-2008 at 12:35 PM
RE: Calculator to friends - by mrfireman on 12-23-2008 at 05:18 PM
RE: Calculator to friends - by Pinecone on 12-23-2008 at 05: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