Focus
Method
Focus ( ) as Boolean
Syntax
FocusMax.FocusControl.Focus
Parameters
None
Returns
True if start is successful.
Remarks
Starts the auto focus operation and returns when Focus is complete. This finds the brightest star on the CCD, and then controls the focuser Position until Best Focus is achieved. It updates the Properties StarXCenter, StarYCenter and HalfFluxDiameter. If the auto focus is not successful this Method sets HalfFluxDiameter = 0. This Method has the same effect as if the user clicked the Focus button on the Focus Tab.
Note that the Focus may take many seconds and your script will not progress beyond Focus until the operation is complete. Use FocusAsync to get immediate return to your script, which allows parallel operation with your script.