Dan*_*ant 14
查看所有进程并检查MainWindowTitle.(你可以使用正则表达式,或者StartsWith
等)
foreach(Process proc in Process.GetProcesses())
{
if(proc.MainWindowTitle.StartsWith("Some String"))
{
IntPtr handle = proc.MainWindowHandle;
// ...
}
}
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
14999 次 |
最近记录: |