Here's a project for you hackers out there... I'd love to have a way to turn on/off the LED "flash" without being in the camera app. It'd be cool if you could map this to a "press-and-hold" of one of the hardware buttons. Anybody agree, or care to give this a try?
I thought of that too. I was planning on writing an app or two for experience sake sometime in the coming weeks, and that was one of them. Hopefully, someone can beat me to it!
That is something many of us were interested in with the ppc-6600. To the best of my knowledge no one was ever successful at making a suitable program. .
That would be great. I'll never use the camera but I use the light on a regular basis. It would be sweet if there were no time limit or a 10 minute one.
Now I have a $600 flashlight. Golly, I feel like I'm in the military again...
__________________
Sprint customer since Mar 01, PPC user since Apr 04 and Technophile since birth!
Oct 06: Now completely convereged, connected and livin' large! Tablet PC+PPC = Ultimate Happiness!!! Woo-Hoo!
The BBP's Power Light USES the screen as a flashlight. You can also change it to a red/black flasher.
As for issues: well, it IS bleeding-edge. We're the final Beta-Testers for it...
__________________
Sprint customer since Mar 01, PPC user since Apr 04 and Technophile since birth!
Oct 06: Now completely convereged, connected and livin' large! Tablet PC+PPC = Ultimate Happiness!!! Woo-Hoo!
Hopefully BBP will consider making a version that uses the LED in the back of the unit. Believe it or not although the LED is much brighter I think it draws about the same amount of power as having the screen on.
Originally posted by boe Hopefully BBP will consider making a version that uses the LED in the back of the unit. Believe it or not although the LED is much brighter I think it draws about the same amount of power as having the screen on.
I think the LED will draw much less power than the screen even. Though it is very bright, LEDs use little power.
I wish their was a way to suggest it to HTC/Audiovox/UTStar (that they would actually hear) for their upcoming firmware upgrade. It would probably take a programmer 1 hour to make an additional direct link to the LED.
Originally posted by boe I wish their was a way to suggest it to HTC/Audiovox/UTStar (that they would actually hear) for their upcoming firmware upgrade. It would probably take a programmer 1 hour to make an additional direct link to the LED.
There has to be an API at some level already, since the camera application has an icon to turn it on or off. However, if that interface is not published/exposed by Microsoft and/or HTC, it could probably still be discovered by examining the object code (is there an ARM/Xscale dis-assembler?) of the camera app.
I'm sure someone will eventually take the time to figure out how to do it, but it won't be me.
There is a dll, HTCCamer1.dll, that has a function in it called "Camera_Flashlight" that almost has to be the right function. I have had no luck in calling it the CORRECT way to make the light come on, however.
Currently, I am trying to simulate the tapping of the stylus on the camera program's flash button to make it come on from a program so it can be assigned to a hardware button. Not very elegant, but it will be good enough for me if I can get it to work.
Of course, I have no free time to make it work, but hey, maybe someone else can be inspired and do it quicker than I have time for...
There appears to be a bug (or miswritten documentation) regarding the "mouse_event" windows api call. Basically you are supposed to be able to tell it to do a mouse down and mouse up (stylus tap) at a specific x and y coordinate. Nothing I do will work though. It reads the x coordinate just fine, but completely ignores the y coordinate. Which would be fine if the flash button were against the left edgae of the screen, but it is a couple pixels to the right. I haven't given up yet though, and will post back when I have more info...