Theory
As of version 1.0.1 FocusLock offers remote scripting. This allows for a much more flexible use of FocusLock. Once you have setup the program you are able to integrate FocusLock into your automated observatory setup. Scripting is accomplished through ScriptFocusLock.dll and through COM and ActiveX as entry FocusLock.Scripting. This is included by default in the installer package. This dll uses the Microsoft COM interface, allowing it to be accessed by any COM or ActiveX capable programs. A few examples include: Visual C++, Visual Basic, C#, JScript and VBscrict.
The FocusLock UI that is launched by the script will not have any of its settings set. If you want your manual FocusLock settings to be the same as your scripted settings you will need to load your profile into the scripted copy. You can manually register and unregister FocusLock for COM and ActiveX by running the Register.bat and Unregister.bat files, found in the install directory, as Administrator.