This class allows you to universally control (give commands to) those apps by sending window messages to them.
You don't have to bother with tehnical details like "If I'm running Virtuawin, I have to do that, but if I'm running Dexpot, I have to do that..."; just give your command and it will do the job.
The following virtual desktop applications are supported at the moment; Virtuawin, Dexpot.
Everyone is welcome to contribute and make support for more apps & commands, but please don't relay on hotkeys - use more reliable stuff like SendMessage and similar.
Downloads:
- VirtualDesktopClass.ahk which includes: class, example, documentation, license.
- as I prefer to control virtual desktops via mouse gestures, here's Mouse gestures for 3 virtual desktops.zip - ready to run example script which contains all includes and gestures map. Run the script and any supported virtual desktop application (Virtuawin or Dexpot at the moment) and control your virtual desktops via mouse gestures with RButton.
Code: Select all
vd.SwitchToDesktop(1) ; switches to 1. desktop
vd.MoveWinToDesktop(2) ; moves active window to 2. desktop
vd.GatherWinsOnDesktop() ; gathers windows on current desktop