Skip to content

ZeroTrace HID

Comments

Annotate scripts with single-line // and # comments or multi-line comment blocks

Comments are notes that are ignored during execution. ZeroTrace supports single-line comments and multi-line comment blocks.

Single-line comments

Place // or # at the start of a line or after a command. Everything from the marker to the end of the line is stripped.

# Full-line comment
writeLn "Hello" // Inline comment
delay "1000" # Another inline comment
// Another full-line comment
Quote-aware

Comment markers are only recognized outside quotes and backticks. A # or // inside a quoted argument is kept as literal text, so writeLn "https://example.com" types the URL intact.

Freestyle notes

Any line that does not begin with a valid command is ignored, so plain notes are safe.

This is a freestyle note and will be ignored.

If a freestyle line starts with a valid command (for example writeLn or delay), it will execute. When in doubt, prefix the line with # or //.

Comment blocks

commentStart … commentEnd skips everything between the two markers, across multiple lines. Unlike single-line comments, a comment block also works inside repeat, while, and function bodies.

commentStart
This whole section is ignored,
including any commands inside it.
commentEnd

Comments inside write blocks

Inside text blocks (writeStart…writeEnd, writeLnStart…writeLnEnd, and the accurate/delayed variants), lines are treated as raw text. A # or // there is typed as output, not stripped — use commentStart/commentEnd around the block if you need to comment those lines out.

# This script prints a message
writeLn "Hello, World!" // Inline comment

// Wait before the next command
delay "1000"

_$VAR isAdmin = "true" // Variable assignment with a comment

Command Palette

Search for a command to run...