What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [?] Pow... err, triggering some function on certain convo events?

Pages: (4): « First « 1 2 3 [ 4 ] Last »
[?] Pow... err, triggering some function on certain convo events?
Author: Message:
phalanxii
Full Member
***


Posts: 146
Reputation: 5
32 / Male / Flag
Joined: Aug 2006
Status: Away
RE: [?] Pow... err, triggering some function on certain convo events?
I've updated the functions (I think they are correct now ;)) taking into account what Cookie said. Just to make sure, choose has to use positive integers right? And primes cannot be negative? (You'll have to bare with me, my maths is only middle school level :(.)

By the way, thanks for all your help. (Y)
09-19-2006 12:16 PM
Profile PM Find Quote Report
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
O.P. RE: [?] Pow... err, triggering some function on certain convo events?
Okay guys, Shondoit motivated me to go on with this. I'll make a nice design for this script, and you'll be on the first rules of the about window of course! :D

Wish me luck! ;)
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
09-19-2006 06:33 PM
Profile E-Mail PM Web Find Quote Report
Shondoit
Full Member
***

Avatar
Hmm, Just Me...

Posts: 227
Reputation: 15
36 / Male / Flag
Joined: Jul 2006
RE: [?] Pow... err, triggering some function on certain convo events?
Good luck (y)
My scripts:                            [Image: shondoit.gif]
+ Timezone
+ Camelo
+ Multisearch
09-19-2006 08:53 PM
Profile PM Find Quote Report
phalanxii
Full Member
***


Posts: 146
Reputation: 5
32 / Male / Flag
Joined: Aug 2006
Status: Away
RE: [?] Pow... err, triggering some function on certain convo events?
Good luck, Mattike! Hope it all goes well. :)



@Shondoit - I think I've found a few bug fixes:
code:
String.prototype.Calculate = function () {
   var Infix = this.replace(/\s/g, "")
   var Postfix = Infix.ToPostfix()
   if (Postfix != undefined) return Postfix.CalculatePostfix()
}
code:
case "^": case "*": case "/": case "+":// case "-":
   PopStack()
   break
In the first one, you forgot to put the global flag ;) (you got this right somewhere else in the code though (Y)). In the second one, I think this allows negative values to work. Tell me if any of these stuff up the code. :)
09-20-2006 12:31 AM
Profile PM Find Quote Report
Shondoit
Full Member
***

Avatar
Hmm, Just Me...

Posts: 227
Reputation: 15
36 / Male / Flag
Joined: Jul 2006
RE: [?] Pow... err, triggering some function on certain convo events?
The frist one is great, thanks. I forgot that one...

About the second one, it does allow negatives, but it also disables sutraction. if you type '3-2' the subtraction sign isn't evaluated, and is seen as part of the number. If you try this calculation it still works, because this 'number' is calculated with eval(). However, this is not the correct way to do it, because it doesn't take presedence into account...
It can be fixed by checking, when the Token is '-', if there is a operator in front of it. If true, it is a negation sign, else it is a subtraction operator...

When I have the time, I'll try to fix it (y)
My scripts:                            [Image: shondoit.gif]
+ Timezone
+ Camelo
+ Multisearch
09-20-2006 05:06 AM
Profile PM Find Quote Report
Pages: (4): « First « 1 2 3 [ 4 ] 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