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

An idea for a script
Author: Message:
Jimbo
Veteran Member
*****

Avatar

Posts: 1650
Reputation: 18
32 / Male / Flag
Joined: Jul 2006
RE: An idea for a script
I don't know if this helps, but i found this on a website, maybe someone can convert it into plus scripting?
code:
<script language="JavaScript">
var m;
m = 0;
var i;
var mm;
function num ( i ) //delete the spaces here
{
var u = new String();
u = text3.value;
if (u == "=")
{
text1.value = text2.value = "";
text1.value = text1.value + i ;
text3.value = "";
return;
}
var s;
var l;
s = text1.value;
l = s.length;
if (l<10)
{
text1.value = text1.value  + i;
}
}
function point()
{
var i;
var s = new String();
s = text1.value;
i = s.indexOf(".");
var u = new String();
u = text3.value;
if (u == "=")
{
text1.value = text2.value = "";
text1.value = text1.value + "." ;
text3.value = "";
return;
}
if (i > -1)
{
return;
}
else
{
if (s.length<9)
{
s = s + ".";
text1.value = s;
}
}
}
var cho;
function act(cho)
{
var u = new String();
u = text3.value;
if (u == "")
{
text2.value = text1.value;
text1.value = "";
}
else
{
switch (u)
{
case "+" :
text2.value = (text2.value*1) + (text1.value*1);
text1.value = "";
break;
case "-" :
text2.value = (text2.value*1) - (text1.value*1);
text1.value = "";
break;
case "*" :
text2.value = (text2.value*1) * (text1.value*1);
text1.value = "";
break;
case "/" :
text2.value = (text2.value*1)/(text1.value*1);
text1.value = "";
break;
case "=" :
text2.value = text1.value;
text1.value = "";
break;
}
}
switch (cho)
{
case 1 :
text3.value = "+";
break;
case 2 :
text3.value = "-";
break;
case 3 :
text3.value = "*";
break;
case 4 :
text3.value = "/";
break;
}
}
function eq()
{
switch (text3.value)
{
case "+":
text2.value = (text2.value*1) + (text1.value*1);
text1.value = text2.value;
text2.value = "";
break;
case "-":
text2.value = (text2.value*1) - (text1.value*1);
text1.value = text2.value;
text2.value = "";
break;
case "*":
text2.value = (text2.value*1) * (text1.value*1);
text1.value = text2.value;
text2.value = "";
break;
case "/":
text2.value = (text2.value*1) / (text1.value*1);
text1.value = text2.value;
text2.value = "";
break;
}
text3.value = "=";
}
function clss()
{
text1.value = text2.value = text3.value = "";
m =0;
clear1.blur();
}
function initia()
{
text1.blur();
text2.blur();
}
function clearall()
{
text1.value = "";
}
function madd()
{
m = m + ((text1.value)*1);
text1.value = "";
text3.value = "";
}
function msub()
{
m = m - ((text1.value)*1);
text1.value = "";
text3.value = "";
}
function mrem()
{
if (m != 0)
{
text1.value = m;
text3.value = "";
}
}
function free()
{
if (mm != 1)
{
alert ('JavaScript disables this action!!');
}
}
function frees()
{
mm = 1;
}
function freed()
{
mm = 0;
}
</script>

09-14-2006 02:41 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
An idea for a script - by lu_benja on 09-14-2006 at 02:15 PM
RE: An idea for a script - by Matti on 09-14-2006 at 02:23 PM
RE: An idea for a script - by alexp2_ad on 09-14-2006 at 02:25 PM
RE: An idea for a script - by Jimbo on 09-14-2006 at 02:41 PM
RE: An idea for a script - by Shondoit on 09-14-2006 at 03:39 PM
RE: An idea for a script - by lu_benja on 09-14-2006 at 04:00 PM
RE: An idea for a script - by Jimbo on 09-14-2006 at 04:17 PM
RE: An idea for a script - by Matti on 09-14-2006 at 04:29 PM
RE: An idea for a script - by R4000 on 09-14-2006 at 05:07 PM
RE: An idea for a script - by saralk on 09-14-2006 at 06:19 PM
RE: An idea for a script - by Matti on 09-14-2006 at 06:48 PM
RE: An idea for a script - by ForestPlus! on 09-14-2006 at 07:32 PM
RE: An idea for a script - by Matti on 09-15-2006 at 07:34 AM
RE: An idea for a script - by CookieRevised on 09-15-2006 at 02:44 PM
RE: An idea for a script - by Spunky on 09-15-2006 at 03:17 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