[class] Universal virtual desktop controler

Post your working scripts, libraries and tools for AHK v1.1 and older
User avatar
Learning one
Posts: 173
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

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: 8951
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: [class] Universal virtual desktop controler

31 Aug 2014, 08:48

Very interesting! :D i'm actually a VirtuaWin user ;)
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
User avatar
Learning one
Posts: 173
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: 3462
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 (v1)”

Who is online

Users browsing this forum: gwarble and 50 guests