Activate window, whether it's in the taskbar or system tray Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
freespacing
Posts: 150
Joined: 28 Sep 2016, 11:14
Contact:

Activate window, whether it's in the taskbar or system tray

27 Jan 2024, 15:56

To activate a window, I use this:

Code: Select all

; Ctrl + Alt + K: switch to KeepassXC
^!K::
if WinExist("ahk_exe KeePassXC.exe") {
   WinActivate  ; Uses the last found window.  
   }
Return

But it doesn't work when the program is in the system tray.
How can I modify the hotkey?
User avatar
mikeyww
Posts: 27241
Joined: 09 Sep 2014, 18:38

Re: Activate window, whether it's in the taskbar or system tray  Topic is solved

27 Jan 2024, 22:38

Hello,

A posted trayicon library will sometimes work. Other options are below.

1. ImageSearch and click on the tray icon.
2. Run the program: some programs will respond by activating the window.
3. See if the program has a command-line option or hotkey to activate its window.
4. Contact the program's author to inquire.

Additional options may exist.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Google [Bot], j4byers, TAC109 and 118 guests