--[[ @title VideoTool ]] local U function button() local f=59 local x=0 repeat wait_click(150) if is_pressed "up" then key = "UP" x = 1 end if is_pressed "down" then key = "DOWN" x = 1 end if is_pressed "left" then key = "LEFT" x = 1 end if is_pressed "right" then key = "RIGHT" x = 1 end if is_pressed "shoot_half" then --check first if shoot_half is set as AF-Key in Videosettings, doesnt work anyway. why? key = "SHOT_HALF" x = 1 end if is_pressed "menu" then set_prop(133,1) --enable manual focus (on digic 2 use 12 istead of 133) while is_pressed "menu" do if f<6731 then f=get_focus()+10 --increment focus set_focus(f) else set_focus(65535) end sleep(10) end end if is_pressed "display" then set_prop(133,1) --enable manual focus (on digic 2 use 12 istead of 133) while is_pressed "display" do if f>69 then f=get_focus()-10 --decrement focus set_focus(f) else set_focus(59) end sleep(10) end end while is_pressed "zoom_in" do press("zoom_in") end release("zoom_in") while is_pressed "zoom_out" do press("zoom_out") end release("zoom_out") if is_pressed "erase" then key = "ERASE" x=1 end until x==1 end --start script local l=0 --"carry" for beam on or off cls() print("[UP/DOWN] Lamp ON/OFF") --well formated to fit on console print("[ZOOM IN/OUT] Zoom") print("[SET] Pause/REC") print("[Shoothalf] AutoFocus") print("****click anything****") wait_click() print("[SET] Pause/REC") print("[Shoothalf] AutoFocus") print("[DISP/MENU] Focus-/+") print("[L/R] Aperture-/+") print("[Erase] Stop Rec") --click("shoot_half") --start video reord. dont needed atm... remove leading -- an it should work --click("shoot_full") repeat cls() print(get_prop(65)) --show some propcases. only for debugging due focus problems print(get_prop(245)) --print(get_prop()) --print(get_prop()) button() if key == "UP" then set_led(9,1) --fire up AF-Assistbeam l=1 end if key == "DOWN" then set_led(9,0) --shutdown AF-Assistbeam l=0 end if key == "SET" then if get_movie_status() == 1 then --toggle movie_status 1<->2 set_movie_status(2) else set_movie_status(1) end end if key == "SHOT_HALF" then set_prop(133,0) --enable auto focus (on digic 2 use 12 istead of 133) press("shoot_half") --perform AF sleep(1000) -- whats the maximum TTF (time to focus)?? release("shoot_half") --some trouble here in non-videomode sleep(100) if l==1 then --restore strahler set_led(9,1) end end if key == "LEFT" then --no idea how to do this. but you might have and willing to help me --decrement Av (and adjust Ev) end if key == "RIGHT" then --increment Av (and adjust Ev) end until key == "ERASE" set_led(9,0) --ensure strahler is off click("shoot_full") --stop video record --exit_alt() --maybe leave alt-mode