All Projects â†’ davebrny â†’ in-line-calculator

davebrny / in-line-calculator

Licence: Unlicense license
📟 an interface-less calculator for Windows

Programming Languages

autohotkey
350 projects

Projects that are alternatives of or similar to in-line-calculator

Numilaunchbar
Launchbar action for Numi calculator app
Stars: ✭ 33 (-25%)
Mutual labels:  productivity, calculator
SigTools
📆 Sigarra Tools | An extension that makes the information system of the University of Porto slightly better.
Stars: ✭ 35 (-20.45%)
Mutual labels:  productivity
prodest
Stata and R functions for production function estimation
Stars: ✭ 24 (-45.45%)
Mutual labels:  productivity
hellocalc
HelloCalc is a programable calculator for Android created with JavaFX.
Stars: ✭ 23 (-47.73%)
Mutual labels:  calculator
ansible-vault-editor-idea-plugin
Ansible Vault Editor IntelliJ Plugin with auto encryption/decryption
Stars: ✭ 29 (-34.09%)
Mutual labels:  productivity
go-home
An OpenGL based progress bar that lets you know when you should really go home after a long day 🕙
Stars: ✭ 14 (-68.18%)
Mutual labels:  productivity
indices
Indices creates a Table of Contents sidebar for Medium articles, and enables you to skip around
Stars: ✭ 16 (-63.64%)
Mutual labels:  productivity
mouseable
'Mouseable' is intended to replace a mouse or trackpad.
Stars: ✭ 418 (+850%)
Mutual labels:  productivity
android-calculator
大三上Java课设 - Android 科学计算器
Stars: ✭ 37 (-15.91%)
Mutual labels:  calculator
tabtools
🔧 SQL for csv file in UNIX command line with awk.
Stars: ✭ 16 (-63.64%)
Mutual labels:  productivity
meeting-price-calculator
Meeting Price Calculator - How expensive are meetings, really?
Stars: ✭ 17 (-61.36%)
Mutual labels:  productivity
run
👟 run npm scripts interactively
Stars: ✭ 13 (-70.45%)
Mutual labels:  productivity
Nota
A calculator with a beautiful interface for the Terminal, Including unicode-based charting and rich mathematical notation rendering
Stars: ✭ 45 (+2.27%)
Mutual labels:  calculator
TabTrum
TabTrum is a Browser Extension (Currently available for Chrome) to take a snapshot of the open tabs, and open them all again in one single click when you come back and re-open your browser.
Stars: ✭ 24 (-45.45%)
Mutual labels:  productivity
string-math
Evaluates a math expression from a string. Supports variables and custom operators.
Stars: ✭ 14 (-68.18%)
Mutual labels:  calculator
tabToWindow
Chrome extension to move the current tab to a new window using the command API
Stars: ✭ 91 (+106.82%)
Mutual labels:  productivity
swdc-vim
Track your programming activity in real-time in Vim
Stars: ✭ 19 (-56.82%)
Mutual labels:  productivity
fend
Arbitrary-precision unit-aware calculator
Stars: ✭ 64 (+45.45%)
Mutual labels:  calculator
screentime
A chrome extension for keeping track and managing your time on social media platforms and websites
Stars: ✭ 42 (-4.55%)
Mutual labels:  productivity
Reactirator
A desktop application to create and manage React.js applications easily.
Stars: ✭ 111 (+152.27%)
Mutual labels:  productivity

in-line calculator



Table of Contents

What's this?

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.
 

Installation

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.
 

Usage

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

 

What's that p for?

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 lazy efficient
+ 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

 

How does it work?

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
   


Other features

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
 

Options

(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 then ctrl + 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.
 

Credits

Laszlo, Oldman and many others from the AHK community.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].