Skip to content

imKokoT/culc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 

Repository files navigation

Culc

Simple autocomplete inline c-styled calculator powered by AutoHotKey2.

How to do meth?

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

Engines

For first version implemented two math engines:

  1. AHK expression — default
  2. 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.

Limitations

Important

Due AHK limitations (or my laziness), calculator can behave a bit buggy.

You CAN:

  • use Left and Right arrows to move cursor bounded by expression size
  • use Backspace and Delete to 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

About

Simple autocomplete inline c-styled calculator powered by AutoHotKey2.

Topics

Resources

Stars

Watchers

Forks