--[[ @title Test Lua Script ]] function set_camera() print("Runing Setup!") sleep(1000) cls() print("Set Manual Focus") focus_state = get_prop(6) if focus_state ~= 4 then -- not in manual, so change it if focus_state == 0 then -- normal, move 1 right click("left") click("right") click("set") elseif focus_state == 1 then -- macro, move 2 right click("left") click("right") click("right") click("set") else -- super macro, move 1 left click("left") click("left") click("set") end end cls() print("Set Custom Timer") timer_state = get_prop(223) if timer_state ~= 3 then -- not in Custom, so change it if focus_state == 0 then -- Off, move 1 up click("down") click("up") click("set") elseif focus_state == 1 then -- 2 second, move 2 up click("down") click("up") click("up") click("set") elseif focus_state == 2 then -- 10 second, move 3 up click("down") click("up") click("up") click("up") click("set") else -- Face Detect, move 1 up click("down") click("up") click("set") end end cls() exit_alt() end sleep(3000) -- wait for camera to turn on fully rec,vid,mode=get_mode() if rec == false then cls() print("Not in record mode!") print("Camera Setup not run.") sleep(2000) cls() exit_alt() else set_camera() end