Error:
Code: Select all
Error: Function calls require a space or "(". Use comma only between parameters.
Text: WinGet, ActiveProcessName, ProcessName, A
Line: 2
Script:
Code: Select all
!`::
WinGet, ActiveProcessName, ProcessName, A
WinGet, WinClassCount, List, ahk_exe %ActiveProcessName%
if (WinClassCount = 1)
return
if (NextWindow = "")
NextWindow := 2
element := % WinClassCount%NextWindow%
WinSet, Top,, ahk_id %element%
WinActivate, ahk_id %element%
NextWindow += 1
if (NextWindow > WinClassCount || !getKeyState("Alt"))
NextWindow := 2
return