Example

The following simple example illustrates how AutoScript works with automatic pop-up turned off and different settings for each context. To set up the example:

Table 7-4: AutoScript example

Context

Do this

What happens

Partial name resolution

In the Clicked event script for cb_1, type long ll_rtn. On a new line, type ll and press F8.

AutoScript pastes the local variable ll_rtn into the script because it is the only completion that begins with ll.

Type = d and press F8.

The list displays all properties, events, functions, variables, and statements that begin with d.

Type w and press Tab or Enter.

The list scrolls to dw_1 and AutoScript pastes it into the script when you press Tab or Enter.

After a dot

Type a dot after dw_1 and press F8.

The list shows all the functions and events for a DataWindow control.

Type GetNextM and press Tab or Enter.

AutoScript pastes the rest of the GetNextModified function name and template into the script, retaining your capitalization.

Select Edit>Go To>Next Marker.

AutoScript selects the next function argument so you can replace it. Complete or comment out the statement.

No context

In the empty ItemChanged event for dw_1, declare some local variables, press Tab or Enter, and then press F8.

The list displays the local variables and the arguments for the ItemChanged event.