|
-
Jun 11th, 2007, 08:20 AM
#1
Thread Starter
New Member
Reading/Settings Laptop Screen Brightness [2005]
Helloooo
I'm hoping someone will be able to help me with this. I'm writing a program to run a different screensaver when my laptop is running on batteries and when plugged in. Got the screensaver sorted but would also like to darken the screen when the screensaver starts.
Does anyone know how to change the laptop's display brightness from within VB? I can't find this anywhere.
Thanks for reading!
AuroraD
-
Jun 11th, 2007, 09:01 AM
#2
Re: Reading/Settings Laptop Screen Brightness [2005]
It won't be really easy, you would probably have to use the devicecontrol function. I've never seen a good VB 'translation' of it's usage.
Would turning off the monitor all together be an option? The SendMessage API works fine and it will save even more battery power.
-
Jun 11th, 2007, 10:06 AM
#3
Thread Starter
New Member
Re: Reading/Settings Laptop Screen Brightness [2005]
Thanks for your help. I was hoping for an easy few lines but it seems that won't be the case.
It wouldn't be worth turning the monitor off altogether as the program wouldn't do anthing that can't already be done from windows control panel. I've seen the screen darkening when it's left idol on a friends laptop but i think that was done by the manufacturer's software.
My purpose of changing the screensaver is because I like to use a power-hungry graphical one when plugged in. However, I think i'll just give up and use what windows has.
Thanks for your help.
AuroraD
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|