Drive:Activated logo
hi there!

I see you've stumbled on to my humble home on the net, Drive:Activated. My name's Sam, I'm an ambitious and driven uni student, residing in Melbourne, Australia, wanting to make my mark on our world. This is my site, which is mainly just my blog and some other bits. There's no definite theme to my blog, just anything that interests me, and currently that's web trends, startups, ideas and cool stuff. Check it out, leave me a comment, click on 'Who is this?' to find out more about me, or drop me a line by clicking on 'Let's Talk'. Hope you enjoy it!

My signature

Project sign

Display Brightness Vista Gadget

   Last updated: Nov 13 2007, 03:59 PM (Over 11 months ago)   

What's this?

Another Windows Vista gadget, that's what. It allows you to change your laptop's screen brightness with a click of the mouse from the sidebar.

Once you install this gadget, just hover over it and it'll tell you the allowed brightness levels on your display. Click, and your monitor brightness will change. Simple.

The process of changing the monitor's brightness may take a few seconds, so the sun icon on the gadget will blink to tell you it's doing something Smile.

Sometimes the current brightness reported by the gadget may be different to the actual brightness because of changes by other actions/programs (e.g. disconnecting/connecting power, or using Windows Mobility Center to adjust). Just give it a minute or two and it'll update itself again. The gadget is still fully operable when it's out of sync.

Why?

I got sick of having to call up the Windows Mobility Center each time I wanted to change my screen's brightness on my tablet (the keyboard function keys don't work unless I load the Toshiba Flash Cards thingy, which is nice when it works, but is slow and takes up too much memory).

What are the technical tidbits?

This gadget combines a bit of everything - javascript for the gadget logic, VBScript to get the monitor brightness details, and C# (.NET) to set the monitor brightness.

Why javascript for the gadget logic? Because I like javascript better than VBScript when manipulating HTML elements (the real answer being I know more javascript).

So why not use JScript to get the monitor brightness details? Because in the case of using access Windows methods and commands (and using WMI), I know more VBScript in that area and there is more support out there for it, given VBScript is Windows' main automation language (soon to be replaced by PowerShell I think).

And finally, why another language to set the monitor brightness? Because neither VBScript or JScript can handle the 64-bit integers required by the WMI method (and there doesn't seem to be a workaround method available). So I wrote a small console app in C#, and the gadget's VBScript simply runs that and passes a parameter telling it what brightness level to set it to.

Show me the goods!

Just so you're sure - this gadget requires Windows Vista. It won't work on anything else.

The download link is below - to install, simple double-click on the downloaded .gadget file. One more thing - if the file you downloaded does not end with .gadget, and instead ends with .zip or anything else, you must rename the file to end with .gadget or the gadget will not install. Otherwise, when you double-click on the file, you'll either see rubbish, or a zip folder full of XML, HTML and graphic files.

As usual, drop me a note if you have any problems, or suggestions. And let me know if you want the source code/binary to the console app - the rest you can get by simply unzipping the .gadget file.

Download: Display Brightness Vista Gadget

Trackbacks sign
1 Trackback
Trackback URL
Comment sign
Drive:Activated tracked back:

I'm at it again - another Vista gadget. This time I got sick of having to open up Windows Mobility

Comments sign
22 Comments
Comments RSS RSS icon
Comment sign
Misheck Gatana said:

My Toshiba laptop is on windows vista. Whenever I switch on the screen has always been brighter than I would like. Controlling brightness from the Vista is slow. I downloaded the windows vista gadget and found it works faster. I am impressed by your initative.

Comment sign
Sam said:

Misheck:

You can permanently change the default brightness of your Vista laptop - rather than change it each time via the gadget or Windows Mobility Center.

To do this, go to Control Panel -> Power Options. Then down the left side, click on adjust display brightness. Change the setting there and press save changes. The setting you set there will now be the default brightness of your display.

Comment sign
Wayne said:

Thank's for this program it saves me a lot of time ,and it's one of my favorites, thank's agin very useful

Comment sign
Meshue said:

Yea, you can dim your screen quickley when you step away from your computer, and save your laptop screen from burning out, lasting longer.

 Thank,s

Comment sign
Sunil said:

iam using sony vaio, still the brightness is not controlled. Can anyone help ??

Comment sign
Faisal said:

Thank you very much Sam. Your suggestion completely addressed my issue.

Comment sign
Sam said:

Sunil:

Do you see the different available brightness levels in the gadget (move your cursor over it from left to right and see if the numbers change)?

Comment sign
Amitabh said:

It seems like it has a great lot of potential. Since my tablet has a small screen, if you can make the gadget smaller in size, that would be great. I, and I expect some other people, would appreciate it a great deal!

Comment sign
chris said:

Thanks.    

Why not just make the download file a .gadget extension,  or put a readme file in the .zip file, I figured it out when I came back and read what I should have before downloading, lol.   I think for some new vista users, they may not know how to change extensions.  Thank you again, this will be my most used gadget.  

Comment sign
saad said:

ds

Comment sign
Alonso said:

i have tried run it, but it doesent work, it just opens a CMD console and closes allmost imediatly, what can i do??

Comment sign
Sam said:

chris:

It actually does have a .gadget extension, except my blog software was too smart for its own good, detected it's a zip file and tells browsers it's that instead.

I was too lazy to work out how to fix it before, but I've finally done it. The download should work fine now.

Thanks for prodding me into action :)

Alonso:

Try downloading it again - you might have downloaded a mangled copy due to the problem above.

Comment sign
Tim said:

Hey Sam,Downloaded your gadget because I have no "brightness tile" in mobility center(Latitude 630). Your tile, on my sidebar, has no sunshine. Just a black rectangular box. Help!

Comment sign
Tim said:

Hey Sam,Downloaded your gadget because I have no "brightness tile" in mobility center(Latitude 630). Your tile, on my sidebar, has no sunshine. Just a black rectangular box. Help!

Comment sign
Sam said:

Tim:

Hmm, from what I can gather, your machine has an ambient brightness sensor that is designed to change the display brightness automatically. Dell may have set up your computer such that it overrides the standard way of changing display brightness, rendering the widget useless.

From what I can gather in the following paragraph, using Dell's Quick Set software maybe the only other way to change your display brightness. Or maybe there are buttons on your keyboard that do the same?

"One unusual feature of the D630 is also related to the display, with a light sensor embedded into the bezel allowing for automatic adjustment according to the brightness of your environment. Dell's Quick Set software allows you to change your preferences, creating maximum and minimum preferred brightness levels, and all in all it's a nice time saving feature for everyday use."

Comment sign
Ryan said:

Hey Sam.  I love this option!  Using my computer in different light or at different times of the day requires different brightness.  I have been using this since the first of the year and have not had a single problem with it until yesterday.  It just stopped working.  It shows up blank and doesn't say anything about what's wrong.  I have reloaded it and still no luck.  Any ideas?

Comment sign
Sam said:

Ryan:

Have you tried rebooting the computer? No external monitor connected? If it shows up blank (i.e. a grey box), it means it can't read the valid brightness levels from your computer. Sometimes Windows just refuses to co-operate :)

It randomly occurs on my system, so it's hard to fix.

Comment sign
Ryan said:

Hey Sam!  I rebooted the computer a bunch of times and finally just gave up for a few days.  When I came back and tried to use it again, it worked! I guess it was just windows refusing to co-operate like you said.  Working fine again!  Keep up the good work and thanks for the quick response!

Comment sign
Stephanie said:

Exactly what I was looking for and works sooooo well.  Thank you so much!!!!

Comment sign
ika said:

tidak ada

Comment sign
ika said:

tdk ada

Comment sign
ave0000 said:

Thank you for writing this gadget.  I don't use the sidebar myself, but your DisplayBrightnessConsole.exe is a very useful little program.  I plan to use it with another program called "AutoHotkey" To use my FF/Rew keys to change brightness.  The fact that it returns the current brightness (or zero) is extremely useful.

Post comment sign
Leave a Comment
I know you want to!
(required)  
(optional)
(required)  

Want to keep stay in the loop with the comments here? Leave your email address below and you'll be informed when a new comment is added to this blog post.

(optional):  

Submit