pmb6tz / windows-desktop-switcher

An AutoHotKey script for Windows that lets a user change virtual desktops by pressing CapsLock + <num>.
MIT License
1.21k stars 229 forks source link

Focus on the last foreground window in the VD when switching to it #96

Open jadedFella opened 10 months ago

jadedFella commented 10 months ago

More Details, can you help?

jadedFella commented 10 months ago

This exactly tbh, the same issue as this guy.

AhmadFCheema commented 10 months ago

See #77.

The crude solution then was to add Send !{Esc} inside the focusTheForemostWindow(targetDesktop) function.

Also, are you using the latest version of the script? This shouldn't be happening with the new version.