Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Word-Math

I built Word-Math as a small Windows tray utility that evaluates arithmetic directly inside Microsoft Word. I can type an expression on a line, end it with =, press the configured hotkey, and Word-Math replaces the line with the solved result.

Word-Math utility interface

Example:

1250 + 349.99 =

becomes:

1250 + 349.99 = 1,599.99

Features

  • Works with the active line in Microsoft Word.
  • Supports +, -, *, x, /, decimals, commas, and parentheses.
  • Runs from the Windows system tray.
  • Lets you change the hotkey from a simple settings window.
  • Saves the preferred hotkey in hotkey.txt.

Requirements

  • Windows
  • Microsoft Word
  • Python 3.10+
  • Packages listed in requirements.txt

Setup

Install dependencies:

python -m pip install -r requirements.txt

Run the app:

python WordMath.py

By default, Word-Math uses:

ctrl+alt+m

Usage

  1. Open Microsoft Word.
  2. Type a supported math expression on its own line and end it with =.
  3. Press the configured hotkey.
  4. Word-Math replaces the line with the expression and result.

Supported examples:

42 + 18 =
1,250 x 4 =
(100 + 25) / 5 =
-12.5 + 40 =

Notes

Word-Math only evaluates basic arithmetic. I intentionally block Python code execution and unsupported expression types.

The app communicates with Word through the Windows COM interface, so it must run on a Windows machine with Microsoft Word installed.

Portfolio

Portfolio page: WordMath Macro

Status

This is an early utility project. Future improvements could include packaging it as a Windows executable, adding tests, supporting selected text, and improving the tray settings interface.

About

My Windows tray utility for evaluating arithmetic directly inside Microsoft Word with a global hotkey.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages