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
Excellent works :-)