An interface-less calculator for Windows that lets you do basic math without having to leave the line you're typing on.
Where can it be used?
Almost anywhere in windows where you can enter text. Any text editor, search box or command line... even the text edit box that you use to rename files.
Â
Download and extract the latest release .zip file. If you already have AutoHotkey installed then run in-line calculator.ahk
, otherwise run the .exe
version which lets you use the script without having AutoHotkey installed. The script doesn't install anything and it's also portable so it can be run from any location.
Â
Press the equals key to activate the calculator, type out an equation, then use one of the two end keys to calculate it
=5p5
The  =  key deletes the equation and pastes the answer:
10
The  #  key keeps the equation and pastes the answer at the end:
5+5 = 10
Â
As well as the regular math symbols (+ - * /), letters can be used which makes it easier to type since you don't have to use the shift key.
math key | key to use if you're |
---|---|
+ | p  (plus)  a  (and) |
- | m  (minus)  s  (subtract) |
* | t  (times)  b  (by)  x  (multiply) |
/ | d  (divide) |
Some examples:
7 p 11 m 2 = 16
7 + 11 - 2
(27 d 4) x 12 = 81
(27 / 4) * 12
Â
When you press the equals key, the calculator will turn on and start logging the following keys:
- Â
0
-9
 (number row or number pad) - Â
+
-
*
/
- Â
.
,
(
)
- Â
a
b
d
m
p
s
t
x
- Â
space
backspace
If a key is pressed that isn't in the above list then the calculator will turn off and anything that was typed will be cleared from memory.
For example, typing =5pw5=
won't calculate anything since the w
key would have turned the calculator off.
The tray icon can be used to check what state the calculator is in. If the calculator is on the icon will be a "plus" symbol, if it's off then it will be showing the default "equal" symbol.
You can use the escape key at any time to reset or turn off the calculator
 Â
Select an equation
Select an equation and use one of the following hotkeys:
alt + = Â Result only
alt + # Â Equation & result
The equation text can be on multiple lines:
134
+578
-233
This feature uses the clipboard to get the equation text and paste it back again so if it's used on static text (like on this webpage) then it wont work since there is nowhere for the result to be pasted.
Â
Add numbers quickly
When selecting an equation, if there are no math symbols in the selected text, then every space between the numbers will be replaced with pluses.
100 200 300
will become 100+200+300
Â
History menu
Use ctrl + alt + = to show a menu with the last 15 calculations.
Clicking an item in the menu will add it to the clipboard. If the ctrl is being held down then only the result is added to the clipboard.
Â
Windows calculator
The keys  a b d p m s t x  are remapped to send the corresponding math symbols when Windows calculator is open.
The  =  key is remapped to send  enter
Â
(Any time you make any changes to the settings.ini
file you will need to select "Reload This Script" from the tray icon to update the script with the new settings)
Custom keys
The key that triggers the calculator can be changed to something else beside the equals key by changing the value in trigger_key
. To have any of the number keys be the trigger that starts the calculator, leave this value empty.
Triggering with the number keys can sometimes calculate things that aren't equations. This can happen in situations where you're typing a date like "31-12-2017" and then happen to use one of the end keys right after. One way of avoiding this is by remembering to press the
escape
key to turn off the calculator before pressing an end key. If you forget to do that thenctrl + z
can always be used to undo the calculation.
Hotkeys and Hotstring endkeys can be changed to something other than the defaults by changing the values in result_hotkey
, equation_hotkey
, result_endkey
and equation_endkey
Enable/Disable
To disable both the number row and number pad keys and use the "select equation" feature only, set enable_hotstrings
to no
.
There's also option to disable the number row or the number pad individually which is useful if you want to have one set of keys that wont trigger anything.
To disable a hotkey leave its value empty.
NumpadEnter as end key
The number pad enter
key can be used as the =
end key by settings numpadEnter_endKey
to yes
. This will also allow you to the trigger the calculator with this key or if no trigger key is set then it will just function as the default number pad enter.
Calculator timeout
The default time the calculator will stay on after typing an equation is 60 seconds. This is so the calculator doesn't stay on when you use one of the trigger keys but don't intend to use the calculator. Change timeout
to T120
for 120 seconds, T30
for 30 seconds or leave it blank to disable the timeout altogether.
Start with windows
To have the script start when windows boots up, select "Start With Windows" from the tray icon.
Â
Laszlo, Oldman and many others from the AHK community.