Skip to content

Exposé for Windows 7 (Updated with x64 version!)

Posted on:February 19, 2011 at 07:34 AM

There are many things of Mac OS X that I find superfluous, contrarian (the window buttons on the wrong side), downright annoying even (task management). However, they do have many things that I wish Windows had. Right now I talk of one of from the latter group, namely Exposé. In a recent video of Microsoft’s new Touch Mouse (the proper discussion of which probably requires a whole separate post), attached here, showcases similar functionality in response to a certain gesture. You can see the functionality at the 1:33 mark in this video:

This caught my fancy. After a quick Google search, I found Switcher, a handy little utility which offered the same functionality. I downloaded and installed it, and loved it. I especially liked the “type to search” feature while in the “exposed” state, which felt a lot like GnomeDo from Ubuntu. Now the one final thing I wanted to be able to do, was to “expose” the windows with my trackpad.

One pretty straightforward way to do this is to set a corner of the screen as a cue for this. A natural choice would be the bottom left corner, currently occupied with previewing the desktop. It’s a feature I don’t use much, and would probably not be missed when eliminated. However, I wanted a function closer to what happens in Mac OS X, and in the video. I wanted to use the multi-touch capabilities of my ClickPad to achieve the same.

Now, the Synaptics driver of my ClickPad does offer “Application Gestures”, as is shown in the following screenshot:

Unfortunately, there aren’t a lot of configuration options allowed. The only thing I can set is what application (.exe / .bat) would be triggered, as shown here:

So I set about looking for a way to make an exe which would simulate a keystroke. And, to my utter astonishment, after almost 3 hours of scouring the web I haven’t found anything. I’ve tried the SendKeys method of .NET, AutoHotKey, and even studied some Windows Scripting (which I’m not familiar with at all), but have found no quick & easy way to do this. This shows how unusable our computers still are, and how much they leave to be desired. All I want to do is make an exe or a bat or any file which simply simulates some keystrokes, but to no avail.

If you know of a way this can be done, or any other way (I even looked at other Symantec driver options to see if any configuration allows other settings for application gestures, again with no success) to do this, I would be obliged to hear about it. In the meanwhile, I’ll keep looking, and if I find a way to do this I will update this post with my solution.

So now I have a solution. I found this cool library, Windows Input Simulator, which let me make a simple C# console application which simulates Windows + ~, which is the default shortcut to “expose” windows. You can download my package from here. It has the Windows Input Simulator dll (required), and my switcher.exe file. Just make your Synaptics configurator point to that file in your system and enjoy Exposé for Windows 7!

UPDATE:

I’ve built a leaner, faster, 64-bit optimized version, that you can get here.

The original post can be found here: https://anterence.blogspot.com/2011/01/expose-for-windows-7.html