PPCGeeks

PPCGeeks (http://forum.ppcgeeks.com/index.php)
-   HTC Titan (http://forum.ppcgeeks.com/forumdisplay.php?f=44)
-   -   Setting back light adjust to a hard button (http://forum.ppcgeeks.com/showthread.php?t=10564)

bluecdxx 10-27-2007 12:51 PM

Setting back light adjust to a hard button
 
I am looking for a way to set one of my hard buttons to adjust my back light on my Mogul. Either something that would cycle through multiple settings or a toggle from where I currently am to max backlight would be ideal. I have searched and found http://forum.ppcgeeks.com/showthread...cklight+button but I was hoping for a way to do this without running spb mobile shell or pocket plus seeing the only function I really want from them is a back light hard button.

Any help is greatly appreciated.

bluecdxx 10-27-2007 11:23 PM

Is there no other way to do what I want except with Spb products?

andason 10-27-2007 11:29 PM

you could write a mortscript script to write registry values to adjust the backlight to max and tie it to a hard button.

http://www.sto-helit.de/index.php?mo...=list&entry=20

andason 10-27-2007 11:48 PM

1 Attachment(s)
for example.. unzip this and place it on your ppc at \windows\start menu\programs

then go to buttons in settings and tie a button to it.

you will need to also install mortscript for this to work.


#Script to change backlight settings
#Read registry settings
Brightness = RegRead ("HKCU", "ControlPanel\Backlight", "Brightness")
ACBrightness = RegRead ("HKCU", "ControlPanel\Backlight", "ACBrightness")

#Turn on the lights
RegWriteDword ("HKCU", "ControlPanel\Backlight", "Brightness", 10)
RegWriteDword ("HKCU", "ControlPanel\Backlight", "ACBrightness", 10)

#Sleep for a little while
Sleep(50000)


#Turn the lights back to original
RegWriteDword ("HKCU", "ControlPanel\Backlight", "Brightness", Brightness)
RegWriteDword ("HKCU", "ControlPanel\Backlight", "ACBrightness", ACBrightness)

andason 10-27-2007 11:51 PM

1 Attachment(s)
mortscript

sldavis 10-28-2007 01:26 AM

Ive been trying to do this same thing with my ppc 6700 will this work for me?

andason 10-28-2007 01:40 AM

sure thang.. it will adjust the settings to max.. and then after 50 secs readjust back to what they were. you can adjust the sleep to lengthen or decrease the amount of time to adjust back or delete the last two writedword lines and delete the sleep line to keep it at max until you manually adjust the backlight again.

sldavis 10-28-2007 02:20 AM

sweet!!! im going to try it right now thanks!!!!

jtrag 10-28-2007 07:48 AM

So even though this is a registry edit, you don't have to soft reset the device for it to take effect?

andason 10-28-2007 09:08 AM

soft reset is not needed.


All times are GMT -4. The time now is 05:45 AM.

Powered by vBulletin® ©2000 - 2025, Jelsoft Enterprises Ltd.
©2012 - PPCGeeks.com


Content Relevant URLs by vBSEO 3.6.0