Search this site


Metadata

Articles

Projects

Presentations

Windows window management

My first real dive into any real windows programming was last week. There was much to learn: winapi, managed c++, wpf, and visual studio. Despite all the learning hurdles, I finally have a somewhat-working first-feature of a window management tool I'm working on - the first feature is being able to find an open window and jump to it.

For fun, it uses WPF's easy gradients and easy transparency. WPF's coolest feature is it's item templating, where you can easily represent a data object (say, a window structure) in the UI. The behavior of the tool right now is similar in behavior of my firefox tabsearch extension, where it shows only items matching input words (each word is treated as a regex, etc).

If you are curious, download winmgr.exe. When you run it, nothing happens - it registers the hotkey 'alt+space'. Press alt+space and then start typing the name of the window you want to switch to. Press enter to select the first window in the list.

I worked around VS Express' limitation around resource editing (it's not allowed) by telling VS to compile my UI files (XAML) with a custom ruby script that turned each into string-escaped #define (eg; #define FOO_XAML "<.....").


2 responses to 'Windows window management'

Showing last 2 comments... (Click here to view all comments)

Dan Fitch wrote at Mon Jul 27 05:47:51 2009...
You may want to look into AutoHotkey, which is a fairly capable scripting language [despite the goofy syntax] which has pre-existing scripts for a lot of these sorts of windows management tools. Somewhat like xdotool for windows but not as powerful... ;)

But hey, if you're going to try to make window management not suck on Windows, I'm not going to try to stop you!

jackywdx wrote at Tue Aug 18 20:09:56 2009...
so interesting.
I hope some day i can learn these too, lots of knowlege to learn.


Leave a reply

You need javascript enabled to use this form. Anti-spam efforts ongoing. Also, if the comment doesn't show up, it's because the form expired. Go back and copy your comment, reload the form, and resubmit. Apologies if this is a hassle, I'm just playing with antispam methods right now. If this insists on not working, please email me about it.

Name (required)
E-mail (optional, if you want me to be able to email you back)
URL (also optional)
Comment: