According to the original post for this thread there is no way to automate the start of the lock. You have to be there to manually click the button.
"Lock not available: FL gear is connected, but FL does not have a “lock” available to use. A lock is required before FL is able to maintain focus.
Lock available: FL has a lock available, but it is not being used. Click the “Start” button or start the lock in the FL application."
While SGP can load up and connect to PHD2 and start up Focuslock and it can determine the state of FocusLock, it does not start the lock/focus process. Unless I am misunderstanding. However there is a list of script commands in the help file that can tell it to do just that. Has anyone here got it 100% automated? I like to start my sequences before I take my daughter to swim practice so it starts imaging when it gets dark. But if I have to be at the computer to click “go” then it doesn’t really do what I need.
Here is the API for reference. public ScriptFocusLock()
This initializes the scripting object and starts the FocusLock UI.
public bool isLockAvailable()
This reports true when FocusLock is able to start focusing and engage the lock.
public bool isAtFocus()
This reports true when the guide image is in the Critical Focus Zone.
public bool isConnected()
This reports true if FocusLock is connected to the necessary devices.
public bool isLockRunning()
This reports true if FocusLock is maintaining the focus. This is called Lock mode.
public bool IsRunning()
This reports true if the scripted copy of FocusLock is running.
public void ConnectDevices()
This will instruct FocusLock to connect to the preselected devices. Any errors will be displayed in FocusLock. A pop up Windows Notification will appear if all are connected.
public void DisconnectDevices()
This will instruct FocusLock to disconnect from the preselected devices.
public void StartLock()
This will instruct FocusLock to begin focusing and to engage the lock.
public void StopLock()
This will instruct FocusLock to stop focusing and to disengage the lock.
public void CloseFocusLock()
This will tell the scripted copy of FocusLock to close.
Also there are script examples in a .zip file located in the FocusLock install folder. I have no idea how to use them but perhaps someone else does. I hope.