Simple autocomplete inline c-styled calculator powered by AutoHotKey2.
Just start script (or make it autostart) and type !!, then you can type your expression after =, which indicates you enter calculation mode, and press Enter:
!! → =sin(1)**2 + cos(1)**2 → 1.0
For first version implemented two math engines:
- AHK expression — default
- Microsoft Javascript (Native Javascript for Windows (only AHK x32))
So, when you type expression, you type it like if you type it directly for this engine. Also it means, that changing engine — changing expression style.
Default ahk engine has AHK's global math funcs, but also added some constants and new funcs. For msjs exported some functions and constants from Math, and also new one.
Important
Due AHK limitations (or my laziness), calculator can behave a bit buggy.
You CAN:
- use
LeftandRightarrows to move cursor bounded by expression size - use
BackspaceandDeleteto remove symbols, BUT be careful
You CAN NOT:
- do any copy/paste actions
- use more keys to move cursor
- move cursor by mouse
- and other text editing stuff
This project IS NOT intended to replace other calculators, only make your life a bit easier, when you lazy to open them and want to calculate small stuff