Skip to content

Instantly share code, notes, and snippets.

@TLMcode
Last active December 19, 2015 14:39
Show Gist options
  • Save TLMcode/5971241 to your computer and use it in GitHub Desktop.
Save TLMcode/5971241 to your computer and use it in GitHub Desktop.
processarray.ahk
For Process in (ComObjGet("winmgmts:").ExecQuery("Select * from Win32_Process"), Processes := [])
(Process.ExecutablePath?Processes.Insert(Process.ExecutablePath):"")
Loop % Processes.MaxIndex()
Msgbox % Processes[A_Index]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment