DefaultPrinter
(Engine-Level Function)
Example:
If MatchKeys(2, "p") { When letter "p" is pressed };
[
Str1 = DefaultPrinter() { Store the default printer };
Redirect("DEF:", newPrinter) { Select different printer };
PrtScrn() { Output screen to printer };
Redirect("DEF:", Str1) { Restore original printer };
]
In this script, the default printer is saved before redirecting printing to another printer. This allows the original printer to be restored as the default when the custom printing is concluded.
