https://github.com/hoeci/tgmidscroll
A lightweight middle-click auto-scrolling utility for Telegram Desktop on Windows.
https://github.com/hoeci/tgmidscroll
auto-scroll cpp middle-click navigation open-source scroll smooth-scrolling tdesktop telegram telegram-desktop tg utility winapi windows
Last synced: 4 months ago
JSON representation
A lightweight middle-click auto-scrolling utility for Telegram Desktop on Windows.
- Host: GitHub
- URL: https://github.com/hoeci/tgmidscroll
- Owner: hoeci
- License: unlicense
- Created: 2026-02-11T12:22:47.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2026-02-11T14:16:49.000Z (4 months ago)
- Last Synced: 2026-02-11T22:22:18.257Z (4 months ago)
- Topics: auto-scroll, cpp, middle-click, navigation, open-source, scroll, smooth-scrolling, tdesktop, telegram, telegram-desktop, tg, utility, winapi, windows
- Language: C++
- Homepage:
- Size: 56.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TgMidScroll - Telegram Desktop Middle-Click Scroller
**TgMidScroll** is a lightweight Windows utility that adds middle-click auto-scrolling to [Telegram Desktop](https://github.com/telegramdesktop/tdesktop). It mimics the behavior found in web browsers like Chrome or Firefox.

## Features
* **Native Feel:** Smooth scrolling with acceleration logic.
* **Visual Feedback:** Changes cursor to scroll anchors (North/South/Middle) just like a browser.
* **Auto-Start:** Automatically runs on Windows startup after the first launch.
* **Safe:** Only active when the Telegram window is under the mouse.
* **Lightweight:** Uses minimal resources (written in C++ WinAPI).
## Usage
1. Download `TgMidScroll.exe` from the [Releases](../../releases) page.
2. Move the file to a permanent folder before running.
3. Run the executable.
4. Open Telegram and click the Middle Mouse Button (Wheel Click) to scroll.
### Hotkeys
(These work only when a Telegram window is in the foreground)
* `Ctrl` + `F12`: **Toggle** the script On/Off.
* `Ctrl` + `F11`: **Exit** the application completely.
### Uninstall
1. Press `Ctrl` + `F11` while Telegram is focused to close the app.
2. Delete `TgMidScroll.exe`.
## Building from Source
To compile it yourself, you will need a C++ compiler for Windows (such as **w64devkit** or **MinGW-w64**).
**1. Compile Resources:**
```bash
windres resources.rc -O coff -o resources.res
```
**2. Compile Application:**
```bash
g++ -o TgMidScroll.exe main.cpp resources.res -lpsapi -lgdi32 -lwinmm -static -mwindows
```