Change Backlight Button to Camera flash light - JASJAR, XDA Exec, MDA Pro General

Hi all,..
Is there a way to change the Backlight button on the universal so it activates the Camera light on the back of the device instead of turing on the backlight?
When possible the Universal becomes a pocket flashlight. Now when I want to activate the universal camera light I need to start up the camera software, It would be much quicket to just press the Light button to enable and disable the bright camera light. The Light button is now unuseful to me because the backlight automatticly turns on when tapping the screen, so no button needed...
anyone got a idea?
Best regards,..
Arjan

Now thats a damned good idea!! The backlight button is useless anyway.
Anyone here got the skills, I am afraid that I am just a lowly win32/KM developer...
Whats the best way to get into WM2005 coding?? Does it still require you to install 10,000 toolkits, or does Visual Studio 2005.net have the nessesaries? (if work ever sorts out our MSDN sub that is!)
Nigel

Paging buzz_lightyear! Paging buzz_lightyear!
buzz_lightyear to the rescue!
..... please?

As an almost entirely unrelated aside, you guys know that my program VJLumos, for the superbright screen, works on the Universal?
Doesn't make that much difference because it already has a nice screen.
V

Hi Buzz,..
Seems you know all about this schit. Can you tell uss if this is possible?
Regards..
arjan

vijay555 said:
As an almost entirely unrelated aside, you guys know that my program VJLumos, for the superbright screen, works on the Universal?
Click to expand...
Click to collapse
True, true... but the camera flash is trully bright!!! Even more than the screen!
I've checked the Win32 Mobile API and found nothing, so the solution must be in one of the HTC DLL's!
Disassembling Camera.exe in IDA didn't give big results neither... :?
I'll continue my reseach and post the results here!

Just wanted to keep this close to the top of the forum,
I would love this feature! Please please pretty please
Regards, Simon

Me To
would be great to have a portable flashlight with me all the time

Still triying, but until now, no success...
buzz_lightyear, can you give a hand here?

Realy hope anybody can find it out because this would be really great!!!

But can it be fixed?

Will this be possible?
not that I really know too much about all this kinda stuff, but MortPlayer refuses to recognise the button with a lightbulb on it even if you use the option that allows you to specify a hardware button by pressing it. Does this mean that this button is somehow hidded frm WM5 or am I being silly?
//Xi

MusicPlayer can recognize the button, I think it takes it as some kind of function button (F4 or F6 or something like that), so is definitely possible to use it.

I actually use it, after adding it to the registry. The button code is C8, so you just have to copy paste another button, and change any CX occurence to C8.
Key is HKLM/SOFTWARE/Microsoft/Shell/key/40CX

OK, so that's taken care!! Now to find HOW the camera turns the flash light on... I'm sure it's some kind of API..... :? :?

http://msdn.microsoft.com/library/e..._7effd1fa-1b3e-41ba-b176-42cb16dae7d4.xml.asp
i think this is done at driver level....
we might need to hook up with the camera driver dll, disassemble it and get the function names....
and then, need to write an app which will link up the dll at run time and call the fn....
apart from that, theres no simple way to do so using MS provided sdks for wm5....
S

dreamtheater39 said:
http://msdn.microsoft.com/library/en-us/still/hh/still/WIA_PropTable_7effd1fa-1b3e-41ba-b176-42cb16dae7d4.xml.asp
i think this is done at driver level....
Click to expand...
Click to collapse
I agree!! But I don't think that WIA is something to go thrue, since that applies to Win32 only!

That link was from the Desktop Windows DDK. The windows mobile DDK is a different beast.
I suspect the API will be similar tho. I very much doubt whether the camera app is going to directly call an IOCTL down in kernel mode to control the camera light (that would be crude!) It will be doing so via a user mode API. The key is going to be to find which DLL handles this and what the function name and format is!
Unfortunately although I write Desktop Windows drivers, I have not got the first clue about windows mobile programming - dont even know what tools to install!
Nigel

Just noticed something very odd: WM2005 emulator does NOT have camera.exe!!!
Camera.exe is the picture taking app on the WM2005! Where the hell is it?? Only on real devices (my Exec has it)?

ei99070 said:
Just noticed something very odd: WM2005 emulator does NOT have camera.exe!!!
Camera.exe is the picture taking app on the WM2005! Where the hell is it?? Only on real devices (my Exec has it)?
Click to expand...
Click to collapse
the wm5 sdk has the camera api exposed...however, no luck finding anything related to the flash light
i think its something htc has directly hooked up.
horrible MS they have to goof up somewhere ..... :evil:
i guess some disassembling is needed
buzz...where r u dude???
San

Related

Flashlight on without camera???

Hi Guys.
I use the flashlight a lot. It comes in handy but is a bit of a pain having to switch the camera on to use it.
I tried looking through the whole of the registry to see if I could find a way of switching it on without the Camera but no luck. If I could do it' I would either set up a voice command to use it or use one of the buttons directly to run a program to switch it either on or off depending on what it's state is now.
Is it possible or is the flashlight's functions restricted purely to the Camera?
Thanks in advance
Brian
Vijay of the forum has been working on this project with Vjcandela - as yet no joy, but we are forever hopeful :mrgreen:
see here http://forum.xda-developers.com/viewtopic.php?t=41642
Won't somebody please, give me a Wizard?!?
Just joking...
btw, can someone try Haret on the wizard and check if that starts up the flash. If it does, I'll reverse engineer from there. I don't have a wizard and can't test the more elegant driver based solution without the hardware.
V
vijay555 said:
Won't somebody please, give me a Wizard?!?
Just joking...
btw, can someone try Haret on the wizard and check if that starts up the flash. If it does, I'll reverse engineer from there. I don't have a wizard and can't test the more elegant driver based solution without the hardware.
V
Click to expand...
Click to collapse
Tried haret on my wizard vijay - application wouldn't even start
meschle: thanks for trying it. I'll get a Wizard one day. Until I get more HTC hardware to reverse engineer, I'm not really clever enough to implement a more generic solution. For now, Universal and variants only I think.
Hey, and thank you again for your PMs
V

Program to turn on Flash (LED light_

I would like to be able to program one of the buttons to turn on the flash, it takes too long to sometimes open the cammera so I would like to get the flash to go on.. (and on the brighter light also).. any ideas, links?
thanks
e..b
Nope - no solution as of yet. Your best bet is to go to the following thread, and choose "Watch this topic" at the bottom.. then just follow any updates to it:
http://forum.xda-developers.com/viewtopic.php?t=41642&highlight=flashlight - VJCandela - torch/flashlight on HTC Phones
Just to make this clear - at the time of this writing, vijay's utility does not work on the HTC Wizard. If anybody has an HTC Wizard to spare to send to him, he can probably make it work
any news on this one ?
or has anyone an idea where to look in the registry for it ?
i really like to have a litte prog or shortcut key for the flashlight to
function as a flashlight
vj has one
if you would read then u should have noticed this little part of text which says: vijay's utility does not work on the HTC Wizard.
offcourse i tried it and many others and even tried to alter the program
but since no-one knows what keys involved i thought i might bring this to
attention... hopefully someone will try and find this out as i think many
people would like to have this feature.

Great app idea

I was thinking about some annoying things about the Wizard and was wondering if anyone knew of a program that would let you re-assign button combinations for system shortcuts?
Like the Align screen. If you play emulators you probably know what I mean. Or the Run shortcut, pressing the enter key and holding the stylus on the clock is not worth it, but hold Windows key and hit "r" would be nice.
Anyone know of a program that will allow you to do this?
Or any Programming masters want to take this up?
PQz should allow you to do most of that stuff (eg windows key + r = run, I think).
Regarding the align screen, I've written VJCalibrula to disable that, but I've also written another tool to allow you to reassign most of the hardware assigned keyboard apps, eg reassign internet explorer combo, filexplorer combo, on the Hermes the video key etc. Also reassign the wired headset button to launch any app.
I could probably also write an app activated by the light sensor, but didn't think there was much point!
I'm going to try to build an app around the idea and release eventually.
V
PQz should allow you to do most of that stuff (eg windows key + r = run, I think).
Regarding the align screen, I've written VJCalibrula to disable that, but I've also written another tool to allow you to reassign most of the hardware assigned keyboard apps, eg reassign internet explorer combo, filexplorer combo, on the Hermes the video key etc. Also reassign the wired headset button to launch any app.
I could probably also write an app activated by the light sensor, but didn't think there was much point!
I'm going to try to build an app around the idea and release eventually.
V
Click to expand...
Click to collapse
Vijay555 I was kinda hoping you would see this do you know though if any of these work on the Wizard?
I tried VJCalibrula but the program didn't execute. Unless you have created an update since I last tried.
I did an updated VJCalibrula for your 2.26 rom, which one of your brethren tested and said it worked. Ergo:
Please test -
http://www.vijay555.com/vj/releases/vjcalibrula/vjcalibrulawizard.exe
However, to get some feedback if it worked, make a shortcut to the .exe and run with the command line -debug to get info.
The new unnamed app should work on pretty much every keyboard device, although I don't have a wizard and it really holds back my testing. VJVolubilis still can't be finalised because of this... one day
I'm still wondering how to present the final of VJ[...] button app. I'm using a rough and ready version for now, but I'll try to implement some kind of GUI eventually.
Ask me in a week or so and I'll try to send you an alpha if you want.
V
VJCalibrula does NOT work on the HTC Wizard (or at least my Cingular 8125). I am DYING for a release, as this Capcom emulator is freaking sweet, but this align screen nonsense is beyond annoying.
Please help!!
Vijay555 is the ****zl!
I did an updated VJCalibrula for your 2.26 rom, which one of your brethren tested and said it worked. Ergo:
Please test -
http://www.vijay555.com/vj/releases/...rulawizard.exe
However, to get some feedback if it worked, make a shortcut to the .exe and run with the command line -debug to get info.
The new unnamed app should work on pretty much every keyboard device, although I don't have a wizard and it really holds back my testing. VJVolubilis still can't be finalised because of this... one day
I'm still wondering how to present the final of VJ[...] button app. I'm using a rough and ready version for now, but I'll try to implement some kind of GUI eventually.
Ask me in a week or so and I'll try to send you an alpha if you want.
V
Click to expand...
Click to collapse
Wow for some reason I was auto unsubscribed to this, but this programs works perfect no more align screen shortcut. whilst playing games.
VJCalibrula does NOT work on the HTC Wizard (or at least my Cingular 8125). I am DYING for a release, as this Capcom emulator is freaking sweet, but this align screen nonsense is beyond annoying.
Please help!!
Click to expand...
Click to collapse
aNiMeMaN14 what ROM are you using? vijay said that he configured it for the 2.26 rom.
anyway works great for me. Thanks vijay!!
Guys I've rewritten VJCalibrula and VJUzumaki to work on (hopefully!) any HTC device now. I'm going to be doing a bit more testing prior to release though. Glad the current versions work.
V
vijay555 said:
Guys I've rewritten VJCalibrula and VJUzumaki to work on (hopefully!) any HTC device now. I'm going to be doing a bit more testing prior to release though. Glad the current versions work.
V
Click to expand...
Click to collapse
hmmmm.. and where is the update?
Which app and which device?
V

Screen Orientation - VueFlO

Has anyone thought about linking the screen orentation to VueFLO so it automatically changes depending on the orientaiton of the device? Is this possible? I would certainly be interested
apd said:
Has anyone thought about linking the screen orentation to VueFLO so it automatically changes depending on the orientaiton of the device? Is this possible? I would certainly be interested
Click to expand...
Click to collapse
Good Idea!
would LOVE to see that....
Would VueFLO be able to tell the difference between tilting the device to the left (when in landscape) and rotating it into portrait?
A really REALLY cool idea though
Less talk and more results !!!
This would be truly a great app to have on the advantage. Anyone out there willing to build this app for us, it would be appreciated to the entire forum.
is it possible....and if so..how..?? doesnt VueFlo..uses manual buttons..can any1 care to explain if its possible or not..buh if it is..then it wud be great
i would to wite a programe for VueFlo on athena but i can't find any way for connect to VueFlo
i would write the programe for a thing like anti thief
it mean for example if i take athena on the table and turn the programe on, then if someone takeit, it play a sound and ...
i hope you can underestand my post
sorry for my bad English
Arya said:
i would to wite a programe for VueFlo on athena but i can't find any way for connect to VueFlo
i would write the programe for a thing like anti thief
it mean for example if i take athena on the table and turn the programe on, then if someone takeit, it play a sound and ...
i hope you can underestand my post
sorry for my bad English
Click to expand...
Click to collapse
Eybi nadare dadash.. Your english is just fine...
And that sounds like a great idea... look, i do some xcode programming for iphone and being a close plathform i feel you can do more on that then Athena. dont get me wrong i love my Athena and i wouldnt change it but i think it is capable of so much more ... i broke my x7500 and got iphone and wasnt doin it so i got another athena. i use the both and i love my athena more than i phone....
fatouraee said:
Eybi nadare dadash.. Your english is just fine...
And that sounds like a great idea... look, i do some xcode programming for iphone and being a close plathform i feel you can do more on that then Athena. dont get me wrong i love my Athena and i wouldnt change it but i think it is capable of so much more ... i broke my x7500 and got iphone and wasnt doin it so i got another athena. i use the both and i love my athena more than i phone....
Click to expand...
Click to collapse
you learn persian
eyval eman jan, pas irani hasti
thanks
i think athena is very better and i love my athena and don't change it with any other
but there's some small problem on it, like phone call sound recording and some other...
tanX for your answer and sorry for my english too
So is anyone actually create this program, or are they going to bull**** about how cool it is, and easy to make ......
SupraSkylineSTI said:
So is anyone actually create this program, or are they going to bull**** about how cool it is, and easy to make ......
Click to expand...
Click to collapse
well i guess you could just always do it
irus said:
well i guess you could just always do it
Click to expand...
Click to collapse
Believe me, If I could, I would.
Some coding god needs to reverse engineer to vueflo apps to work out how the hardware is accessed. After that, any coder can do it just like the iphone/ipod people are all making stuff that uses the accelerometer in them.
Its not an easy task. We need somebody in HTC to leak the details really.
Arya, so you were never able to fix your phone call recording problem? The built-in recorder handles it, I forget now why you were still having a problem. Off-topic, I know, discuss on the original thread.
On-topic, the motion sensor on the hard drive is just that... a motion sensor. Not an orientation sensor (like mercury switches are). Just turning the unit on its side won't let the OS know its now on its side, however, by adding some kind of motion code it will work just fine. Like shaking it twice downward in the direction you want to be down. Shaking it once would produce too many false changes, but twice or maybe 3 times would send the right message.
This type of phone input has been in the news a lot lately, along with vibration as a feedback. The idea on the news is you would shake your phone to see if you have any messages waiting, and it would vibrate back if you do. Unfortunately since the Athena doesn't have a vibration motor the output part isn't possible, but the input part is, since it has the motion sensors already! (the lack of vibration is one of the top-5 flaws of this device, IMO, hopefully it will get added on the X7502)
So, taking the topic of this thread one step further, how about creating an application that launches apps based on motion input? Yes I know there is a program out there that lets you reprogram most of the function buttons to do this (I forget its name at the moment, I haven't bought it yet), but adding motion to this mix would be so much cooler!
shake it baby?
these ideas seam very good but sahaking it multiple times and to open programs seams like it may cause problems because our device is just tooo big, imagine to shake or rotate ur device a specific way to get pie running (maybe it could be shaken to the rythem of ur favourite song (which has to be the Smashing Pumpkins..) and it shakes out of your hand on to the concrete pavement below wooops!!! just imagine the insurance form for that
Well, the unit's motion sensitivity is quite high. Easily confirmed by changing the viewflo sensitivity to high and then gently tilting the unit when you are in a browser. You wouldn't have to create martinis or milkshakes to launch an app, just a gentle flick or two will do. A downside of all this is carrying it around would present problems (either on your belt or in your hand). Even if you ignore the g-sensors when the cover is on, the cover-on switch is so faulty you might get to work and find that you wired $150 Euros to the Red Cross and sent all your checking account information to some guy in Nigeria.
techntrek said:
Arya, so you were never able to fix your phone call recording problem? The built-in recorder handles it, I forget now why you were still having a problem. Off-topic, I know, discuss on the original thread.
Click to expand...
Click to collapse
tanX
i can't record call when i talk with handsfree
only when i used load speacker it record, but on load speack can't talk good, and call quality is not good!!
I try some of software that the friends tell me, but nothing not work
this is the Thread: http://forum.xda-developers.com/showthread.php?t=346126
tanX
apd said:
Has anyone thought about linking the screen orentation to VueFLO so it automatically changes depending on the orientaiton of the device? Is this possible? I would certainly be interested
Click to expand...
Click to collapse
why did i just know someone would suggest this. hahaha prolly cause i thought that too! hahaha
1 reason of many i can think of is Iphone look alike
Hi, i'm interested in an iphone-like app too.
I still can't understand why HTC inserted a hardware which can handle with orientation, and then it's only possible to use scolling in PIE or Opera.
Why not Scrolling in PIE AND Opera. I love this feature, and want it always and for other apps too, like Rotate Screen automaticly, skip music file or backwards in WMP, Forward/backward in PIE/Opera when moved left/right.
I don't unterstand this. The difficult part is the integration of hardware, and HTC didn't develop a simple app which makes the hardware really do what it is supposed to do.
I even don't believe they added the G-Sensor for the Microdrive.
nothing new?
even with the new softwares incluede in devices such as Omnia or Diamond?

iPAQ 614 - Using "flash" as light - Create a possible Titanium plugin?

One of the "accidental" features of our phone is that the camera "flash" can be used as a GREAT flashlight when you're out in the dark. I probably use it once or twice a week, and I am sure I am not the only one. I was wondering however, if it might be possible to enable the LED without opening up the camera program.
Since I have winmo 6.5 installed, I was thinking about maybe taking advantage of the Titanium plugins, or perhaps even a mortscript application to make the flashlight a homescreen option. I'm new to phone modding, but I have coding experience so it shouldn't be too hard for me to figure out.
If this seems possible, I am willing to put in the effort of making it, but I'd like to know if it seems doable before I start coding or anything.
Thanks in advance.
hi all,
i use the flash as light like you.
one year ago i tryed to find an API to write a little application to poweron/poweroff the camera flash led but without success.
can anyone share with us some experience about this?
in alternative you can use an application called plamp that use the screen like a camera flash led. it is not the same but it is useful, also configuring an hardware button.
regards, Soldato
i used to use a mortscript that would launch teh camera then turn on the flash after 10 seconds it will auto close the camera app.
only down side was that the camera app would take about 10 seconds to load anyway (for my phone) so it was not a instant flash light.
thebranded said:
i used to use a mortscript that would launch teh camera then turn on the flash after 10 seconds it will auto close the camera app.
only down side was that the camera app would take about 10 seconds to load anyway (for my phone) so it was not a instant flash light.
Click to expand...
Click to collapse
Yeah that's part of the reason I would like to just skip the camera app altogether. It would be nice to have the light on quickly and not have the camera on.
DSwarP said:
Yeah that's part of the reason I would like to just skip the camera app altogether. It would be nice to have the light on quickly and not have the camera on.
Click to expand...
Click to collapse
hi @ all!
I'm also very interested in an app like that.
Unfortunately I'm not experienced in coding for PPCs. So my question:
Was there any success or found a solution?
Thx a lot!
VirTuZ
http://www.freewarepocketpc.net/ppc-download-nuelight3.html
^ this is one for htc touch pro but i just tried it and it didnt work on the 614c
also tried htorch and that didnt work either
bungle2k3 said:
http://www.freewarepocketpc.net/ppc-download-nuelight3.html
^ this is one for htc touch pro but i just tried it and it didnt work on the 614c
also tried htorch and that didnt work either
Click to expand...
Click to collapse
The method to control the camera flash is device specific. At this moment, no one know how to control the ipaq 612 flash light
ke_steve_le said:
The method to control the camera flash is device specific. At this moment, no one know how to control the ipaq 612 flash light
Click to expand...
Click to collapse
Indeed. I'd love to know what sort of things I have to look at to get this started, but I really don't know where to start. Anyone who's made this for another phone: point me in the right direction?
DSwarP said:
Indeed. I'd love to know what sort of things I have to look at to get this started, but I really don't know where to start. Anyone who's made this for another phone: point me in the right direction?
Click to expand...
Click to collapse
Basically, the camera flash can be controlled in this way:
Use CreateFile() to get the Camera handle :-
CreateFile( _T("CAM1:") ....... )
then, use DeviceIoControl() to send command, this is the most important step, I don't know how to fill the InBuffer in order to turn the flash on.

Categories

Resources