CHDK Wiki
Advertisement
Forums: Index > Help desk > S2 IS for video and scripts problem



I have difficulity in make good use of the CHDK in my S2 IS camera. Two very useful functions are not working well: 1. when I update the CHDK to pre14.grand148.md.cln.zsm-s2is-100f-119 or 120, I cannot use video recoder (it will hang my camera), but pre14-s2is-100f-148 did work. 2. when it is in "alt" mold (try to run a script). I am writing a script try to get the exposure information in the Av mold by: [press "shoot_half"] [sleep 3000] [get_tv f] but always get the f value to 15 with different light condition. Anyone out here using S2 IS GM1.00F and working?


this is my program


rem Light Change Capture (from dark to bright)

@title Light Change Capture (Av Mode) @param a Number of Pics @default a 8 @param b exposure time differnce (in step) @default b 1 @param c time wait for shoot half @default c 1000

if a<1 then let a=1 if b<1 then let b=1

print "Pics:"; a; " Step:"; b

click "shoot_half" sleep c get_tv e print "preset tv=",e

for s=1 to a

  if s<a then gosub "cec" 
  if (f-b)>=e then gosub "cap" else s=s-1  

next s

end


rem check exposure change

cec
  click "shoot_half"
  sleep c
  get_tv f
  print "p=";e;"  n=";f
  if f<e then e=f

return

rem capture one image

cap
  shoot
  print "Pics:"; s;"/";a; "Step:"; b
  e=f

return

end

Advertisement