Contents

Input and Output Commands


messagebox <text>, <flags>, <title>, <accumulator> - Displays a standard message box. The result (button clicked) is stored in the accumulator.
inputbox <prompt>, <accumulator> - Displays an input dialog. The entered text is stored in the accumulator.
console.load <caption> - Attaches a console with the specified caption.
console.unload - Detaches the console.
console.print <text> - Outputs text to the console.
console.get <accumulator> - Reads a string from the console input into the accumulator.
console.color <fore_color>, <back_color> - Sets console text and background colors.
console.attributes <attributes> - Sets console window attributes.

The console adapts to how the protector was launched. In the console build, console.load reuses the existing console and console.unload leaves it open. In the GUI build, console.load creates a window and console.unload closes it; the close button and Ctrl-C are disabled for a created console so the user cannot terminate the protector by closing it. The status command always writes to the protection log, so console commands are optional.

 

Copyright © 2001 - 2026, DotFix Software