yashsingh1/xdaforums huggingface dataset:
[JASJAR, XDA Exec, MDA Pro General] thaihugo:
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
[JASJAR, XDA Exec, MDA Pro General] ei99070:
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..... :? :?
[JASJAR, XDA Exec, MDA Pro General] dreamtheater39:
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
[JASJAR, XDA Exec, MDA Pro General] ei99070:
I agree!! But I don't think that WIA is something to go thrue, since that applies to Win32 only!
[JASJAR, XDA Exec, MDA Pro General] veletron:
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
[JASJAR, XDA Exec, MDA Pro General] ei99070:
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)?
[JASJAR, XDA Exec, MDA Pro General] dreamtheater39:
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
[JASJAR, XDA Exec, MDA Pro General] vijay555:
At least we've got a fullproof way to get a "replacement" :)

I use VJLumos II on my Magician really. But VJCandela, used occassionally, can be good for your health :) But carefully...

V
[JASJAR, XDA Exec, MDA Pro General] arielc:
so whats happening with my exec is that i turn the lash light with your program and when the exec screen backlight turns off the flash light changes colour to a greeish blue colour which is more visable at night . i just noticed now that when i hold the power button to turn the backlight off manualy it appears to have the same efect.
[JASJAR, XDA Exec, MDA Pro General] radiodepilhas:
I think I used this app a bit too much. One of my leds just burnt last night... (lesson: always stick to the developer's words of caution!). It's not that I miss the flash too much, but it's the feeling of having "something wrong" with my EXEC that bothers me. Maybe u guys know where I could buy a led or a replacement flash (I'm comfortable with opening and soldering). Thanks.
[JASJAR, XDA Exec, MDA Pro General] Nomadturk:
http://www.vijay555.com/?Releases:VJCandela
[JASJAR, XDA Exec, MDA Pro General] ei99070:
I agree with you; furthermore, I think it has something to do with HTCCamera1.dll or HTCCameraUtility.dll!

I've been able to decompile HTCCameraUtility.dll, but found nothing that could help, but I'm unable to copy HTCCamera1.dll... :(

If someone can copy it form Universal please post it here! tia :)

Or mamaich ;)
[JASJAR, XDA Exec, MDA Pro General] adonker:
I thought it would be hard to reassign this button to the camera flashlight.

And indeed,..Buzz,..You are the guru in this schit, can you think of something?

regards

arjan
[JASJAR, XDA Exec, MDA Pro General] ei99070:
Assigning has been taken care off (check above posts); all that's missing is how to turn the light on/off...
[JASJAR, XDA Exec, MDA Pro General] SiliconS:
Can I raise a little flag at this point and put in an early feature request please? ;) (I'm taking it for granted that someone will soon solve this problem for us. hehe :D )

I'd like the option to be able to activate the flash in two ways:

- light is on while button is pressed

- push once to turn on, then push once to turn off

Option 1 is bad when you want a torch to illuminate something without having to hold the light.

Option 2 is bad when the phone is in a pocket with the light accidentally on, wasting battery.

So I'd like both, please! Not sure how this could be arranged though. A control panel app maybe? Maybe push-and-hold to turn light on and push to turn off. Dunno. Maybe the machine would have to be powered up before it'd work too, as a safety measure against accidental power wastage and glowing pockets.

Just a suggestion for the lucky person who takes this project on! :)
[JASJAR, XDA Exec, MDA Pro General] ei99070:
You can bet on it!!!! Hell, I haven't done anything else but research in the past few days, and it's driving me crazy!!

I don't know if "hold to light on" is possible, but I'm sure that at least "hold x seconds to light on/off" is possible! :)
[JASJAR, XDA Exec, MDA Pro General] Pjtheman:
Hi all!

Got an Exec about a month ago now, and the replacement one was delivered today...

Ive ordered a Windows Mobile 5 developer DVD from Microsoft, and am kindof a hobbyist programmer (6th form takes up too much time), so as soon as i get it this may be a project i can undertake...

NB: Just want to say - great community here! Had an XDA 2 before and used to view these forums a lot...
[JASJAR, XDA Exec, MDA Pro General] arielc:
ive had this idea aswel, itd be great if one of the gurus of this forum could create an application to activate the flash with the backlight button.
[JASJAR, XDA Exec, MDA Pro General] adonker:
no one?

Hi all..

some time ago I started this thread. But unfortunately we have no success in solving this issue,..

Is there anyone who can tell me if this can be fixed at all? having a flashlight with me all the time would be great. the flashlight is enormous on the universal...

hope anyone can help,..

arjan
[JASJAR, XDA Exec, MDA Pro General] BeyondtheTech:
Can anyone confirm if the WIA_DPC_FLASH_MODE property actually works?

I don't know C++ too much, so even with my copy of Visual Studio 2005 and the Windows Mobile 5 SDK, I might as well be staring at two porn DVDs for the answer.

On a sidenote, PPL can actually make calls out to APIs and DLLs very easily. http://ppl.arwen.com

If anyone can show me some C++ code regarding the flash, I may be able to make a proper call out to the API using PPL and make a quick executable.
[JASJAR, XDA Exec, MDA Pro General] dreamtheater39:
Thats a flag used in platform builder....used by device manufacturers while building a ROM....so i guess, its no use to us really!

S
[JASJAR, XDA Exec, MDA Pro General] vernonius:
2 bad no one has solved this yet...

It would b a great bonus indeed
[JASJAR, XDA Exec, MDA Pro General] ashby:
agree, this would be such a cool feature
[JASJAR, XDA Exec, MDA Pro General] ncruz:
I think that you can do this with mortscript since it can simulate screen clicks (i think) so you assing the key to a mort script that simply clicks que flashlight button...

Has anyone tryed that?
[JASJAR, XDA Exec, MDA Pro General] gooroo:
I think it would work for now although it might take an age from pressing the button to the flash coming on. And as mortscript allows registry changes it could even be made to work as a toggle, press on, press off. And also as a delay, press on, off after x mins. Never used mortscript before, might download and have a play.

Nice idea m8!
[JASJAR, XDA Exec, MDA Pro General] Diggia:
Very interesting !

Have you tried with mortscript ?
[JASJAR, XDA Exec, MDA Pro General] araappa:
Hello,

Little dummy script, but it works somehow. Copy following text to text-file, name it for example flash.mortrun, make link to it and assign some hw-button to that link. Then you can turn the flash on and off by pressing that button (camera is active when flash is on).. And of course you have to install mortscript first.

This works when JJ is active, but is there some way to get camera.exe fired up when cover is closed facing inwards? I have disabled keylock, but side keys (camera, light..) aren't working (of course for a reason!)..

flash.mortrun

*****

If not screen landscape

Set x, "615"

Set y, "20"

Set x2, "500"

Set y2, "475"

Else

Set x, "460"

Set y, "615"

Set x2, "10"

Set y2, "500"

EndIf

If wndActive Camera

MouseClick %x%,%y%

EndIf

If not procExists Camera.exe

Run \windows\camera.exe

WaitForActive Camera, 5

MouseClick %x2%,%y2%

EndIf

*****
[JASJAR, XDA Exec, MDA Pro General] Schlangi:
The HTC Service Manual for Universal (to be found on FTP says on page 45 that with the HTC's diagnostics tool the flashlight can be tested.

If anyone has this tool, it should be possible to disasamble this one to find out how to run this light by an API-call, right?

@araappa: Good job by now!

Schlangi
[JASJAR, XDA Exec, MDA Pro General] adonker:
A long time ago I posted this Thread...

Good to read that more people would like to have this function. Hopefully someone (a developer) can fix this issue.

Many thanx in advanced for everyone who helps sole this Flash light issue...

Best regards

Arjan

MDA-Pro Tmobile NL
[JASJAR, XDA Exec, MDA Pro General] sulina:
Something else that I think should be addressed is that the green and red phone buttons are not alight while doing a call with the XDA closed. Thus when ending a call one has to open to terminate to to get confused since the buttons are similar and one can get confused. If there is a way that the green and red buttons remain on while one is still on the line I think would be helpful.

Regards

And welldone for the good job everyone is doing in building this comunity of XDA Fans
[JASJAR, XDA Exec, MDA Pro General] vijay555:
sulina: you might want to read this thread:

http://xdaforums.com/viewtopic.php?t=37201&start=0&postdays=0&postorder=asc&highlight=

I'm developing a program called VJElectrify that already does what you want on the Universal. I'm working on a more complicated hack, enabling the keys with the lid shut, but the bit you want is part of the whole program.

V
[JASJAR, XDA Exec, MDA Pro General] adonker:
vijay555

can you solve this backlight camera button issue?

arjan
[JASJAR, XDA Exec, MDA Pro General] vijay555:
adonker: if you mean making the flashlight - hmm, I've investigated it briefly, but I really need a new tool to make more progress. I think quite a few of us are waiting for this particular tool.

If it doesn't arrive soon, when I get a bit more free time I'll work on it, but I'm sure someone will figure it out by then. There are various ways to crack this nut!

V
[JASJAR, XDA Exec, MDA Pro General] adonker:
Many Thanx :D

A
[JASJAR, XDA Exec, MDA Pro General] mcasteels:
just to get this post on top again since i'm also waiting for this.

Thanks to all
[JASJAR, XDA Exec, MDA Pro General] gooroo:
Vijay, what's the "tool" you and other are waiting for???

Just so we know what we are waiting for too :)

Regards
[JASJAR, XDA Exec, MDA Pro General] joekinney@hotmail.com:
this wud be kool

i wudnt know where to start tho so am gonna leave it to you guys who have the know how.

suprized there isnt an app on the software sites for this already, wudnt b suprized if they made a few bob from doin it...
[JASJAR, XDA Exec, MDA Pro General] max007007:
will be watching this thread. :D
[JASJAR, XDA Exec, MDA Pro General] Pyrojester:
bump
[JASJAR, XDA Exec, MDA Pro General] vijay555:
Eureka

Guys, I did it :)

V
[JASJAR, XDA Exec, MDA Pro General] docraj:
Re: Eureka

Great Work VJ. Care to share this? I am willing to Beta-test it for you :lol:

R
[JASJAR, XDA Exec, MDA Pro General] buzz_lightyear:
!!!WOW!!!

VJ did it again!!!

:o)))

I just beta tested this wonderfull utility and YES, IT WORKS.

:o)))))

VJ, i would do it as ON/OFF if possible... without saying cmdline param.

I mean if executed and is OFF, then turn it ON.

If executed and is ON, then turn it OFF.

PERFECT as always!

THANX

buzz
[JASJAR, XDA Exec, MDA Pro General] halljames:
well, when can we get hold of this :)
[JASJAR, XDA Exec, MDA Pro General] vijay555:
Guys, I managed to work out the voodoo required to control the flash light at 3am yesterday, and by jove it works. I sent it to Buzz because I was afraid I was dreaming again. Glad I wasn't :oops:

I hope you guys don't mind too much, but if I can, I would like to make this into a semi-commercial app - this means that it will be, if feasible, extremely cheap.

This is because I need to raise some cash to buy Buzz and I a copy of IDA Pro 4.9. This is 600 Euros :shock:, and we both have Significant Others to support, so donations/cash would go towards that. And believe me, the hacks we could achieve with that program - the sky's the limit :) You ain't seen nothin' yet.

So, no downloads immediately, but I'm taking feature requests.

Buzz: the version I sent you was a very quick example code - have you noticed what happens when you close the clam?

Ok: so I can control the flash. Currently it exists as a command line tool like most of my stuff. But I want to make this fullproof and worth a penny or two of your hard earned cash. So - these are my thoughts so far:

Torch mode - enable it = torch on, disable = torch off

Time Torch- light comes on for a fixed amount of time, to prevent problems eg if you fall to sleep

Notification Mode - I'm thinking of some kind of interface to the app, so that in addition to normal phone notification, you can script in a call to this app (hey, no name right now!? VJIncendio?) and you can get a blaring light, or a blinking on/off for a certain duration. I'll tell you, you won't miss this from across the room 8)

Morse Code translator - this one I have no idea about, but I was thinking of a text to morse translator. Type in SOS, it'll flash out the morse code etc. Any text though.

Press and hold mode - light stays on for as long as you hold a hardware button.

Today Plugin? - it's a bit wasteful though, whole plugin just or this feature. I think a normal launcher compatible version should be adequate.

Anything else? Thoughts on the semi/commercial route? I'd rather it was free, but I haven't got 600 Euros kicking about to play with "my toys" as my S.O. would say.

V
[JASJAR, XDA Exec, MDA Pro General] halljames:
I have no problem with it being a comercial app. I would gladly pay for it, I frequently do ;)

Just let us know when its ready :)
[JASJAR, XDA Exec, MDA Pro General] halljames:
Have you done it yet then :D
[JASJAR, XDA Exec, MDA Pro General] max007007:
me buying :D
[JASJAR, XDA Exec, MDA Pro General] philtech44:
Damn right too V! Who could complain about that?? My wallet's open and ready mate :wink:
[JASJAR, XDA Exec, MDA Pro General] vijay555:
halljames: did you read Buzz's post? I trust him more then me!

I'm away at a client's offices for the remainder of the day, so I'm in a rush, but any questions or comments, just ask!

v
[JASJAR, XDA Exec, MDA Pro General] philtech44:
Guys.. the man is right IDA Pro is S E R I O U S!!

V & Buzz: the world be your Oyster!!!

I'm getting excited now!
[JASJAR, XDA Exec, MDA Pro General] Melty:
Big congrats VJ mate. And good idea about making it a (semi) commercial app.
[JASJAR, XDA Exec, MDA Pro General] nolovelust:
brilliant :D
[JASJAR, XDA Exec, MDA Pro General] thaihugo:
I'm happy you have found the way to activate the torch, but there is no way I'm going to pay for this. Problem is that I agree 1 or 2 euro would make a good payment. But there is currently no simple way to pay this ammount without giving A LOT of cash to middleman like paypal. If I could hand you the money, I would gladly do it, but I simply don't accept the fact that for you to get 600 €, you would give 100 € to any bank system.

Of course thinks are different for a 20 € app, but I won't pay that either for a simple API call, even if it's cleverly found ;-)
[JASJAR, XDA Exec, MDA Pro General] vernonius:
impatiently waiting..... :twisted:
[JASJAR, XDA Exec, MDA Pro General] vijay555:
thaihugo: I entirely agree with you. With the way I work, it's likely somebody else will make this app before I get it to you guys, since I work on so many things at the same time, between my full days at work, so it means more to me in Personal Achievment that I did it, rather than that I can sell it. I really ought to buy me some Commercial Sense one day.

And likewise: it took quite a long time and a lot of effort and head scratching (and shouting from my Better Half) to figure it out. But, it's done, and it's satisfying. I would rather not sell the products of such labour, but it'd go to a good cause (Ida Pro), as I said, and from there, well I hope Buzz can bring you guys even better stuff. And not just Buzz, the body of knowledge for all will increase, I hope.

I wouldn't expect such software to be expensive. For me, anything over £10 must comfortably improve my use of the phone. Anything over £20 must be equivalent to a new OS feature, very significant. Anything less then £5 is a toy, a whim, nice to have, not missed if you don't. I would not pay more than £5 for this.

Now, as I see it, PayPal's fees on a personal account are:

Open an Account = Free

Send Money = Free

Add Funds = Free

Receive Funds = Free

http://www.paypal.com/uk/cgi-bin/webscr?cmd=_display-fees-outside

So the only cost will be in me withdrawing money I think.

I guess PayPal has a minimum value you can pay out, but since I, and I guess most of us use PayPal, there should be no commission on PayPal to PayPal accounts.

The only commission to pay would be on Credit card transactions I think...

Is this understanding correct do you think?

My website is linked to a Business PayPal account, which does charge me commission, but accepts credit cards. My personal PayPal account does not.

And as I said, I want to add features to make the light more than just a light, eg email notifier by appropriate scripting etc. And, I have another hack I want to make, which will make the "package" even nicer. News soon if it works.

V
[JASJAR, XDA Exec, MDA Pro General] thaihugo:
I understand your logic. But some country have more charge for paypal, like no bank transfer and so on. This is why it's not so easy to go for this solution for me.

Anyway, I hope you'll be able to raise your funds to get a better development tool.
[JASJAR, XDA Exec, MDA Pro General] vijay555:
thai, when the time comes, write to me and I'll see what I can do. The money isn't everything... :)

What country are you in?

V
[JASJAR, XDA Exec, MDA Pro General] cktlcmd:
This is what I like about this site. Nice people all around. :D :D :D

Congratulations Vijay! Just let us know when it would be ready and I'll be the first one to pay. :D I'll even add a little bit more for donation towards the developer's tool you and Buzz are trying to purchase. :D
[JASJAR, XDA Exec, MDA Pro General] Melty:
I'm guessing Thailand, but who knows... :wink:
[JASJAR, XDA Exec, MDA Pro General] vijay555:
Thanks Christian.

I literally had the breakthrough early this morning and sent a copy over to Buzz to verify I hadn't gone bananas. I wanted to play with it in bed, but for fear of suffering the wrath of my other half, I though it best not to take the risk :wink:

Now, to do something useful with it :) As I said, if you have any suggestions on how best to implement it, I'll stick them in...

V
[JASJAR, XDA Exec, MDA Pro General] jbn:
Count me in

Vijay, I too would be willing to support a commercial offering. Within reason, of course :wink:
[JASJAR, XDA Exec, MDA Pro General] thaihugo:
:wink:
[JASJAR, XDA Exec, MDA Pro General] vijay555:
Melty/ThaiHugo:

Hey, it's not that obvious, I'm not from 555 am I?!?

:oops: - I had a late night. Apologies for my stoopidness.

V
[JASJAR, XDA Exec, MDA Pro General] Bluediss:
So what's your paypal account :-)

The price of a Universal in your everyday shop is 800 euro, so what's 5 euro...

I donate to Buzz for his "Free" downloads, it's more like anti-commercial software 8)

BTW Please concentrate on the unlocking tool first :wink:
[JASJAR, XDA Exec, MDA Pro General] vijay555:
Bluediss: this app itself will be commercial as soon as I can finish it. This second I'm working on about 8 new unrelated hacks, so I don't know when that's going to happen!

If you want to donate directly to our "fund", you can from my website. If you're NOT using a credit card, PM me and I'll send you another paypal account where I don't pay commission.

Thanks to all you guys for your interest

Trust me, developing this torch app was pain defined, and IDA would have made it SO much easier. And if IDA would help a prat like me, think what Buzz could do with it. And of course, some of the other boys on here too!

V
[JASJAR, XDA Exec, MDA Pro General] docraj:
No issues VJ. I support this and will gladly pay for your efforts.

Just my 2C worth. There are a lot of features you can add but I am a great proponent of "Crossing the Chasm" i.e. at what stage does it make sense to release it so you get some revenue coming in and balance it with enough features to make the users comfortable enough to pay.

I would suggest that you release the basic application (Torch ON/OFF) and then have an upgrading regime with versions being released in a phased manner. Give discounts for earlier buyers for major version changes and no charge for minor revisions. New buyers would, of course, pay the actual price. Depending on the features released, the retail prices for the later versions could be more expensive......
[JASJAR, XDA Exec, MDA Pro General] vijay555:
docraj: absolutely agreed. I tend to enjoy programming more for the technical challenge then anything else, but I think on this one I'll "fix" the feature list and just release the damn thing!

Updates and upgrades in the usual manner I think, point releases always free, major upgrades may incur negligible upgrade fee. However, I can't see how you can "major" upgrade a torch :)

Just so you know progress, Mrs Vijay555 is out of town, and I had a monster session of programming yesterday, and I'm dizzy on 3 hours sleep. BUT:

Basic torch mode is done, so this is toggled on and off

Hardware key torch is done, so now you can hold done the backlight key and it will enable the torch for as long as you hold it.

Next stage is some GUI work and possibly a timed mode. GUI work will be developed first for VJBaseHue as a trial, and then I'll re-incorporate it into here.

Ok: as we all know, the Universal has fits and doesn't permit operating the hardware keys when the clam is closed.

As a side effect of this, the torch switches off when the clam is closed as well. This isn't a big handicap in practical use I think, but If I can crack this issue, it will hopefully permit full use of hardware keys in all apps, all the time. I'm working on it :) But I had a nice breakthrough early this morning that may help things along.

V
[JASJAR, XDA Exec, MDA Pro General] gooroo:
Great work!

Paypal is fine by me, payment waiting!

Is it likely this will work on the wifes Wizard too?
[JASJAR, XDA Exec, MDA Pro General] vijay555:
gooroo: yes, it should work on the Wizard, although without the hardware I can't test it.

BeyondTheTech has pointed towards me an Atom rom, so I'm working my way through that to try to figure out how the flash is utilised on there. No promises, but I'm looking into it.

Finally I've also been asked to also look into the MPX300. I have no idea about that device, but I'll try to look through the ROM if I can and see what I can do... not optimistic about these non HTC phones...

V
[JASJAR, XDA Exec, MDA Pro General] dreamtheater39:
Great stuff VJ!!!

When do you plan to complete development and make the release available???

(i think you should make the rest of your proggies commercial too ;-))

Cheers!

*bowing down*

San