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:
- calculate an expression by typing "/calc [expression]".
- convert a calculation to a different numeral system using "/calc [system] [expression]", e.g.: "/calc hex 8+2" will produce "A"
- replace selected text in the typing area of the chat window with its result if it's a valid expression by pressing F5.
- calculate the angle unit used by a trigonometric function (e.g. sine or cosine) to grads, for example.
- open the Quick Calculator window to calculate something and then send the result to one or more contacts.
- let the user choose how the results will be sent and enable the F5 calculating in the preferences window.
- get documentation for the script by using the Help window
- translate the script with a language .ini file.
- automatically check for updates every hour.
It has only one command, which is:
code:
/calc [system] [expression]
but it accepts a variety of parameter options, which are
quote:
/calc = Opens the Quick Calculator Window
/calc 8+2 = Calculates "8+2" and returns "10"
/calc hex 8+2 = Calculates "8+2", converts it to hexadecimal and returns "A"
/calc ang deg = Sets the angle unit for trigonometric functions
/calc pref = Opens the Preferences window
/calc abt = Opens the About window
/calc help = Opens the Help window
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:
let the user use numbers in different modes in the expression. (like, typing Hex(FF) would be parsed as 255) DONE!
add some extra functions? DONE!
maybe add an update checker if I left a bug in a release. DONE!
create a Help window (the "?" in the Preferences window) DONE!
submit it to the database before the scripting contest ends DONE!
And finally... the screenshots!
Changelog:
- FINAL 1.20.011:
- Bugfix: conversion failed when sending /calc [system] [exp]
- FINAL 1.20.010:
- PR 1.02:
- Fixed bug causing offline contacts to appear as away in the Send Calculation window, now they just don't appear. (like I wanted)
- PR 1.01:
- Fixed bug causing the script to only parse 1 [calc] tag at a time
- PR 1.00:
» Download Calculator 1.20.011
here!