Skip to content

ClearConsole directive

zero-plusplus edited this page Dec 9, 2021 · 3 revisions

clearconsole-directive

See Debug directive for notes.

This directive clears debug console that were previously displayed. It will not break the script.

Syntax

This directive has the following syntax.

# Capitalization indicates the part that can be setting
# Only spaces are allowed before directive comment

; @Debug-ClearConsole(CONDITION)[HITCONDITION] => MESSAGE
  • CONDITION - See Conditional breakpoint
  • HITCONDITION - See Hit conditional breakpoint
  • => - Output operator
    • -> - Outputs the MESSAGE as it is
    • => - A line feed code is placed at the end of the MESSAGE
    • ->| or =>| - The same as for each operator, but it suppresses the automatic removal of leading whitespace
  • MESSAGE - Message to be displayed after clearing. See Log point's Embedding value

Everything after @Debug-ClearConsole is optional. The following is an example of a valid directive.

; @Debug-ClearConsole
; @Debug-ClearConsole(A_Index == 2)
; @Debug-ClearConsole => console cleared
Clone this wiki locally