我试图找到进程句柄,
HWND handle = FindWindow(0 ,TEXT("window title"));
我需要窗口标题
假设我有两个具有相同标题的进程,
所以我想做类似的东西:
for each p as process in process.getProcessByName("notepad")
if process.processname = "notepad" then
handle = p.handle
exit for
end if
next