2.14 User Interaction

There may be times when you would like to provide a specific type of input to your script that would be difficult to automate. For instance, you wish to specify a particular data point on a graph, or a certain cell in a worksheet as input to one or more functions called from script. To do this, LabTalk supports ways of prompting the user for input while running a script.

In general, consecutive lines of a script are executed until such a user prompt is encountered. Execution of the script then halts until the user has entered the desired information, and then proceeds. The following sections demonstrate several examples of programming for this type of user interaction:

Topics covered in this section: