VD.ahk : Virtual Desktop (move window, go to VD of your choice instantly, get Which VD you are in, etc.)
Just run the examples, everything explained inside
the most useful ones:
- Numpad1 to go to
Desktop 1
- Numpad2 to go to
Desktop 2
- Numpad3 to go to
Desktop 3
- Numpad4 to move the active window to
Desktop 1
- Numpad5 to move the active window to
Desktop 2
- Numpad6 to move the active window to
Desktop 3
you can remap everything
cool fixes:
Sometimes when I switch desktop, the application that’s focused on that desktop becomes highlighted in the task bar.
Example:
On desktop A, I have Firefox:

On desktop B I have Steam (note that Firefox is pinned to my task bar, which is why it’s visible on this desktop):

When I switch from A to B, Steam becomes highlighted:
(It’s possible to stop the blinking by explicitly selecting the blinking window with the mouse or alt+tab.)
When I switch back to A, Firefox also becomes highlighted (and Steam stays visible in the taskbar because it is highlighted):

This doesn’t always happen; I’m not sure if it depends on the programs or where the mouse/keyboard focus is when switching desktops. That said, it happens far too often, to the point where it defeats the point of having multiple desktops at all.
(The problem isn’t limited to Firefox and Steam, the same thing also happens with other programs like Explorer.)
how ? WinActivate taskbar before switching and WinMinimize taskbar after arriving
- Switch VD reliably works in FULLSCREEN thanks to
SetTimer, pleaseSwitchDesktop, -50
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#SingleInstance force
ListLines Off
SetBatchLines -1
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#KeyHistory 0
#WinActivateForce
Process, Priority,, H
SetWinDelay -1
SetControlDelay -1
评论