The following simple example illustrates how AutoScript works with automatic pop-up turned off and different settings for each context. The example assumes that you have set up F8 as the Activate AutoScript shortcut key. To set up the example:
Create a new window and place on it a DataWindow control and a CommandButton control.
Select all the boxes in the Partial Name Resolution Include group box.
Clear all the boxes in the After A Dot Include group box except Methods.
Clear all the boxes in the When No Context Include group box except Arguments and Local Variables.
Clear both boxes in the Options group box.
Context |
Do this |
What happens |
---|---|---|
Partial name resolution |
In the Clicked event script for cb_1,
type |
AutoScript pastes the local variable ll_rtn into the script because it is the only completion that begins with ll. |
Type |
The list displays all properties, events, functions, variables, and statements that begin with d. |
|
Type |
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 |
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. |