WinENFET
WinENFET copied to clipboard
Autohotkey v2 translation
The same but in AHKv2 syntax.
#e::FocusFileExplorer()
FocusFileExplorer() {
ids := WinGetList("ahk_class CabinetWClass")
if (ids.Length != 0) {
for id in ids {
WinActivate(id)
win := WinWaitActive(id,, 2)
if (win) {
Send "^t"
break
}
}
}
else {
Run("explorer")
}
}