↓が自分なりに作ってみたスクリプトです。
#uselib "kernel32.dll"
#cfunc OpenProcess "OpenProcess" int, int, int
#func CloseHandle "CloseHandle" int
#uselib "psapi.dll"
#func EnumProcesses "EnumProcesses" int, int, int, int
#func EnumProcessModules "EnumProcessModules" int, int, int, int
#func GetModuleFileNameEx "GetModuleFileNameExA" int, int, int, int
#define PROCESS_QUERY_INFORMATION 0x00000400
#define PROCESS_VM_READ 0x00000010
#define PROCESS_ALL_ACCESS 0x001F0FFF
dim id, 256
sdim txt, 3200
sdim file, 260
EnumProcesses varptr(id), 256*4, varptr(size), 0 : num = size/4
repeat num
file = ""
hProcess = OpenProcess(PROCESS_ALL_ACCESS, 0, id(cnt))
if hProcess {
EnumProcessModules hProcess, varptr(moduleList), 4, varptr(size)
if stat {
GetModuleFileNameEx hProcess, modulelist, varptr(file), 256
}
CloseHandle hProcess
}
txt += ""+id(cnt)+" - "+getpath(file, 8)+"\n"
loop
mesbox txt, 640, 480