[class] Universal virtual desktop controler

Post a reply

Confirmation code
Enter the code exactly as it appears. All letters are case insensitive.
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review

Expand view Topic review: [class] Universal virtual desktop controler

Re: [class] Universal virtual desktop controler

by guest3456 » 31 Aug 2014, 14:46

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

Re: [class] Universal virtual desktop controler

by Learning one » 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.

Re: [class] Universal virtual desktop controler

by joedf » 31 Aug 2014, 08:48

Very interesting! :D i'm actually a VirtuaWin user ;)

[class] Universal virtual desktop controler

by Learning one » 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