[class] Universal virtual desktop controler

Post your working scripts, libraries and tools
User avatar
Learning one
Posts: 119
Joined: 04 Oct 2013, 13:59
Location: Croatia
Contact:

[class] Universal virtual desktop controler

31 Aug 2014, 08:07

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] [Download] (Script.ahk)GeSHi © Codebox Plus

vd.SwitchToDesktop(1)		; switches to 1. desktop
vd.MoveWinToDesktop(2) ; moves active window to 2. desktop
vd.GatherWinsOnDesktop() ; gathers windows on current desktop
Last edited by Learning one on 31 Aug 2014, 10:39, edited 1 time in total.
User avatar
joedf
Posts: 5813
Joined: 29 Sep 2013, 17:08
Facebook: J0EDF
Google: +joedf
GitHub: joedf
Location: Canada, Quebec
Contact:

Re: [class] Universal virtual desktop controler

31 Aug 2014, 08:48

Very interesting! :D i'm actually a VirtuaWin user ;)
User avatar
Learning one
Posts: 119
Joined: 04 Oct 2013, 13:59
Location: Croatia
Contact:

Re: [class] Universal virtual desktop controler

31 Aug 2014, 10:41

Thanks, I'm VirtuaWin user too! :)
I added "Mouse gestures for 3 virtual desktops.zip" in the first post - ready to run example script.
guest3456
Posts: 2022
Joined: 09 Oct 2013, 10:31

Re: [class] Universal virtual desktop controler

31 Aug 2014, 14:46

nice work. I hear that Windows9 will have virtual desktops built in


Return to “Scripts and Functions”

Who is online

Users browsing this forum: Delta Pythagorean and 11 guests