All Projects → mxs42 → mutegram

mxs42 / mutegram

Licence: other
Disable Telegram Desktop Taskbar Flashing

Programming Languages

C++
36643 projects - #6 most used programming language
c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to mutegram

Diun
Receive notifications when an image is updated on a Docker registry
Stars: ✭ 704 (+2607.69%)
Mutual labels:  notifications, telegram
checkmk-telegram-notify
Get alerted by Check_MK via Telegram bash script
Stars: ✭ 28 (+7.69%)
Mutual labels:  notifications, telegram
Zabbix In Telegram
Zabbix Notifications with graphs in Telegram
Stars: ✭ 710 (+2630.77%)
Mutual labels:  notifications, telegram
Notify
A dead simple Go library for sending notifications to various messaging services.
Stars: ✭ 727 (+2696.15%)
Mutual labels:  notifications, telegram
Yii2 Telegram Log
Telegram log target for Yii 2
Stars: ✭ 24 (-7.69%)
Mutual labels:  notifications, telegram
Telegram Bot Github
Allows to you receive GitHub notifications right in the Telegram
Stars: ✭ 103 (+296.15%)
Mutual labels:  notifications, telegram
Github Releases Notify Bot
Allows you to receive notifications of new releases of software on GitHub in Telegram
Stars: ✭ 65 (+150%)
Mutual labels:  notifications, telegram
Bitprophet
Node crypto trading platform for Binance exchange.
Stars: ✭ 166 (+538.46%)
Mutual labels:  notifications, telegram
memes-reposter
bot for automatic broadcasting content into telegrams channels from reddit/imgur/rss
Stars: ✭ 35 (+34.62%)
Mutual labels:  telegram
chia-monitor
🍃 A comprehensive monitoring and alerting solution for the status of your Chia farmer and harvesters.
Stars: ✭ 131 (+403.85%)
Mutual labels:  notifications
munich-scripts
Some useful scripts simplifying bureaucracy
Stars: ✭ 105 (+303.85%)
Mutual labels:  telegram
WilliamButcherBot
Telegram Group Manager Bot Written In Python Using Pyrogram.
Stars: ✭ 187 (+619.23%)
Mutual labels:  telegram
gitlab-ci-discord-webhook
⛓ Here's your serverless solution for sending build status from GitLab CI to Discord as webhooks.
Stars: ✭ 32 (+23.08%)
Mutual labels:  notifications
dark
🌛 Dark themes / mode for Rambox, Franz or Ferdi messaging services
Stars: ✭ 93 (+257.69%)
Mutual labels:  telegram
MIRROR-HUNTER
Who are we? We are the Hunters of all Torrent in this world.🗡️.Fork from SlamDevs
Stars: ✭ 86 (+230.77%)
Mutual labels:  telegram
telegram-json-to-vcf
Convert Telegram Contacts JSON File to VCF File
Stars: ✭ 34 (+30.77%)
Mutual labels:  telegram
VanillaToasts
Agnostic Javascript Library for Website Notifications
Stars: ✭ 89 (+242.31%)
Mutual labels:  notifications
pykeyboard
Best Keyboard and Pagination for the Pyrogram Library.
Stars: ✭ 42 (+61.54%)
Mutual labels:  telegram
tg
`telegram-cli` for Telegram IM
Stars: ✭ 306 (+1076.92%)
Mutual labels:  telegram
github-vacations
Automagically ignore all notifications related to work when you are on vacations
Stars: ✭ 20 (-23.08%)
Mutual labels:  notifications

This tool is no longer needed

5 years passed and we finally have an option to disable taskbar flash.
Congratulations!

Mutegram

A small utility to disable taskbar flashing of Telegram Desktop (only for Windows).

The problem

Telegram Desktop is surely a great app.
It is native cross-platform app built using Qt so it has a solid performance and is relatively lightweight (imagine the same app on Electron framework). But it has one crucial disadvantage for me. It flashes taskbar icon when there is a notification.

I set my taskbar to auto-hide so it does not take any space on my screen when it's not needed.
Telegram flashes every time you have a notification (until you close it to tray but I want to be able to ALT-TAB into it). But when some app flashes its icon, taskbar stays opened and the only way to make it hide back is to bring that app to foreground.

Problem

Actually I think it's Windows problem too because it could have at least an option to change this behavior but still, in my opinion Telegram flashes too much.
I also don't understand why Telegram Desktop developers refuse to add a toggle to disable that flashing, they have an opened issue for three years, seems like they just ignore it.

The solution

The core of this problem is FlashBounce function and it's caller.
As you can see, there is no way to disable that «flashbounce» without disabling notifications completely.
Now you have two options: you can either build Telegram from sources by yourself OR you can byte-patch Telegram executable to get rid of this orange thing.
I chose the second path because I don't really want to setup the whole build environment to compile Telegram (although it's somewhat easy, they provide step-by-step tutorial).

Usage

Just download or compile this project, and place both EasyHook32.dll and winmm.dll next to Telegram.exe (default path is %APPDATA%/Telegram Desktop).
Now FlashWindowEx call will do nothing.

Details

It uses proxy DLL technique to inject into Telegram.exe process automatically on process startup.
Then it detours FlashWindowEx from user32.dll to make it do nothing.

License

The MIT License

Copyright (c) 2018 mxs42

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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].