Page 1 of 1

[class] Universal virtual desktop controler

Posted: 31 Aug 2014, 08:07
by Learning one
Virtual desktop applications have some common commands like SwitchToDesktop, MoveWinToDesktop, GatherWinsOnDesktop, etc.
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: Syntax preview:

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

Re: [class] Universal virtual desktop controler

Posted: 31 Aug 2014, 08:48
by joedf
Very interesting! :D i'm actually a VirtuaWin user ;)

Re: [class] Universal virtual desktop controler

Posted: 31 Aug 2014, 10:41
by Learning one
Thanks, I'm VirtuaWin user too! :)
I added "Mouse gestures for 3 virtual desktops.zip" in the first post - ready to run example script.

Re: [class] Universal virtual desktop controler

Posted: 31 Aug 2014, 14:46
by guest3456
nice work. I hear that Windows9 will have virtual desktops built in