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


boossy

Member
Local time
12:34 PM
Posts
1
OS
Windows 11
In Windows 10, I was able to use "Cascade Windows" with a simple .vbs script:
Code:
set objShell = CreateObject("shell.application")
call objShell.CascadeWindows()

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

However, in Windows 11, this is no longer possible. If I execute the .vbs or .ps1 file, nothing happens and no error is thrown. Nevertheless, the method is present in Windows 11. Issue the following PowerShell command:
Code:
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:
Code:
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)?
 

My Computers

System One System Two

  • OS
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    DELL Studio XPS 1647
    CPU
    Intel Core i7 620M (2.66GHz, 4MB cache)
    Memory
    8GB: 2x4GB 800MHz DDR3 SDRAM SO-DIMM
    Graphics Card(s)
    1GB ATI Radeon HD 565v graphics
    Monitor(s) Displays
    WLED Full HD 1080p met TrueLife / LG 27MP38VQ
    Screen Resolution
    1920x1080 (Full HD)
    Hard Drives
    Samsung SSD 850 EVO 500GB
    Keyboard
    Microsoft Sculpt Ergonomic
    Mouse
    Microsoft Sculpt Ergonomic
    Internet Speed
    100 Mbps
    Browser
    Brave
  • Operating System
    Windows 10
    Computer type
    Tablet
    Manufacturer/Model
    MICROSOFT Surface 3
    CPU
    Intel Atom x7-Z8700
    Memory
    4GB
    Screen Resolution
    1920x1280
    Hard Drives
    64GB eMMC
    Mouse
    Microsoft Modern Mobile Mouse
    Keyboard
    Microsoft Surface 3 Type Cover - Azerty- Zwart
    Internet Speed
    100 Mbps
    Browser
    Microsoft Edge
And using e.g. AutoHotkey, I am able to "Cascade Windows" using the following script/command:
Code:
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)?
Any particular reason you don't just create an AHK script with the DllCall? Seems that would be good enough as you can just make it a hotkey or call it from the Powershell command line when you want.
 

My Computer

System One

  • OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    PowerSpec G435
    CPU
    i7-10700K
    Motherboard
    ASRock Z490 Phantom Gaming 4/ax
    Memory
    64GB DDR4
    Graphics Card(s)
    NVIDIA Geforce RTX 2070 Super
    Monitor(s) Displays
    Dell S3220DGF
    Screen Resolution
    2560x1440
    Hard Drives
    1TB WDC .M2 Nvme SSD
    4TB Samsung 870 SSD
    PSU
    750 Watt Gold
    Case
    Lian Li ATX 205
    Cooling
    Thermal-Take Water Cooled CPU
    Keyboard
    Corsair K70 RGB
    Mouse
    Razer Basilisk X
    Internet Speed
    Gigabit
    Browser
    Brave
    Antivirus
    Windows Defender

Latest Support Threads

Back
Top Bottom