# scriptLib

Enable Scripting and provide various utilities based on scripting.

### Functions

- checkStatus - Queries the script server to determine if it is running and ready for use.
- disconnectServer - Closes the socket connection to the script server. The server remains running.
- executeScript - Instructs the server to run the previously specified script.
- findFile - Determines the location(s) of a file within a given directory tree.
- getResult - Queries the server for the requested output data from the last script execution.
- scriptConfig - Assists the user in controlling various settings related to scripting.
- scriptInit - Readies scripting by setting up the needed environment and starting the script server as needed.
- scriptPro - Provides a simple wrapper for executing arbitrary scripts
- sendData - Uploads the specified data to the script server.
- sendScript - Uploads the specified script to the script server.
- setShutdownTimeout - Sets the idle timeout after which the script server shuts down.
- startServer - Starts the script server, enabling scripting to proceed.
- stopServer - Shuts down the script server.
- which - Determines the location of an executable in the system path

### Internal Content

These are used within the library but may also be useful directly accessed from without.

- private functions
  - findEngine - Determines the location(s) of a scripting engine on a local computer.
  - formatScript - An aid to formulate the final script to be uploaded.
  - version - returns revision date of this library
- variables
  none

### Standalone Objects

- script - Provides a simple wrapper for executing arbitrary scripts

### Standalone Functions

### Notes

Scripting is supported under Windows 7 and beyond.

© 2015-2021. All Rights Reserved. Stan Bischof (stan@worldbadminton.com). Last updated 09 August 2021 18:35.