The Windows Task Manager shows the command line, including parameters, that was used to run a process. For example:
Is there a way with AHK code to get the command lines, including parameters, of all running processes? This must include processes that do not have an existing window. The processes DO have a tray icon, but the reason for this question is that the excellent TrayIcon functions (original author Sean, update author Cyruz, most recent author @FanaticGuru) do not work with the latest release of Windows 11 (I'll be posting separately on this soon, but right now I need an immediate work-around). I've been using the Tooltip entry returned by the TrayIcon_GetInfo function to determine the multiple instances of my program that are running, but with that not working in W11, I need another way, and getting my program's process name along with its parameters will do the trick.
For anyone curious about the TrayIcon functions not working in W11, run this simple code:
Code: Select all
TrayInfo:=TrayIcon_GetInfo()
MsgBox % TrayInfo.MaxIndex()
#Include <TrayIconLibrary.ahk>