Hacker News new | ask | show | jobs
by davisoneee 675 days ago
For those mentioning autohotkey, this is what I use when on windows do get the same functionality:

  CycleCurrentApplication() { ; {{{1
      curID := WinGetID("A")
  
      ActiveClass := WinGetClass("A")
   ActiveExe := WinGetProcessName("A")
      oList := WinGetList("ahk_exe " ActiveExe " ahk_class " ActiveClass,,,)
      Loop oList.Length
      {
          index := oList.Length - A_Index + 1
          State := WinGetMinMax("ahk_id " oList[index])
          nextID := WinGetID("ahk_id " oList[index])
  
          if (State != -1) ; if window not minimised
          {
              WinID := oList[index]
              break
          }
      }
      WinActivate("ahk_id " WinID)
  } ; }}}1
the 'activeclass' AND 'activeexe' are there to handle cases like explorer. I primarily use this for multiple instances of firefox (although I've got specific binds to jump directly to non-media and media firefox)