rem Author kamil, v.1.0@title zoom and focus in video for g7@param a zoom jump \erase\ (std)@default a 7@param b zoom jump \left\@default b 1@param c zoom jump \set\@default c 3@param d zoom jump \right\@default d 5@param e zoom jump \display\@default e 11@param g focus at start (1-11)@default g 5@param f focus jump to \menu\ (*100)@default f 13@param h help (1-on)if h=1 then gosub "help"get_prop 12 qif q=0 then set_prop 12 1z=av=gpress "shoot_half"sleep 800click "shoot_full":loopwait_clickif is_key "zoom_in" then goto "in"if is_key "zoom_out" then goto "out"if is_key "up" then goto "add_focus"if is_key "down" then goto "min_focus"if is_key "display" then z=eif is_key "erase" then z=aif is_key "left" then z=bif is_key "set" then z=cif is_key "right" then z=dif is_key "menu" then goto "focus_extra"if is_key "shoot_half" then goto "end"print "zoom jump", zgoto "loop":inif z<0 then let z=1if z>13 then let z=13set_zoom_rel zget_zoom rprint "zoom", rgoto "loop":outif z<0 then let z=1if z>13 then let z=13set_zoom_rel -zget_zoom rprint "zoom", rgoto "loop":add_focusv=v+1gosub "focus_dance"goto "loop":min_focusv=v-1gosub "focus_dance"goto "loop":focus_danceif v<1 then let v=1if v>11 then let v=11u=(v*v*v*v)+80if v=11 then u=65535print "focus", u; "mm"set_focus ureturn:focus_extrau=f*100set_focus ugoto "loop":endclick "shoot_full"end:helpprint "When You need a special"print "functions in camera..."print "Use with CAUTION"print " - [ click ANY KEY ] - "wait_clickprint "written for G7"print "You must change script"print "of ZOOM and FOCUSING"print "data for your camera"print " - [ click ANY KEY ] - "wait_clickprint "KEYS:"sleep 1000print "- up/down - focus (11)"print "- left/set/right/disp"print " /erase - ZOOM PRESETS"print "- menu - FOCUS PRESET"print " - [ click ANY KEY ] - "wait_clickprint "Feel free in modify this"print "script to make it more"print "comfortable"print " "print " - [ click ANY KEY ] - "wait_clickprint "press SHOOT HALF"print "to end recording"print "Because of zoom and"print "focusing noises"print " - [ click ANY KEY ] - "wait_clickprint "i suggest record the"print "sound with another"print "recorder and join with"print "nandub for example"print " - [ click ANY KEY ] - "wait_clickprint "enter 0 in param help"print "Now set camera to video"print "Script will start"print "recording..."print " - [ click ANY KEY ] - "wait_clickclsreturnend
rem Author kamil, script ver. 2.5, allbuild, works on g7,a710is,...@title zoom and focus in video@param a auto focus /erase/@default a 3@param b auto focus /expo_corr/@default b 10@param c step zoom /left/@default c 4@param d step zoom /set/ - at start@default d 7@param e step zoom /right/@default e 13@param f auto zoom /display/@default f 1@param g auto focus /display/@default g 2@param h auto zoom /menu/@default h 11@param i auto focus /menu/@default i 10@param j help (1-on)@default j 1if j=1 then gosub "help"get_prop 12 qif q=0 then set_prop 12 1z=drem zoom range, change this value if your zoom is differentk=13get_zoom tget_focus uo=0doo=o+1p=o*o*(o+1)*(o+1)+90until u<pv=oif v>11 then let v=11press "shoot_half"sleep 800click "shoot_full":loopclsprint " ", z, "|"print t; "/" k, "-zoom |","focus-", v; "/11" wait_clickclsif is_key "zoom_in" then goto "in"if is_key "zoom_out" then goto "out"if is_key "up" then goto "add_focus"if is_key "down" then goto "min_focus"if is_key "left" then z=cif is_key "set" then z=dif is_key "right" then z=eif is_key "erase" then goto "focus_1"if is_key "expo_corr" then goto "focus_2"if is_key "display" then goto "zoom_focus_1"if is_key "menu" then goto "zoom_focus_2"if is_key "shoot_half" then goto "end"goto "loop":inif z<0 then let z=1if z>k then let z=kset_zoom_rel zget_zoom tprint "zoom", t; "/" kgoto "loop":outif z<0 then let z=1if z>k then let z=kset_zoom_rel -zget_zoom tprint "zoom", t; "/" kgoto "loop":focus_1v=agosub "focus_dance"goto "loop":focus_2v=bgosub "focus_dance"goto "loop":zoom_focus_1if g>0 then gosub "focus_zoom_focus_1"if f>0 then gosub "zoom_zoom_focus_1"if g>0 then gosub "focus_zoom_focus_1"goto "loop":focus_zoom_focus_1v=ggosub "focus_dance"return:zoom_zoom_focus_1set_zoom ft=freturn:zoom_focus_2if i>0 then gosub "focus_zoom_focus_2" if h>0 then gosub "zoom_zoom_focus_2"if i>0 then gosub "focus_zoom_focus_2"goto "loop":focus_zoom_focus_2v=igosub "focus_dance"return:zoom_zoom_focus_2set_zoom ht=hreturn:add_focusv=v+1gosub "focus_dance"goto "loop":min_focusv=v-1gosub "focus_dance"goto "loop":focus_danceu=(v*v*v*v)+90if v>=11 then u=65535if v<1 then let v=1if v>11 then let v=11set_focus ureturn:endclick "shoot_full"endend:helpprint "Use with CAUTION"print "working on G7,A710is"print "maybe others too"print "or you need modify this"print " - [ click ANY KEY ] - "wait_clickprint "script. Zoom and focus"print "values could be different" print "lines to modify:"print "31,132,133"print " - [ click ANY KEY ] - "wait_clickprint "keys:"print "UP/DOWN - focusing"print "ZOOM IN/ZOOM OUT -zooming"print "LEFT/SET/RIGHT - zoom set"print " - [ click ANY KEY ] - "wait_clickprint "ERASE/EXP - focus set"print "DISPL/MENU - zoom & focus"print "You can disable focus"print "or zoom setting by enter"print " - [ click ANY KEY ] - "wait_clickprint "0 parameter"print "focus has 11 steps"print "zoom has 13 steps"print "Use DISPLAY & MENU"print " - [ click ANY KEY ] - "wait_clickprint "for best & fast results."print "Press SHOOT HALF"print "to stop recording"print "Because of zoom and"print " - [ click ANY KEY ] - "wait_clickprint "focusing noises"print "i suggest record the"print "sound with another"print "recorder and join with"print " - [ click ANY KEY ] - "wait_clickprint "nandub for example"print "enter 0 in help param"print "and play the game :)"print " - [ click ANY KEY ] - "wait_clickclsreturn
rem Author kamil, adapted for A630(A640) by dzsemx, script ver. 2.1 or whatrem some help:rem /delete/ button is for focusing at cca 35 cm by defaultrem /display/- 1X zoom - cca 2,6 meter focus by defaultrem /menu/-4X zoom - infinite focus by defaultrem /up/-/down/ is for manual focusingrem /left/-/func/-/right/ modifies zoom stepping(2,4,8 by default)rem zoom step by default is 4 so you can zoom in or out fully in two stepsrem every parameter can be modified from the script menu to fit your needs@title zoom and focus in video@param a auto focus /erase/ 0=off@default a 4@param c step zoom /left/@default c 2@param d step zoom /set/ - at start@default d 4@param e step zoom /right/@default e 8@param f auto zoom /display/ -1=off@default f 0@param g auto focus /display/ 0=off@default g 7@param h auto zoom /menu/ -1=off@default h 8@param i auto focus /menu/ 0=off@default i 11get_prop 12 qif q=0 then set_prop 12 1z=drem used for safe zoomx=11rem zoom range, change this value if your zoom is differentk=8get_focus uo=0doo=o+1p=o*o*(o+1)*(o+1)+90until u<pv=opress "shoot_half"sleep 800click "shoot_full"print "HALF SHOOT - stop record":loopwait_clickif is_key "zoom_in" then goto "in"if is_key "zoom_out" then goto "out"if is_key "up" then goto "add_focus"if is_key "down" then goto "min_focus"if is_key "left" then let z=cif is_key "set" then let z=dif is_key "right" then let z=eif is_key "erase" then goto "focus_1"if is_key "display" then goto "zoom_focus_1"if is_key "menu" then goto "zoom_focus_2"if is_key "shoot_half" then goto "end"goto "loop":inif z<0 then let z=1if z>k then let z=kgosub "safe_focus"set_zoom_rel zget_zoom tprint "zoom", t; "/" kgosub "focus_dance"goto "loop":outif z<0 then let z=1if z>k then let z=kgosub "safe_focus"set_zoom_rel -zget_zoom tprint "zoom", t; "/" kgosub "focus_dance"goto "loop":focus_1v=agosub "focus_dance"goto "loop":zoom_focus_1if f>-1 then gosub "zoom_zoom_focus_1"if g>0 then gosub "focus_zoom_focus_1"goto "loop":focus_zoom_focus_1v=ggosub "focus_dance"return:zoom_zoom_focus_1gosub "safe_focus"set_zoom fprint "zoom", f; "/" kreturn:zoom_focus_2if h>-1 then gosub "zoom_zoom_focus_2"if g>0 then gosub "focus_zoom_focus_2"goto "loop":focus_zoom_focus_2v=igosub "focus_dance"return:zoom_zoom_focus_2gosub "safe_focus"set_zoom hprint "zoom", h; "/" kreturn:add_focusv=v+1gosub "focus_dance"goto "loop":min_focusv=v-1gosub "focus_dance"goto "loop":focus_danceu=(v*v*v*v)+90if v>=11 then u=65535if v<1 then let v=1if v>11 then let v=11set_focus uget_focus tprint "focus", v; "/11 ("t; " mm)"return:safe_focusx=vv=11 print "Safe focusing"gosub "focus_dance"v=xsleep 10return:endclick "shoot_full"endend
but the focus can not change