ListLines

Displays the script lines most recently executed.

ListLines , OnOff

Parameters

OnOff [v1.0.48.01+]

If blank or omitted, the history of lines most recently executed is shown. Otherwise, specify one of the following words, which affects only the behavior of the current thread as follows:

On: Include subsequently-executed lines in the history.

Off: Omit subsequently-executed lines from the history.

[v1.1.30+]: The decimal values 1 and 0 may be used in place of On and Off, respectively.

Remarks

If ListLines is not used to affect line logging, the default setting is On.

ListLines (with no parameter) is equivalent to selecting the "View->Lines most recently executed" menu item in the main window. It can help debug a script.

ListLines Off and ListLines On can be used to selectively omit some lines from the history, which can help prevent the history from filling up too quickly (such as in a loop with many fast iterations). ListLines Off may also improve performance by a few percent.

Every newly launched thread (such as a hotkey, custom menu item, or timed subroutine) starts off fresh with the default setting for this command. That default may be changed by using this command in the auto-execute section (top part of the script).

[v1.1.28+]: The built-in variable A_ListLines contains 1 if ListLines is enabled and 0 otherwise.

On a related note, the built-in variables A_LineNumber and A_LineFile contain the currently executing line number and the file name to which it belongs.

KeyHistory, ListHotkeys, ListVars

Examples

Displays the script lines most recently executed.

ListLines

Omits subsequently-executed lines from the history.

ListLines Off