I just made a script for autohotkey that accomplishes this in Windows 10 for up to 10 desktops.
How to get it working:
Download and install autohotkey. Copy and paste the code bellow into notepad and save it with the file extension .ahk
I suggest making a shortcut of this file in your startup folder so it runs when Windows starts.
Switch desktop: WIN+DESKTOP NUMBER (0 = desktop number 10)
New desktop: CTRL+WIN+D
Close desktop: CTRL+WIN+F4
Display desktop state: WIN+'
In order for it to work you must ONLY use hotkeys for opening, closing, and changing desktops because the script listens for these hotkeys to know the current and total number of desktops.
If you do create, close, or change desktops via the WIN+TAB menu with the mouse the script will stop working. In order to get it working again you will need to edit the first two lines to reflect the current state of your desktops. (desktopcount/currentdesktop)
This doesn't mean you can't use the WIN+TAB screen as an overview of your current desktops. You can actually use it in combination of the hotkeys to organize your desktops. Yes, the hotkeys still work when the windows task viewer is open! (WIN+TAB) Just DO NOT use the mouse!!!
Also, wait for the script to load after Windows startup before creating new desktops or it will not work. This could take a moment depending on how many startup programs you have.
Ok, I added one more thing to make it easier to re-sync the script with your desktop state. There is now a hotkey that will display the state the script believes the desktops to be in so all you have to do is adjust your desktops with the mouse to fit the script and it will be all synced up again! For me with a Swiss keyboard it worked out nicely having the '? key next to 0 and it makes sense with a ? on it, but on other keyboards you may wish to change this which can be done easily by changing the line right after the hotkey for 0/10 (starting with #') to whatever you like.
Actually, I just realized.... as long as the Desktop Count is correct than creating a new desktop will automatically re-sync the Current Desktop value.
(The lines starting with ; are comments and do not affect the script)
;If the script stops working:
;Change the following values to reflect your current desktop state and reload the script.
;Remember to change them back to 1 after reloading the script if you have it set to start with Windows
desktopcount := 1
currentdesktop := 1
;You can change the hotkeys for creating, closing, and switching desktops bellow.
;The current hotkeys are CTRL+WIN+D for new desktop, CTRL+WIN+F4 to close desktop
;and WIN+NUMBER for switching desktops.
;For example, to change the hotkey for new desktop replace ^#D bellow with the desired hotkey.
;Refer to the autohotkey documentation for a full list of symbols refering to modifier keys,
;as you can see ^ is CTRL and # is WIN key.
;If you wanted to change the switch desktop from WIN key to CTRL for example you would have
;to replace the # before each number to a ^
#'::MsgBox Desktop Count = %desktopcount%`nCurrent Desktop = %currentdesktop%
;Do not change anything after this line, unless you know what you are doing ;)
desktopdiff := desktop - currentdesktop
if (desktop > desktopcount)
if (desktopdiff < 0)
desktopdiff *= -1
else if (desktopdiff > 0)
currentdesktop := desktop
if (desktopcount > 9)
currentdesktop := desktopcount
if (currentdesktop != 1)
WIN + 1/2/3/4...opens, switches to, or minimises the window in the corresponding numbered position in the task bar. For example, if I have Chrome pinned to the taskbar in position 1 and it is currently closed,
WIN + 1will open it. Pressing again will minimise it, and pressing again will bring the window back. I can combine this with other shortcuts; now pressing
WIN + SHIFT + 1would open a new Chrome window, for example.