powershell - Windows 11 Cascade Windows:可以使用 AutoHotkey,而不是 VBScript 或 PowerShell
问题描述
在 Windows 10 中,我可以通过一个简单的 .vbs 脚本使用“Cascade Windows”:
set objShell = CreateObject("shell.application")
call objShell.CascadeWindows()
PowerShell 也是如此:
$ShellExp = New-Object -ComObject Shell.Application
$ShellExp.CascadeWindows()
但是,在 Windows 11 中,这不再可能。不过,该方法存在于 Windows 11 中。发出以下 PowerShell 命令:
New-Object -ComObject "Shell.Application" | gm | select Name, MemberType
并使用例如 AutoHotkey,我可以使用以下脚本/命令“级联 Windows”:
DllCall( "CascadeWindows", uInt,0, Int,4, Int,0, Int,0, Int,0 )
有没有办法使用 VBScript 或 PowerShell 恢复正常运行的“级联 Windows”操作?
解决方案
推荐阅读
- merge - 如何在Stata中将州缩写更改为州名?
- javascript - 如何在网页中测试 ssh javascript 代码
- javascript - 如何将 API 响应映射到 Google 表格
- r - tune r 包(tidymodels)中的 tune_grid 函数出错 - 错误:“参数”对象具有必需的列
- grep - 我怎么能用 grep 排除一行?
- python - 每第 n 个实例在 Numpy 数组中查找最大值
- google-colaboratory - 启动 TensorBoard 失败(以 -6 退出)
- javascript - 在 React 中使用 .map() 时,任何人都可以帮助解决类型错误问题吗?
- python - 使用 Pandas 库更改标题/列名的困难
- vba - 使用 API/宏在 FACE 上按 ID 选择