Power off after picture - Script Writing - CHDK Forum  

Power off after picture

  • 3 Replies
  • 2475 Views
Power off after picture
« on: 20 / December / 2009, 20:35:52 »
Advertisements
Hey folks,

Did a quick search and didn't turn anything up for a script I'd like to see. Anyone know if there's a script that will turn the camera power off once the picture has been taken and recorded?

I'd like to play with camera throwing a bit and know I'm likely to drop the camera a bit. I'd like a script that lets me push the shutter button and throw the camera in the air, then shuts the power off immediately once all image recording is complete. Would be nice if the lens was retracted and the power down before it lands.

Thanks!

-----------
Canon PowerShot SD880 IS
CHDK: 0.9.9-863
Firmware: 101a

*

Offline reyalp

  • ******
  • 14114
Re: Power off after picture
« Reply #1 on: 21 / December / 2009, 05:41:58 »
camera throwing  :o ?

something like this (untested) ought to do it
Code: (lua) [Select]
press("shoot_half")
press("shoot_full")
sleep(50)
release("shoot_full")
release("shoot_half")
-- wait for shooting to finish
repeat
sleep(10)
until get_shooting() ~= true

post_levent_to_ui("PressPowerButton")
That's with a quick shutter press, not pressing half, waiting to focus and then pressing full. I assume the flying camera would have trouble focusing. You might need some additional sleep before the post_levent_to_ui.
Don't forget what the H stands for.

Re: Power off after picture
« Reply #2 on: 24 / December / 2009, 18:43:43 »
Quote
camera throwing   :o?
Yep... http://cameratoss.blogspot.com/

Thanks for this, I'll give it a try and see!

Re: Power off after picture
« Reply #3 on: 25 / December / 2009, 01:45:13 »
there's also -

shut_down()


 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal