Powershell 如何将subwindowtitle获取到变量?
将窗口标题用于打印线程状态的应用程序, 所以我找到了下面的powershell脚本Powershell 如何将subwindowtitle获取到变量?,powershell,Powershell,将窗口标题用于打印线程状态的应用程序, 所以我找到了下面的powershell脚本 Get-Process |where {$_.mainWindowTitle} |format-table mainwindowtitle 这是一个完美的脚本,但应用程序有两个窗口,MainWindowTitle只是一个对话框,但所需的信息并不是这样 当进程有两个窗口时,如何从powershell获取另一个windowtitle。您可以尝试以下方法获取子窗口: Get-Process | where {$_.
Get-Process |where {$_.mainWindowTitle} |format-table mainwindowtitle
这是一个完美的脚本,但应用程序有两个窗口,MainWindowTitle只是一个对话框,但所需的信息并不是这样
当进程有两个窗口时,如何从powershell获取另一个windowtitle。您可以尝试以下方法获取子窗口:
Get-Process | where {$_.mainWindowTitle} | Get-ChildWindow
Get ChildWindow命令无法识别。Get-ChildItem似乎不一样。