For some reason, I can't activate Windows Explorer window:
(I.e. default file manager. Not to be confused with Internet Explorer)
Any ideas how to fix it? Thanks.
I tried it on Win7, 32 bit. Probably it will work on newer Windows versions (I don't know).
#singleInstance, force
f1::
; This works:
; (Even if multiple Notepad windows are opened)
; winActivate, ahk_class Notepad ahk_exe Notepad.exe
; This doesn't work:
; (Even if only one Explorer window is opened)
winActivate, ahk_class CabinetWClass ahk_exe explorer.exe
return