Identifying window by icon

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
cool-RR
Posts: 23
Joined: 26 Jan 2016, 18:49

Identifying window by icon

Post by cool-RR » 09 Dec 2021, 02:58

Hi!

I'd like to use the `WinActivate` command on a window. My problem is that the window's title is generic, and so is its `ahk_class`. I'm struggling with a way to differentiate this window from other windows I have open. (The window is an SSH session provided by this extension).

The window does have a unique icon. Is it possible to tell `WinActivate` to choose a window by its icon?


Thanks,
Ram.

Return to “Ask for Help (v2)”