MScholtes / PSVirtualDesktop

VirtualDesktop is a Powershell module that provides commandlets to manage virtual desktops of Windows 10.
MIT License
304 stars 18 forks source link

Problem with switch #19

Closed prsorgen closed 2 years ago

prsorgen commented 2 years ago

Hi, i tried with a simple script to switch between two desktops every x seconds. It works only for a few switches and than it will be lagging on one screen and not switch correctly. Any suggestion?

while($true) { Get-Desktop 1 | Switch-Desktop Start-Sleep 5 Get-Desktop 0 | Switch-Desktop }

MScholtes commented 2 years ago

Hello @prsorgen,

I could reproduce the issue you described: Windows stops switching when a window wants to be placed in the foreground and the th switch occurs. You see it when its icon flashes.

You cannot switch to another desktop until you brought the flashing window in the foreground. I do not know what to do against this behaviour, seems to be a Windows function

Greetings

Markus

MScholtes commented 2 years ago

Closed because there is no reaction