SX 40 video button - Script Writing - CHDK Forum
supplierdeeply

SX 40 video button

  • 5 Replies
  • 2852 Views
SX 40 video button
« on: 02 / May / 2012, 14:46:56 »
Advertisements
I can't get to press the movie button in a script.  I'm trying to use a motion detect script to start the high-speed video to start/stop.  this runs at 120/240 fps.

Many thanks

Re: SX 40 video button
« Reply #1 on: 02 / May / 2012, 14:49:56 »
I can't get to press the movie button in a script.  I'm trying to use a motion detect script to start the high-speed video to start/stop.  this runs at 120/240 fps.
Please post your script.
Ported :   A1200    SD940   G10    Powershot N    G16

Re: SX 40 video button
« Reply #2 on: 02 / May / 2012, 15:01:38 »
THis runs to the point of drawing the detection grid.  these are set up to respond only to left/right edge motion.  I get a parse error at line 47, where i try to start the camera.

*

Offline funnel

  • ****
  • 349
Re: SX 40 video button
« Reply #3 on: 02 / May / 2012, 15:42:59 »
In line 47 change from

Code: [Select]
if( h > 0 ) click "video" to
Code: [Select]
if( h > 0 ) then click "video"


Re: SX 40 video button
« Reply #4 on: 02 / May / 2012, 15:57:02 »
Many thanks.  How did I miss the obvious!!

Re: SX 40 video button
« Reply #5 on: 02 / May / 2012, 16:02:56 »
How did I miss the obvious!!
you've clearly done some C programming
Ported :   A1200    SD940   G10    Powershot N    G16

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal