[Release] Calculator (v1.20.011) - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4) +---- Forum: Scripting (/forumdisplay.php?fid=39) +----- Thread: [Release] Calculator (v1.20.011) (/showthread.php?tid=66771) [Release] Calculator (v1.20.011) by Matti on 09-29-2006 at 09:58 AM
It's there. Finally. After months of testing and trashing, Calculator has reached its day of final release. With proud I present you Calculator Version 1.20.011 FINAL The Calculator script was made with the thought that when your discussing your math homework, you don't need calc.exe running next to it. But it was grown to a full application on its own. On the moment of writing, the script contained following features:
code:but it accepts a variety of parameter options, which are quote:The available systems are "dec", "bin", "hex", "sci" or "oct", their meaning is quite understandable I guess. As for the angle unit, it supports radians (rad), grads (grad) and degrees (deg). Changing the angle unit only affects trigonometric functions, so don't worry about miscalculations of 8 times 5 when you've set your angle unit to grads. To Do list:
And finally... the screenshots! Changelog:
RE: [WIP] Calculator by Spunky on 09-29-2006 at 11:22 AM Sounds good. This is something I might actually make use of. Just hurry up and get a download available RE: [WIP] Calculator by Matti on 09-29-2006 at 12:33 PM
quote:Well, I first want to make sure everything that's already in it works good, before I release it. Then, I can begin to work on the other stuff. I'm not at my own pc atm, so you'll have to wait a bit longer untill I can take some screenies. I hope to do that around 17:00 CET, and maybe I can release a first beta this evening. But don't expect too much of it yet: it's only a calculator. RE: [WIP] Calculator by markee on 09-29-2006 at 02:17 PM
quote:I think you mean integers so as to include negative numbers as well (and zero depending on your school of thought abut zero being a natural number or not). quote:If you need any help with making windows Jay_Jay is very will to helpout, even if he only has his left hand to do it. There might be alittle delay though as he is not at home atm, though I'm sure I canchange one of his already made ones to do what you want. I hope we can help you out. EDIT: Btw it sounds quite interesting RE: [WIP] Calculator by Matti on 09-29-2006 at 04:43 PM
quote:What I mean is any integer which is larger or equal to 0. Sorry, I just didn't know how to mention it. quote:It's not that I can't do it, it's just that I didn't have time for it yet. Lazy me. quote:That's what I like to hear... Time to take some screenshots! (with a delay of 2 hours ) RE: [WIP] Calculator by Chris4 on 09-29-2006 at 06:30 PM
Nice, lookin' good. RE: [WIP] Calculator by Matti on 09-29-2006 at 06:39 PM
quote:That's the idea behind it. RE: [WIP] Calculator by WDZ on 09-29-2006 at 06:51 PM
quote:I prefer WinKey+R, calc, Enter RE: RE: [WIP] Calculator by Chris4 on 09-29-2006 at 06:53 PM
quote:Thanks, I never even new about WinKey+R RE: [WIP] Calculator by prashker on 09-29-2006 at 06:56 PM
I prefer RE: RE: RE: [WIP] Calculator by Jimbo on 09-29-2006 at 06:58 PM
quote:Lol me neither, i just used to have it in my taskbar RE: [WIP] Calculator by Chancer on 09-29-2006 at 07:50 PM I have one in my head! RE: [WIP] Calculator by vaccination on 09-29-2006 at 11:35 PM
quote: Rofl, same as me *hits calc button* But i think i would like to use this is would be nice to set how it is sent and i don't have to right out the answer RE: [WIP] Calculator by phalanxii on 09-30-2006 at 12:39 AM
Wow, Mattike, that GUI is looking really awesome! Might I also suggest that you add in degrees, radians and grads in the preferences? Other than that, the script looks really nice. RE: [WIP] Calculator by alexp2_ad on 09-30-2006 at 12:43 AM Nice... but needs a [calc] tag. RE: [WIP] Calculator by NanaFreak on 09-30-2006 at 01:02 AM
quote:damn im so bored because there isnt any hard script im working on (well maybe gradient but ) but you have done a little better than what i would have done but i like the script as well good job * NanaFreak its calculator button on keyboard RE: [WIP] Calculator by Matti on 09-30-2006 at 10:39 AM
quote:That's why I'm making it. quote:Yup, and I love it! quote:Hmm... that sounds interesting! Great request! Then, I'll make it: code:to result in 13 and: code:to display D. RE: [WIP] Calculator by Jimbo on 09-30-2006 at 10:40 AM when are you going to get a release out Mattike cos i cant wait RE: [WIP] Calculator by Matti on 09-30-2006 at 10:45 AM
quote:Allright, I think I'll now make the About window and implement the [calc] thing, and then I'll release it. But the problem is that I still have to lunch @ 13:00 CET... * Matti opens his script files... RE: RE: [WIP] Calculator by Jimbo on 09-30-2006 at 10:48 AM
quote:So what time do you hting you will release it GMT RE: [WIP] Calculator by Matti on 09-30-2006 at 11:40 AM
quote:I can't say. I'm trying to find a way to replace the [calc] tags using regexps, but if that won't work I'll have to use a for-loop. But when it's done, you'll find it here. EDIT: Okay, that was the hardest part. The regular expressions are working perfectly. EDIT 2: And that was the About window. Time to send my baby to the big world. Enjoy! RE: [WIP] Calculator by NanaFreak on 09-30-2006 at 12:55 PM
WICKED SCRIPT!!!!!!!!!!!!!!!! i give it 9 and a half/10 GO YOU!! RE: [Pre-Release] Calculator by Matti on 09-30-2006 at 01:10 PM
Okay, had to update it again since I left a bug: it could only parse one [calc] tag per message... RE: [Pre-Release] Calculator by Felu on 09-30-2006 at 01:42 PM
BUG RE: [Pre-Release] Calculator by duck! on 09-30-2006 at 01:47 PM
I have a suggestion RE: [Pre-Release] Calculator by Matti on 09-30-2006 at 01:49 PM
quote:Damn, you're right. I was already wondering why I had so many away contacts. PR 1.02 released quote:I was thinking of adding such commands to, and now you remembered me on it, I'll add it. It'll be in the updated package when I need to release a bugfix again. RE: [Pre-Release] Calculator by alexp2_ad on 09-30-2006 at 03:35 PM
Make the calc tag support [n] already! RE: [Pre-Release] Calculator by Lourix on 09-30-2006 at 03:39 PM Hey cool script Mattike good one RE: [Pre-Release] Calculator by Matti on 09-30-2006 at 03:39 PM
quote:Damn you got good ideas. * Matti writes it down on a piece of paper... RE: [Pre-Release] Calculator by Shondoit on 09-30-2006 at 07:35 PM
Maybe a small suggestion... RE: [Pre-Release] Calculator by Spunky on 09-30-2006 at 07:45 PM
quote:Thats sounds like a good idea... Just check to see if there are any params sent or not Script is looking awesome so far RE: [Pre-Release] Calculator by Andrew_H on 09-30-2006 at 08:25 PM
Thats cool! RE: [Pre-Release] Calculator by Spunky on 09-30-2006 at 08:31 PM
quote: Looks like WLM with the Vista skin and a background set RE: [Pre-Release] Calculator by davidpolitis on 09-30-2006 at 09:24 PM
Sorry to be off-topic, but wouldn't care to share your messenger skin or background in This Screenshot? RE: [Pre-Release] Calculator by Zahid™ on 09-30-2006 at 09:32 PM
quote:Its: quote: RE: [Pre-Release] Calculator by vaccination on 09-30-2006 at 11:33 PM
Yay great to see a pre-release, i love it <3 RE: [Pre-Release] Calculator by phalanxii on 10-01-2006 at 12:32 AM
Sweet pre-release! This (like all your other work) is very professional, Mattike! In the QC, I can't quite use the letters (A-F) for hex, because the calculator doesn't parse them. Also, it might be better to convert expressions before making the calculations in other bases (so that 10+10 in binary = 100; maybe split modes to "input" and "output"). And degrees, radians and grads! Again, super script! RE: [Pre-Release] Calculator by Matti on 10-02-2006 at 05:03 PM
quote:Hmm... never thought about that. That will indeed make things easier. And maybe, I can make '/calc pref' to open the preferences and '/calc abt' to open the about window... That way, I only have one command left. quote:I am aware of this. They were just meant to note that you will be able to use hexadecimal values, but not by simply typing them. I'll make the script to use special functions to let the user specify what mode should be used. For example, I'll make Hex(FF) to result in 255, so you can calculate with different modes. (e.g.: substracting hexadecimal numbers from binary numbers and returning the octal result) quote:See previous reply. quote:Yes yes, I'll look for that. quote:Hehe, thanks! RE: RE: [Pre-Release] Calculator by CookieRevised on 10-02-2006 at 05:54 PM
quote:do as JScript does (and other languages) add a prefix to the numbers instead of creating extra functions: eg: 0x?? for binary numbers or h01DF4B, o1472, b0110, etc it is a lot easier/shorter to write: /calc h01DF4B + h412F than: /calc Hex(01DF4B) + Hex(412F) Also, using the function Hex() like Hex(FF) doesn't make sense when you compare it to how such functions work in other languages and stuff. Hex() is to convert something to a hex number, not vice versa. Just like Cos() is used to calculate the cosinus not to convert a cosinus to something else. And then you could still use those extra functions, but to change the output to some base. which would be more logical IMHO. eg: /calc Oct(h01DF4B + b110110) RE: [Pre-Release] Calculator by Matti on 10-03-2006 at 03:56 PM
quote:There you have a good point. I think I'll try these. quote:Well, for changing the output I already have: code:so I don't need them. * Matti opens his project files... EDIT: Yay! I made the modes working! hA now results in the decimal number 10, just as o12 and b1010. Now, I'll have to make the negative numbers work... (e.g.: h-A) RE: [Pre-Release] Calculator by CookieRevised on 10-03-2006 at 06:40 PM
quote:That doesn't exists.... That is, if you follow programming logic. If you follow the math logic they do exist, but be EXTREMELY carefull in what you do, this is far from easy to implement this in the correct way. Look at how a real scientific calculator works with numbers in another base to get the idea on how to implement it properly... eg: -128 in hexadecimal can be hFF81, hFFFFFF81, hFFFFFFFFFFFFFF81 etc... convert that back and you could get hFF81 = 65409, hFFFFFF81 = 4294967169, etc. It depends not only on what method you use, but also on the amount of bits/bytes you use to define a hexadecimal/octal/binary number, etc... My advise would be to not allow negative numbers in other bases than the decimal base. RE: [Pre-Release] Calculator by Shondoit on 10-03-2006 at 06:44 PM
For the functionality RE: [Pre-Release] Calculator by CookieRevised on 10-03-2006 at 06:56 PM
quote: it depends on what you mean with the negative sign. Normally a negative sign is part of the number (negative number) if used alone, not part of the calculation. Hence why you shouldn't do: -hF and interpret that as: - convert hF to 15 - make 15 negative The "make x negative" should come before "convert x to y", not before! Hence why negative hexadecimal/octal/binary numbers don't exist. A hexadecimal number produces a negative decimal number if that hexadecimal number wraps around the edge you have defined for the hexadecimal environment. If you want -15 in hexadecimal it should be hFE or hFFFE or hFFFFFFFE or hFFFFFFFFFFFFFFFE, depending on the range... btw: "-hF*hF + h100 = h1" is wrong, it should be "h1F" ---------------- To give a better example of why you can't do all that: you will find it even more complex when you're dealing with floating points. Again, you can't do "hF.EF" as that does not exist, almost the same goes for the use of the sign. ---------------- (can't explain this too well, someone else?) RE: [Pre-Release] Calculator by Matti on 10-04-2006 at 07:57 AM
Oh damn... then I guess I better remove the negative support. RE: [Pre-Release] Calculator by phalanxii on 10-05-2006 at 10:27 AM
Blah, these were driving me a little mad... code:3. Negative functions? (Not subtraction, but expressions beginning with "-Sin(1.5)" or "-Pi"; don't need this too desperately because "0-Pi" works) 4. Hexadecimal "not a number" is "NAN" as opposed to "NaN" in other bases. Besides that, everything seems fine. Really helpful for maths homework. RE: [Pre-Release] Calculator by Matti on 10-05-2006 at 05:54 PM
quote:That's what you have with pre-releases: the creator only tests what he thinks he needs to test... doh! quote:Hmm... strange, but if that can fix it... quote:Well, here I go again with another attempt for negative values! quote:Yeh, I wanted to show the hexadecimal values in capital letters, but it seems like I have to run a check for it first. quote:Heh... I guess that's why they requested this script. RE: [Release] Calculator (v1.20.011) by Matti on 12-20-2006 at 10:16 AM
BUMP! Calculator 1.20.011 released and waiting for scripting database to update it. I hope they won't get mad that the update comes 2 hours too late... RE: [Release] Calculator (v1.20.011) by Plan-1130 on 02-09-2008 at 04:43 PM
How about inline calculations? Like (!CALC=8*5) or something... |