Canon CHDK User Manual
Page 60

@default g 8
@param h Reg Mode(0-no,1-incl,2-excl)
@default h 0
@param i Measure Mode (1-Y,0-U,2-V)
@default i 1
@param j Burst/Preview (sec,0=off)
@default j 0
if a<1 then a=1
if b<1 then b=1
if c<0 then c=0
if g<1 then g=1
if f<1 then f=1
if j<0 then j=0
e=e*100
j=j*1000
print ">[";a;",";b;"] threshold: ";c
x=30000
if j>0 then goto "md_burst"
:md_singleshot
press "shoot_half"
t=0
do
md_detect_motion a, b, i, x, d, c, 1, t, h, 1, 1, a, f, 0, g, e
until t>0
click "shoot_full"
goto "md_singleshot"
:md_burst
press "shoot_half"
t=0
do
md_detect_motion a, b, i, x, d, c, 1, t, h, 1, 1, a, f, 0, g, e
until t>0
press "shoot_full"
let X=get_tick_count
:contloop
let U=get_tick_count
let V=(U-X)
if V
goto "md_burst"
----------------------------------------------------------------------------------------------------------------------------------------------------
This is an example script for study, please do not copy from here as it may not be exact.
See:- FAQ-How do I use scripts?
and:-
Scripting Tutorial Page
-
also:-
Tip: For using intervalometer, and long exposure scripts - to save battery and LCD use a piece of ⅛
round plastic / unconnected a/v cable in the camera video transfer port and LCD will be off, although not
as much saving as when display is turned off (Which may not be possible with some other settings).
----------------------------------------------------------------------------------------------
58