Returns or sets the default text color of the Console window.
Read-write property
object.Color = [ value ] |
OLE_COLOR
Displays the Console window and writes some text to it.
Example (VBScript) | ![]() |
---|---|
Sub WriteToConsole Console.Visible = True Console.DebugFlags = 3 Console.Caption = "My Output" Console.Color = apGreen Console.BackgroundColor = apYellow Console.Clear Console.Print "This is the console window", apBlue, apRed Console.Print "Here is another message" End Sub |