From 89a8c57345d957433628bafc0a4f52ab2e04dfb4 Mon Sep 17 00:00:00 2001 From: admin Date: Thu, 7 Aug 2025 21:16:34 +0200 Subject: changed shortcuts --- AutoHotkey/hotkeys.ahk | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) mode change 100644 => 100755 AutoHotkey/hotkeys.ahk (limited to 'AutoHotkey/hotkeys.ahk') diff --git a/AutoHotkey/hotkeys.ahk b/AutoHotkey/hotkeys.ahk old mode 100644 new mode 100755 index ab8fc12..47447db --- a/AutoHotkey/hotkeys.ahk +++ b/AutoHotkey/hotkeys.ahk @@ -104,14 +104,16 @@ DetectHiddenWindows true } } ;Telegram -#j:: +#j:: { - - ; Check if Telegram is running - if WinExist("ahk_exe Telegram.exe") + ; Target main Telegram window specifically (not notification popups) + telegram := "ahk_exe Telegram.exe ahk_class Qt51517QWindowIcon" + if WinExist(telegram) { - ; If Telegram is running but not in the foreground, bring it to the foreground - WinActivate("ahk_exe Telegram.exe" ) + if WinActive(telegram) + WinMinimize(telegram) + else + WinActivate(telegram) } } -- cgit v1.2.3