Bind this to a macro key or mouse key and make Telegram / Whatsapp popup for you to write a message or minimize it. This way you do not need to restore and minimize the window all the time someone sends you a message you want to read or reply to.
Requires: Telegram or Whatsapp Windows app running.
Code for Telegram
Code: Select all
#SingleInstance ignore
SetTitleMatchMode, 2
IfWinActive, Telegram
{
WinMinimize
} else {
WinActivate, Telegram
}
Code: Select all
#SingleInstance ignore
SetTitleMatchMode, 2
IfWinActive, Whatsapp
{
WinMinimize
} else {
WinActivate, Whatsapp
}