Select any word on Windows and mac see its definition in a popup at your cursor.
not yet reviewed by publik. It is live now; the founder has not reviewed this version yet.
WordMeaning
open source · on publik
Every step written out. No terminal experience needed. Pick your setup.
Select any word, anywhere on Windows, and its meaning pops up right next to your cursor.
Reading an article, a PDF, or a document and hit a word you don't know? Instead of copying it and pasting into Google, just double-click the word — WordMeaning shows the definition in a small popup at your cursor. Works in your browser, PDF readers, Word, and almost any Windows app.
20 seconds: select a word, the meaning appears at the cursor. Prefer it in a tab? ▶ Open the video — or try the real interaction in your browser at ishpreet36752.github.io/WordMeaning.
Prefer to run the raw script or hack on it?
Install AutoHotkey v2:
winget install AutoHotkey.AutoHotkey
(Or download the v2 installer from autohotkey.com.)
Get the code:
git clone https://github.com/ishpreet36752/WordMeaning.git
cd WordMeaning
Run it:
.\run.ps1
Build your own .exe / installer (optional):
.\build.ps1
Produces dist\WordMeaning.exe, plus dist\WordMeaning-Setup.exe if Inno Setup is installed.
Selecting a whole sentence or multiple words does nothing — this is by design; WordMeaning looks up single words only.
Right-click the tray icon (the blue W):
Easiest: right-click the tray icon and tick Start with Windows (or tick the box in the installer). This registers a per-user login entry — no admin, and you can turn it off from the same menu.
Running from source instead? The tray toggle still works. As a manual alternative you can press Win + R, type shell:startup, and drop a shortcut to run.ps1 in that folder. (Don't copy src\Main.ahk there on its own — it needs the other files next to it.)
All tunables live in src/Config.ahk. Common ones:
| Setting | Default | Meaning |
|---|---|---|
TooltipTimeoutMs | 6000 | How long the popup stays (milliseconds) |
MaxDefinitionLen | 300 | Truncate long definitions to this many characters |
FocusPollMs | 250 | How often to check for a window switch |
HttpTimeoutMs | 5000 | Network timeout for the dictionary API |
MaxExampleLen | 140 | Longest example sentence shown (longer ones are dropped) |
WebSearchUrl | Google define+ | Where Ctrl+Shift+D sends the word (e.g. swap in Wiktionary) |
WebSearchHotkey | ^+d | The web-search shortcut, live only while a popup is showing |
Edit the file and restart WordMeaning to apply changes.
WordMeaning is a small, modular AutoHotkey v2 app — one responsibility per file:
| File | Responsibility |
|---|---|
src/Main.ahk | Entry point, tray menu, wiring |
src/Config.ahk | All tunable values |
src/SelectionWatcher.ahk | Detect a selection; copy it while preserving your clipboard; dismiss on click |
src/FocusWatcher.ahk | Dismiss the popup when you switch windows |
src/Dictionary.ahk | Validate the word, fetch over HTTPS, extract the definition, cache it |
src/Popup.ahk | Show/hide the tooltip |
src/Startup.ahk | Optional "run at login" toggle (per-user registry key; no admin) |
Flow: you select a word → it's captured via a clipboard-safe Ctrl+C probe → validated as a single word → looked up on freedictionaryapi.com (falling back to api.datamuse.com when that host has no entry) → the most useful sense is picked → shown at your cursor.
"AutoHotkey v2 not found" when running run.ps1
Install it: winget install AutoHotkey.AutoHotkey. WordMeaning needs v2, not v1.
A word gives "no definition found" The dictionaries are English-only and don't have every word (names, brand names, very new slang). Non-English words won't resolve. Press Ctrl+Shift+D while the popup is up to search the web for that word instead.
"offline / network error" Check your internet connection; the dictionary API needs to be reachable.
Nothing happens when I select text in a PDF The PDF must have a real text layer. Scanned/image-only PDFs have no selectable text, so there's nothing to look up (that would need OCR — not supported).
The popup lingers after I switch tabs with the keyboard Switching tabs with Ctrl+Tab (keyboard) stays in the same window, so it isn't detected as a window switch. Click the tab instead, or just wait for the 6-second timer. (Clicking anywhere dismisses the popup immediately.)
An AutoHotkey error dialog appeared Please open a bug report and paste the full error text.
Contributions are very welcome! See CONTRIBUTING.md for setup, tests, and conventions, and please follow our Code of Conduct.
Good first contributions: docs, extra troubleshooting entries, small quality-of-life options in Config.ahk.
MIT — free to use, modify, and share.
Definitions come from Wiktionary via FreeDictionaryAPI.com and are licensed CC BY-SA 4.0; fallback definitions come from api.datamuse.com. The same credit is in the app under tray → About.