Skip to content
Raisul Sohan

Windows Tray App & AI Translation

LazyReply

Type Bangla, Send English: Three Clean English Versions Just Above Any Chat Box, From Bangla or Banglish

Solo Developer — Windows Desktop Engineering, Keyboard Hooks & AI Integration Windows 10 & 11 • C#, .NET Framework 4.x, WinForms • UI Automation • Claude, Gemini & OpenAI-Compatible APIs • v1.0.0

  • GitHub stars: 0
  • Downloads: 8
  • v1.2.0 · 2 weeks ago
LazyReply

Many Bangladeshi freelancers know exactly what they want to tell a client, but writing it in clean English takes time, and copying text to a translation site and back breaks the flow of work. LazyReply is a small Windows tray app: type Bangla or Banglish in the chat box of any app (chat boxes in the browser included), end the sentence, and three English versions appear just above the box: Professional, Friendly and Short. Alt+1, Alt+2 or Alt+3 turns the chat box text into that version; hold Ctrl and press Down or Up to put them in one after another, and Ctrl+Enter sends it. It follows Avro on its own: when Avro goes to Bangla the box opens, when it goes back to English the box closes. Without Avro, a shortcut of your own does the same, so it works with any keyboard. It also works the other way: the meaning of a client's English message in Bangla. The AI is your choice: your own Claude account, a Claude or Gemini API key, or any service with an OpenAI-compatible API (OpenRouter, Groq, DeepSeek, even Ollama on your own PC). LazyReply never sends anything by itself: the last Enter is always yours.

The challenge

Client conversations happen in the chat boxes of Fiverr, Upwork, WhatsApp, Messenger or Slack. The usual way to translate is to copy the text, paste it into a translation site, copy the result and go back to the chat, for every single message. The goal was to bring the translation into the chat box itself, without slowing the typing down at all.

Core Technical Challenges:
1. The Chat Box of Any App: every app is different, many live inside a browser, and none of them hands its text box to an outside program.
2. Never Taking the Focus: the suggestions must float just above the chat box while the keyboard stays in the chat box, so typing never stops.
3. Knowing Avro's Mode: Avro keeps no readable flag that says Bangla or English, and a mode change with the mouse presses no key at all.
4. When to Translate: asking at every pause mid-sentence costs AI calls and gives wrong results, yet a short message with no full stop ("ok bhai") must not be missed.
5. Speed: on a Claude account, Claude Code takes 1–2 s to start each time, far too slow for a chat.
6. One File, No Install: it has to run on an ordinary PC with no runtime or package manager to add.

The solution

1. Reading the Chat Box Through UI Automation: only the text box that has the keyboard focus is read, through Windows UI Automation, chat boxes inside the browser included. It never reads a password box or a whole web page, and the read runs on its own thread with a time limit, so a busy app can never freeze it.

2. Putting Text In Through the Clipboard: the chosen English goes in with Ctrl+A and Ctrl+V, which works in every app and never presses Enter by itself; a classic edit box that ignores Ctrl+A gets the select-all message instead. The user's own clipboard, text or picture, comes back within one second. An Alt still held from Alt+1 is released first, so the app never sees Ctrl+Alt+A, while a held Ctrl stays held, so the next Ctrl+Down still works.

3. A Box That Never Takes the Focus: the suggestion box floats just above the chat box (below it when there is no room) and never takes the keyboard. The three versions appear as each one is complete, and a blue highlight glides to the row that is in the chat box.

4. Following Avro: Avro's own switch key (usually Ctrl+Space) is read from Avro's registry settings. Proof from typing backs it up: in Bangla mode Avro answers every letter with injected Unicode keys, so a letter with that echo means Bangla and one without means English. Even after a mode change with the mouse, LazyReply corrects itself on the first letter. The keyboard hook only watches and passes every key on, and it is installed again when Avro restarts, so it sees the switch key before Avro does.

5. Translating at the Right Moment: a dari, a full stop, ? or ! starts the translation at once; a message without one is translated after 3 seconds without typing. A decimal point (2.5) never ends a sentence, and the same text again is answered at once from the last answer.

6. Four AI Options, One Answer Format: Claude's Messages API, Gemini and any OpenAI-compatible service, all over plain HTTP with no SDK. For such a service it asks for a JSON schema first, then plain JSON, then plain text, and remembers the one that worked. When Gemini's free servers are busy or a model's daily limit runs out, the request moves to the next free Flash model.

7. Fast on a Claude Account: two Claude Code processes wait ready, and each message goes in as a new turn, so the start-up is paid once. While one process finishes an answer nobody needs any more, the other takes the new message, and the answer streams in; the first sentence arrives in about 1.4 s. Claude Code runs with --safe-mode and no tools, so the user's own CLAUDE.md and hooks never take part in a translation.

8. One File, Privacy First: it is built with the C# compiler that ships with Windows, so the result is one EXE under 200 KB that needs no installer and no Python. API keys are kept with Windows DPAPI, the log never holds the user's text, and the text goes only to the AI service the user picked; with Ollama or LM Studio it never leaves the PC. The whole app interface is in Bangla, and its light and dark colours follow the Windows setting.

Highlights

  • In the chat box of any app, browsers included: no copy and paste
  • Three versions: Professional, Friendly and Short
  • Alt+1/2/3 puts one in the box; Ctrl+Down/Up walks through them, Ctrl+Enter sends
  • Follows Avro on its own; without Avro, a shortcut of your own on any keyboard
  • Reverse translation: a client's English in Bangla, plus a separate translator window
  • Your own Claude account, a Claude or Gemini key, or any OpenAI-compatible API (Ollama too)
  • First sentence in about 1.4 s on a Claude account
  • Never sends anything by itself; keys kept with DPAPI, your text never logged
  • One EXE under 200 KB, nothing to install; free and open source under MIT

Built with

  • Windows 10/11
  • C#
  • .NET Framework
  • AI Translation
  • Bengali
  • Avro
  • Open Source