@title Tv TESTfor a=1 to 4if a = 1 then d = 0if a = 2 then d = -320if a = 3 then d = 320if a = 4 then d = 576rem if a = 4 then d = 2000if a = 1 then print d, " t=1"if a = 2 then print d, " T=10"if a = 3 then print d, " t=1/10"if a = 4 then print d, " t=1/...."set_tv96_direct dshootnext aend
where in the source tree are ubasic command strings tied to functions
typedef enum { TOKENIZER_ERROR, TOKENIZER_ENDOFINPUT, TOKENIZER_NUMBER, ... TOKENIZER_SET_AV96_DIRECT, TOKENIZER_SET_AV96,
static const struct keyword_token keywords[] = { {"<>", TOKENIZER_NE},... {"set_av", TOKENIZER_SET_USER_AV_BY_ID}, //FOR COMPATIBILITY... {"set_user_av_by_id", TOKENIZER_SET_USER_AV_BY_ID}, {"set_user_av96", TOKENIZER_SET_USER_AV96},
switch(token) { case TOKENIZER_PRINT_SCREEN: print_screen_statement(); break; case TOKENIZER_PRINT: .... case TOKENIZER_SET_USER_AV96: set_user_av96_statement(); break;
if ((state_kbd_script_run) && (photo_param_put_off.tv96)) { shooting_set_tv96_direct(photo_param_put_off.tv96, SET_NOW); photo_param_put_off.tv96=0; }
if ((state_kbd_script_run) && (photo_param_put_off.av96)) { shooting_set_av96_direct(photo_param_put_off.av96, SET_NOW); photo_param_put_off.av96=0; }
sleep 100set_sv96 Lset_tv96_direct Msleep 100shootsleep 100
Started by Barney Fife General Discussion and Assistance
Started by Barney Fife General Help and Assistance on using CHDK stable releases
Started by fudgey « 1 2 » General Discussion and Assistance
Started by mr.burns Script Writing
Started by Paul_B Script Writing