
You can change the hotkeys for creating, closing, and switching desktops bellow. Remember to change them back to 1 after reloading the script if you have it set to start with Windows Change the following values to reflect your current desktop state and reload the script. (The lines starting with are comments and do not affect the script) as long as the Desktop Count is correct than creating a new desktop will automatically re-sync the Current Desktop value. 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.Īctually, I just realized. Ok, I added one more thing to make it easier to re-sync the script with your desktop state.

This could take a moment depending on how many startup programs you have. Yes, the hotkeys still work when the windows task viewer is open! (WIN+TAB) Just DO NOT use the mouse!!!Īlso, wait for the script to load after Windows startup before creating new desktops or it will not work. You can actually use it in combination of the hotkeys to organize your desktops. This doesn't mean you can't use the WIN+TAB screen as an overview of your current desktops.

In order to get it working again you will need to edit the first two lines to reflect the current state of your desktops. If you do create, close, or change desktops via the WIN+TAB menu with the mouse the script will stop working. 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. Switch desktop: WIN+DESKTOP NUMBER (0 = desktop number 10) I suggest making a shortcut of this file in your startup folder so it runs when Windows starts.


Copy and paste the code bellow into notepad and save it with the file extension. I just made a script for autohotkey that accomplishes this in Windows 10 for up to 10 desktops.ĭownload and install autohotkey.
