I would like a function that can be called from a .bas script that will detect when motion is not present. This way I can setup my camera to record video of things moving around in front of it until they move out of frame for a period of time at which the video recording will stop. If something like this already exists please point me at it, but so far the only method I can find is md_detect_motion which seems to block until motion is detected.