question

StijnBousard-4066 avatar image
0 Votes"
StijnBousard-4066 asked

Windows 11 Cascade Windows: possible with e.g. AutoHotkey, not with VBScript or PowerShell

In Windows 10, I was able to use "Cascade Windows" with a simple .vbs script:
set objShell = CreateObject("shell.application") call objShell.CascadeWindows()

The same is possible with PowerShell:
$ShellExp = New-Object -ComObject Shell.Application $ShellExp.CascadeWindows()

However, in Windows 11, this is no longer possible. No error is thrown, nothing happens. Nevertheless, the method is present in Windows 11. Issue the following PowerShell command:
New-Object -ComObject "Shell.Application" | gm | select Name, MemberType

And using e.g. AutoHotkey, I am able to "Cascade Windows" using the following script/command:
DllCall( "CascadeWindows", uInt,0, Int,4, Int,0, Int,0, Int,0 )

I was wondering if there is a way to restore a functioning "Cascade Windows" using VBScript (or PowerShell)?

windows-11
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

0 Answers