flashlight control for my O2 Atom

Recently I constantly found myself in situations where I’d badly need a flashlight. I looked around and found no solution. There’s a guy at xda-devels and he had written a pretty nice app, however, it is only for HTC device, mine is a Quanta’s.

So I keep looking around and found mortscript! Read thru the manual, wrote a mortscript to help controlling the atom’s Self Diagnostic software, which has a camera flashlight test, which can be used to turn on the flashlight whenever I need it. So flashlight? It’s only one click away. Here’s the code:

ErrorLevel off
Run "\Windows\SelfDiag.exe"
WaitForActive "Self Diagnostics",3
SendSpace
SendDown
SendDown
SendDown
SendDown
SendDown
SendDown
SendDown
SendCR
MouseClick 235,315
SendCR
Sleep 1000
While not question "Turn Flash off?", "Flash control"
EndWhile
MouseClick 5,315
MouseClick 5,315
SendCR

1 Response to “flashlight control for my O2 Atom”


  1. 1 chaien Oct 26th, 2006 at 15:34:08 (UTC+7)

    Excellent works :-)

Leave a Reply




About me

name: Hai.Binh Nguyen
also called: b1nhb00ng, zecoj
sex: yes, please!
where: Viet Nam
email: b_at_thisdomain
jabber: b_at_thisdomain
gpg: zpubkey.asc

Bookmarks

My recent flickr