How to turn off power or retract lens - page 2 - Script Writing - CHDK Forum

How to turn off power or retract lens

  • 12 Replies
  • 9608 Views
Re: How to turn off power or retract lens
« Reply #10 on: 22 / December / 2008, 19:13:23 »
Advertisements
First off, consider anything I have posted as suspect as I am a total newby here.

When I was testing the shut_down command, I put it in a loop without the "wait-click 2000" line.  It ran but did not shut down *until* I pressed the shutter button to exit the script.  THEN it shut down.  After thinking about it for a while and looking at a few other commands, I saw somewhere that the wait-click command maybe could be used to give the previous command time to operate.  Whether that is true or not, I don't know but as soon as I put that line in the code, it worked. 

If I remember right, I also tried just putting shut_down ten times in a row and that did not work either.  I'm slowly learning... and it's still fun.
Was: SD1100 IS, Autobuild, V1.01a, dunked in ocean
Next: SD990 IS, Autobuild, used to build sand castles with
Waiting to die: SX230

*

Offline fe50

  • ******
  • 3152
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50
Re: How to turn off power or retract lens
« Reply #11 on: 22 / December / 2008, 20:23:06 »
...After thinking about it for a while and looking at a few other commands, I saw somewhere that the wait-click command maybe could be used to give the previous command time to operate.
Yep, that's correct.

Re: How to turn off power or retract lens
« Reply #12 on: 24 / December / 2008, 07:57:38 »
I remember some old post about shutdown-delay needed:
http://chdk.setepontos.com/index.php/topic,2181.0.html

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal