Re: How to set the time to turn OFF the Backlight of the PDA
Quote:
Originally Posted by Prashant Rana
I want to programmatically set the time uptill which if no action is performed on the PDA the backlight of the PDA should turn OFF.
Hmm, what platform are you targeting?
Almost all of the current devices perform this function already. If you tap on Start > Settings > Backlight (in the System tab), there's an option there for turning off the backlight if the device has not been used for a certain amount of time (ranging from ten seconds to five minutes).
Or are you looking for a way to set it outside of the presets?
__________________ Want the latest news, views, rants and raves? Visit our portal. Wish to contact me? Send me a private message or e-mail.
Yes, I am trying to set it outside of the presets, that too programmatically.
This isn't something you need to program. It's a registry setting.
Navigate to HKCU\ControlPanel\Backlight and there you will see two values: ACTimeout and BatteryTimeout. Those two control the backlight timeout value when the Pocket PC is running off AC and the battery respectively.
Simply change the decimal value to the number of your choice. It works off seconds, so for example, if you want your battery timeout to be 15 seconds, set the decimal value of BatteryTimeout to 15.
Now if you wanted to create a mini-program to do this without having to delve into the registry, then that's another idea. You'd only need to create a couple of fields and have it linked to these particular values in the registry.
__________________ Want the latest news, views, rants and raves? Visit our portal. Wish to contact me? Send me a private message or e-mail.
Thanks Darius, it would be of great help if you could tell me the method in which I can access the registry settings of the Pocket PC.
Download a copy of PHM Registry Editor from here. Once you've installed it, you can navigate to HKCU\ControlPanel\Backlight (as I mentioned earlier) and from there, you'll be able to change those values.
Quote:
Originally Posted by Prashant Rana
And also the method by which I can edit those settings programmatically using C#.Net.
Unfortunately, I haven't even had the time to pick up C# so I'm afraid I can't help you out with that one.
__________________ Want the latest news, views, rants and raves? Visit our portal. Wish to contact me? Send me a private message or e-mail.