What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » An idea for a script

Pages: (2): « First « 1 [ 2 ] Last »
An idea for a script
Author: Message:
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
31 / Male / Flag
Joined: Apr 2004
RE: An idea for a script
quote:
Originally posted by saralk
What about a command like "/math 2 + 3" which would send "2 + 3 = 5"
Yes, but I think a tab would look lots cooler. (H)
I would like to work on such script, when I'm on my own pc... :P
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
09-14-2006 06:48 PM
Profile E-Mail PM Web Find Quote Report
ForestPlus!
Banned


Posts: 96
Joined: Aug 2006
RE: An idea for a script
Such script would be amazing.. and on the tabs where usually the emoticon wink nudge buttons ect would be nice to have the plus minus divide multiply ect.. buttons :P

[offtopic]Speaking of which, wouldn't it be funny if theres was a messenger minus! live:P [/offtopic]
09-14-2006 07:32 PM
Profile E-Mail PM Find Quote Report
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
31 / Male / Flag
Joined: Apr 2004
RE: An idea for a script
quote:
Originally posted by ForestPlus!
and on the tabs where usually the emoticon wink nudge buttons ect would be nice to have the plus minus divide multiply ect.. buttons :P
quote:
Originally posted by Mattike
...and one for an editing panel with a toolbar and a message box.
Already thought about that, yes it would be very cool. :)
[OFFTOPIC]
quote:
Originally posted by ForestPlus!
[offtopic]Speaking of which, wouldn't it be funny if theres was a messenger minus! live:P [/offtopic]
Since it would remove existing features, instead of adding new. ;)
[/OFFTOPIC]
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
09-15-2006 07:34 AM
Profile E-Mail PM Web Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: An idea for a script
quote:
Originally posted by saralk
What about a command like "/math 2 + 3" which would send "2 + 3 = 5"
Dead easy actually, all you need to do is to grab the command line parameter and let JScript evaluate it:
   return CommandParameter + " => " + eval(CommandParameter)


Attached is a full blown script which does exactly that.
Usage:
   /calc <math expression>

Examples:
   /calc (5+5)*8/20+3                   output: (5+5)*8/20+3 => 7
   /calc (5+5)==11                       output: (5+5)==11 => false
   /calc    5  <new line>  +     5         output: 5 + 5 => 10
   /calc 5///////5                          output: standard Plus! "invalid parameter" message box
   /calc                                      output: standard Plus! "no parameter" message box


it also gives an example in:
- how to split the command and parameter from eachother in a very easy way using 1 regular expression in 1 IF...THEN...ELSE function.
- how to show a standard Plus! error message, using Plus!'s own translations

see source for more info




.plsc File Attachment: Calculator.plsc (2.92 KB)
This file has been downloaded 205 time(s).

This post was edited on 09-15-2006 at 02:59 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
09-15-2006 02:44 PM
Profile PM Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
35 / Male / Flag
Joined: Aug 2006
RE: An idea for a script
Wow! I like :p Would be so much cooler if we could have a graphical calculator as well though :)
<Eljay> "Problems encountered: shit blew up" :zippy:
09-15-2006 03:17 PM
Profile PM Find Quote Report
Pages: (2): « First « 1 [ 2 ] Last »
« Next Oldest Return to Top Next Newest »


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