I am constantly finding myself in this edge case of, not being able to identify a perticular window reliably.
I am tired of relying on the devoloper to give their software a title bar with meaningfull information. So I have set out to solve this. After much searching and reading. I have arrived upon:
~Browser_Back & space::
WM_SETICON := 0x80
ICON_SMALL := 0
ICON_BIG := 1
IMAGE_ICON := 1
$F1::
hIcon := LoadPicture("Shell32.dll", "Icon5", IMAGE_ICON)
SendMessage, WM_SETICON, ICON_SMALL, hIcon,, A
SendMessage, WM_SETICON, ICON_BIG, hIcon,, A
Return
It will change the active windows icon.
Its not my code, I found it HERE. It works very reliably.
I want to build upon this, Is there a way for Authotkey to work with a window based on its current icon? Commands like
#IfWinActive
#If
If
etc etc can work on a windows title and controls but what about its icon?
I searched as much as I could on this topic and turned up with nothing.
Any help would be really wellcome