But I remember an old feature request (well, at least this has been discussed before) that -- for example -- the script interpreter should not immediately interrupt with the shoot key but instead jump to a shutdown function/subroutine/whatever if one has been defined in the script. A second shutter press could then interrupt a malfunctioning/slow shutdown routine.
It was also implemented both in uBASIC and Lua.IIRC, uBASIC tries to jump to label :restoreLua tries to call function restore()
uBASIC tries to jump to label :restore
Missed my point or am I missing something?Restore() only executed the first line of code and not the rest of the test script.Would be hard to reset camera defaults with only one line of code.Maybe my cameras are different (S2is &S5is)?
...wend:restorerem ubasic traps 'shoot_full', clear shutdowno = 0:doneset_aflock 0sleep 100click "shoot_half"sleep Aif o & 4 then goto "shutdown"print "'half shoot' to exit..."wait_click 20000is_key k "shoot_half"if k > 0 then endgoto "shutdown":lobattprint v; "mV, LoBatt exit"sleep 2000:shutdownshut_downsleep 3000end
Started by redwoodtwig
General Help and Assistance on using CHDK stable releases
Started by nlantz
Started by trackuino
Started by toinech
Started by srsa_4c
« 1 2 3 4 5 »
General Discussion and Assistance