Sunday, September 24, 2006

Day 10 - Jedi Concentrate

Todays app mimics a feature that is found in OS X called Exposé. The mac users in the chat room showed me a screen shot and I loved it. Very cool.

When "concentrate" mode is activated, all windows except for the current active window are smoothly faded out. The purpose is to dim everything on all of your monitors when you need to get to work.

The application resides in the systry and "concentrate" mode can be toggled by using any of the following hotkeys: Ctrl-/, F12, Win-J. Customizable you ask? Sure are - just download the code and modify it. ;)

Digg!Download the app here
Download the source here

74 Comments:

At 1:56 AM, Anonymous Anonymous said...

Only been out a few hours and already modded :)
Heres a version with options for opacity and speed:

Click Here to Download
Click Here to Download the Source

---Joe Chrzanowski
http://www.gyrolabs.com

 
At 2:44 AM, Anonymous Anonymous said...

Disregard my last comment the links were broken.

Binary Available Here
Source Available Here

 
At 2:52 AM, Blogger Unknown said...

SWEET!
The force is strong with this one.

 
At 2:58 AM, Anonymous Anonymous said...

No worry, Linux users can have this too, it's called Compiz ;)

 
At 4:43 AM, Anonymous Anonymous said...

Well exposé does a bit more than this, but I really like it!

 
At 5:43 AM, Anonymous Anonymous said...

It does not work when the desktop is expanding across multiple screens. The faded ares only covers one screen + a bit.

 
At 6:47 AM, Anonymous Anonymous said...

I would like to see this app developed further. With smooth fading and more options/functionality.

Great job!

 
At 6:52 AM, Anonymous Anonymous said...

Hey Jedi, its Jewbilee. Great App man. I love this thing. Perfect for when I really need to do work or something!

 
At 7:16 AM, Anonymous Anonymous said...

I had an idea for something like this and hopefully you can expand on it:

Instead of dimming the background, how about reducing the opacity of any window that is being overlapped by it? (and knowing not to when an app is maximized)

If you continue with the dimming route, have it so only windows that are not being overlapped are in front of the "black dim layer."

Another future project idea would be to introduce depth of field into the desktop environment: windows in the background are are gaussian blurred, and maybe have their window's opacity lowered as well.

Great work! Keep it up!

 
At 7:27 AM, Anonymous Anonymous said...

does nothing but crash, win2k

 
At 7:38 AM, Anonymous Anonymous said...

Well not exactly like Exposé, which is more of an app-and-window switcher, while this looks like it does what it says, i.e. concentrates on one window.

 
At 7:44 AM, Anonymous Anonymous said...

When I need to concentrate, I just maximize the window I am working on.

 
At 7:47 AM, Anonymous Anonymous said...

the key part of expose, however, is the zoom out and display of all the windows, so you can then pick which window you want focus of. much more convenient, intuitive and often faster way of navigating your desktop than, say, the taskbar. i love that feature in os x and find myself trying to do it out of habit in win xp, and always disappointed.

 
At 8:40 AM, Blogger Proclaim said...

Great!!
Keep it up

 
At 8:44 AM, Anonymous Anonymous said...

Any chance of making it automatic, i.e when I select a new window all the others automatically dim rather then having to press F12 again? Cool app though.

 
At 8:50 AM, Anonymous Anonymous said...

D'oh! It's already been done:
http://www.donationcoder.com/Software/Skrommel/index.html#TransOther
http://www.donationcoder.com/Software/Skrommel/index.html#Ghoster

Jacob

 
At 9:43 AM, Anonymous Anonymous said...

Well not exactly like Exposé, which is more of an app-and-window switcher, while this looks like it does what it says, i.e. concentrates on one window.

 
At 9:57 AM, Anonymous Anonymous said...

Great!
Greater if concentrate mode could be set always on... :-)

 
At 10:00 AM, Anonymous Anonymous said...

I didn't find a place to submit ideas for upcoming days so here goes:

When Windows is booting there are a lot of applications trying to start at the same time (from the registry, start menu) and my guess is that it would be better if Windows would start each application in turn waiting some time before starting the next one... Well, the only way to know for sure is by crafting a simple application!

Here's the specs:

The application would move all the shortcuts from the registry/start menu and put its own shortcut to start itself upon system start. Each original shortcut would then be started in turn after disk activity slowed down and/or CPU activity went below some threshold for some time and/or some configurable time has passed.

Hope I was clear enough.

Have a nice day.

 
At 10:16 AM, Anonymous Anonymous said...

I have a dual monitor setup and the program blacks out the apps on the second monitor, but none on the primary.

 
At 10:17 AM, Anonymous Anonymous said...

nice idea, but it doesn't work very well with two monitors

 
At 10:29 AM, Anonymous Anonymous said...

I am getting an error ("not enough storage is available to process this command"). I have a dual display setup, XP SP2, not sure what else would be helpful to diagnose the bug.

 
At 10:51 AM, Anonymous Anonymous said...

E:\Documents and Settings\sigma\Desktop\appaday\JediConcentrate\AnAppADay.Utils\obj\Debug\AnAppADay.JediConsole.KeyHook.pdb

i'd remove that dll ;)

 
At 11:02 AM, Anonymous Anonymous said...

Doesn't work well with multi-monitors

 
At 11:18 AM, Blogger William said...

Hm.. Yep, I can confirm that it doesn't behave well with multiple monitors. it seems confused as to which is the background and only handles one, not both.

 
At 11:32 AM, Anonymous Anonymous said...

It works well on my multi-monitor setup (XP SP2, running UltraMon) but it messes up my keyboard. I have my keyboard set to US-International so that I can type accents, but this program messes that up.

 
At 12:09 PM, Anonymous Anonymous said...

Doesn't work proper on my dual monitor also :-( only secondary as well, I'll take a look at the code see if I can fix it

 
At 12:17 PM, Anonymous Anonymous said...

This isn't Expose at all. This is an application-focuser, but that completely misses the boat on the benefits of Expose. It's usefulness is also quite minimal when compared to Expose.

 
At 12:20 PM, Anonymous Anonymous said...

Has really nothing to do with Expose. Expose resizes all windows / current application's windows so you can see all side by side and select one to become the new active window.

Which has really nothing to do with your app, except the background (or other applications' windows, if you chose to switch only windows of current app) becomes darker in Expose, too.

This is more like Mac freeware called Doodim.

 
At 12:42 PM, Anonymous Anonymous said...

this works on my multimon, when I recompiled it with a couple of small changes
add int totxMax = 0; before the screens loop, add totxMax = totxMax+xMax; in the loop, and change the varable in the size loop to
Size = new Size(totxMax, yMax);

Now it works good on my sys, although I also saw the "not enough storage is available to process this command" message a couple times, not sure where this comes from, but now it works on both screens properly :-)

Here is a link to the build that fixed multimon for me, hope it works for you too.
http://www.yourfilehost.com/media.php?cat=other&file=JediConcentrate_MMPatch.zip


----------------------------------------

int totxMax = 0;
foreach (Screen s in Screen.AllScreens)
{...
totxMax = totxMax+xMax;
}
Location = new Point(xMin, yMin);
Size = new Size(totxMax, yMax);

-----------------------------------------

May the force be with you?
Kernelsandirs

 
At 1:17 PM, Blogger veriya said...

ok this seems really kool..but there seems to be one little problem..every time the user changes the current window the effect is gone..isnt it possible for the effect to stay on, imean lyk if we change the current window from the explorer to a program then the program window is highlighted

 
At 1:40 PM, Anonymous Anonymous said...

Oh I recompiled it again with Joe's options, and the fix for Multi Monitors
Here

 
At 2:03 PM, Anonymous Anonymous said...

could you do someting like this:

http://they.misled.us/dark-room

again, source code is what i'm interested..... :)

thanks

 
At 2:40 PM, Blogger Bryce Leo said...

Dude you F*in rock. Makes having to use windows at work so much better. Thanks!

 
At 3:32 PM, Blogger Unknown said...

There is most certainly a bug with multimonitors, but I think your fix is making it too big. I can't play with it here at work (the only place I HAVE multimonitors). Output the vals of those 4 vars before it sets the size, and figure it out like that.

I'm also realizing that I didn't set doublebuffering to true on the form object. I'm not sure where in the "stack" transparency is drawn, but if it's in the repaint method of the form, this setting will help A LOT.

Thanks for the feedback!

BTW: this app likes a strong graphics card. The one here at work is really sucky.

 
At 3:34 PM, Blogger Chetan Thaker said...

AWESOME stuff man
Good going :)

 
At 5:29 PM, Anonymous Anonymous said...

I think the fix I put in, is right because the Size = expression is setting the actual size of form1, but when it gets the xMax from each monitor, it is getting the value of 1280(on my machine) which means the location is gonna be 0,-1280 and size is 1280x1024, that only covers one monitor, so by adding the total of all xMax for Each monitor individually the total of all of those is the width that form1 needs to draw to to cover all monitors.

I also can see how it is a gfix card hog, it works much better with Joe's options added to the multi mon fix, I turn up the speed to the max, and it is very smooth now. of course drawing that form1 across two monitors is prob a lot more intense than a single monitor ;-)

Kernelsandirs
:-)
Cool stuff though, I think I am gonna have to work on a full Expose clone :-)

 
At 8:04 PM, Blogger Michael Leddy said...

I've been looking for something along these lines for months and just found it via Lifehacker. Thank you!

 
At 9:17 PM, Blogger M.A. said...

When I double click the anappaday.jediconcentrate.winapp.exe executable, I get an error. I am running winxp on a 2.0 ghz Athlon XP. Do you have any idea what might be the problem?

 
At 1:29 AM, Anonymous Anonymous said...

All of these are great! Excellent work!

I have an idea for you if you're interested.

I would desperately love a tool which does the following ...

1. is a button on the ie toolbar (or floats permanently)
2. when pressed it creates a thumbnail of the current web address (not screen capture, html capture) (similar to http://www.thumbpress.net).
3. creates a thumbnail from that capture (similar to http://resizr.lord-lance.com/default.asp).
4. uploads the thumbnail to imageshack or similar.

This tool would save me TONS of time and I'm sure lots of other people would also find it useful.

Maybe a 'floating' app would be better so options like 'thumbnail hosting service' and 'thumbnail size' can be set with a right-click.

Keep up the great work!

 
At 3:04 AM, Anonymous Anonymous said...

I've found a weird bug while using JediConcentrate with Word (French).

Each time I use both at the same time, I can't type the "î" letter anymore. Instead, I get a "^^".

To get this "î" letter on a french keyboard, you have to press the "^" key before typing "i".

Any tips or workaround ?

Anyway, great app'. Thanks for coding it !

 
At 6:34 AM, Anonymous Anonymous said...

Both tools (original and mod) do not work for me.
Program is running and I have the tray icon, but my windows look as before.

I run Windows XP Pro with Classic Startmenu and on "Best performance".
I am working as a non administrative user. Any ideas?
Hope this piece of software does not need administrative rights?

 
At 7:07 AM, Anonymous Anonymous said...

It's not working on my PC :( at all

Operating System: Windows XP Professional (5.1, Build 2600) Service Pack 2 (2600.xpsp_sp2_rtm.040803-2158)
Language: English (Regional Setting: English)
System Manufacturer: Hewlett-Packard
Processor: Intel(R) Pentium(R) 4 CPU 2.80GHz (2 CPUs)
Memory: 1016MB RAM
DirectX Version: DirectX 9.0c (4.09.0000.0904)
DX Setup Parameters: Not found
Card name: Intel(R) 82865G Graphics Controller
Manufacturer: Intel Corporation
Current Mode: 1280 x 1024 (32 bit) (60Hz)

 
At 10:00 AM, Anonymous Anonymous said...

Wow this is awesome!
Thank you so much!
I have a dual monitor setup
Win XP
Nvidia Gforce 6600GT
Athlon XP 2800+

This seems to only work on my secondary monitor, but that is fine by me! It lessens monitor glare a whole lot and makes me less cranky! :)

Thanx Again!!

 
At 11:27 AM, Anonymous Anonymous said...

I am seeing something similar to what the frenchie dude reports. My machine has the keyboard regional settings in spanish, and instead of an accent, I get double quotes before the letter I want to accent.
Otherwise, it works great.

 
At 11:55 AM, Anonymous Anonymous said...

This looks pretty damn interesting, will be checking this one out in a while. Should be a windows feature by default if you ask me.

 
At 12:19 PM, Blogger Michael Leddy said...

One small problem — the icon in the system tray refuses to stay always hidden (I’m using XP SP2). In the list for “Customize Notifications,” the program shows up as "no title." Would that explain why?

Also, the system tray icon could be more visually pleasing. Perhaps a small back-grey rectangle with a little white rectangle within it? That’d give a clearer idea of what the program does. And then I wouldn't care about hiding it. : )

Thanks again for giving Windows users this great aid to concentration.

 
At 5:34 PM, Anonymous Anonymous said...

On my dual monitors it only darkens the second monitor!

 
At 11:31 AM, Anonymous Anonymous said...

Yeah same here, my second moniter darkens and then like and inch of my main monitor (second moniter is 1024x768 and main is 1240x1024

Is there a fix to this?

 
At 1:56 AM, Anonymous Anonymous said...

The difference between your program and Doodim is what?

 
At 3:18 AM, Anonymous Anonymous said...

I wonder how hard it is to mod it to make it auto concentrate on all programs...

 
At 4:26 PM, Anonymous Anonymous said...

Becuase Doodim is Mac only, as far as I can tell from the website.

Also, Doodim has been replaced (also, as far as I know) by Expose in OSX.

 
At 9:49 PM, Anonymous Anonymous said...

I have a dual monitor setup, and it kind of works. Take a look:
http://img459.imageshack.us/img459/4521/theforceisweakvz6.png

 
At 9:52 AM, Anonymous Anonymous said...

I am getting System.Security.SecurityException. Any ideas anyone?

 
At 11:14 PM, Anonymous Anonymous said...

doesn;t work, try winplosion instead

 
At 2:10 AM, Anonymous Anonymous said...

Hey, Dana. Great Stuff. Keep rollin' the apps out.

I have an idea that you can build on using the dimmed background. I noticed that in Google's Picasa, there's a slideshow that you can maximize to fit your screen. Can you make a simple video player using the dimmed background, but playable at full screen mode?

 
At 3:21 AM, Anonymous Anonymous said...

Thnx, pal, nice little app. Just a small thingy - it does not grey out browser window at all (it doesn't matter firefox or opera). Thnx

 
At 4:39 AM, Anonymous Anonymous said...

Ahoy, i would really love to try this app out, i think it will really make a difference. The problem is it does not start on my PC (WinXP SP2). I get "The application failed to initialize propperly (0xc0000135)". Do you have any idea what the problem could be?

 
At 1:06 PM, Anonymous Anonymous said...

[quote]Each time I use both at the same time, I can't type the "î" letter anymore. Instead, I get a "^^". [/quote]

I have this bug aswell. Is it intended :D because i use this key only for the "emoticon" "^^" it spares me on hit. yay!

 
At 1:32 PM, Anonymous Anonymous said...

On concentragte, I'd love for this to mark my Trillian connections as busy and also hide (or dim) the task bar of all other tasks.

 
At 3:26 PM, Anonymous Anonymous said...

Nice app... very nice.

 
At 7:26 PM, Anonymous Anonymous said...

I also got "The application failed to initialize properly (0xc0000135)" error when trying to start this app on XP sp2 but solved the problem by installing the .NET 2.0 Framework

Cool App though. Thanks

 
At 7:35 PM, Anonymous Anonymous said...

I like this :). Thanks

 
At 8:22 PM, Anonymous Anonymous said...

How where those 2 patches merged into the program?
I don't really know which files and how to import them into the project.

Thanks in advance

 
At 3:26 AM, Anonymous Anonymous said...

Hey I have a question. What's the point? Why not just, you know, maximize the window?

 
At 4:08 PM, Blogger Scott said...

Seriously, can someone make a similar app that automatically dims all non-active windows?

 
At 5:38 AM, Blogger Sunny Khorana said...

Try Zorro 1.5

Description

Zorro is a utility to completely blank the screen except for a rectangular area selected by the user. This is especially useful for watching videos on your computer without being distracted by other programs.
http://www.gabrieleponti.com/software/#zorro

 
At 7:16 AM, Anonymous Anonymous said...

"At 10:51 AM, Anonymous said...

E:\Documents and Settings\sigma\Desktop\appaday\JediConcentrate\AnAppADay.Utils\obj\Debug\AnAppADay.JediConsole.KeyHook.pdb

i'd remove that dll ;)"

i bet the keyboard errors are related with the keyhook...and not sure what its doing there anyway...

i d say remove it to!

 
At 8:49 PM, Blogger Addy said...

If you're getting the error "application failed to initialize (0xC0000135)" you need to install the .net framework. Link: http://www.microsoft.com/downloads/details.aspx?FamilyId=262D25E3-F589-4842-8157-034D1E7CF3A3&displaylang=en

 
At 4:48 PM, Anonymous Scribilus said...

BTW, for those still struggling with the "no title" problem, add this line after line 37 of program.cs: _icon.Text = "Jedi Concentrate";

Now you don't have to tell Windows to hide the icon after every reboot.

 
At 2:56 AM, Anonymous Anonymous said...

How do you change the command button for the program from F12 to F1?

 
At 6:38 AM, Anonymous Anonymous said...

Who knows where to download XRumer 5.0 Palladium?
Help, please. All recommend this program to effectively advertise on the Internet, this is the best program!

 
At 9:36 PM, Anonymous Anonymous said...

idk if anyone is still here but i am unable to download the source code from any of the links above, so if someone could reupload or email it to me at hamsolo474@hotmail.com, i would be greatly appreciative

 
At 4:56 PM, Blogger Jonny said...

did anyone ever make a version of this that changes with the active window?

 

Post a Comment

<< Home