Syntax
Application.Autofocus ( [ ExposureDuration ] )
Parameters
double ExposureDuration - (optional) exposure time in seconds.
Returns
Nothing
Remarks
This method starts an autofocus cycle. A compatible focuser and camera must be present.
If ExposureDuration is not specified, the exposure time is taken from the Focus Settings dialog box.
Use AutofocusStatus to determine when the autofocus function completes, and to determine whether it suceeded or failed.