【发布时间】:2020-12-06 13:56:04
【问题描述】:
我想在桌面之间移动一个窗口。 像这样的:
$app = Start-Process notepad.exe -PassThru
sleep 1
$hndl = $app.MainWindowHandle
# Move notepad window to desktop №2
[DesktopManager]::MoveToDesktop($hndl, 2) # True
# Get the number of desktop, where the app is located now
[DesktopManager]::GetDesktopWindow($hndl) # 2
#etc...
我找到了this 和this,但我不明白如何通过 PowerShell 运行它。
我也找到了this...
【问题讨论】:
标签: c# .net powershell winapi