WinENFET icon indicating copy to clipboard operation
WinENFET copied to clipboard

Autohotkey v2 translation

Open shtirlitsDva opened this issue 1 year ago • 4 comments

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")
   }
}

shtirlitsDva avatar Mar 11 '23 21:03 shtirlitsDva