Returns or sets the default background color of the Console window.
Read-write property
object.BackgroundColor = [ value ] |
OLE_COLOR
Displays the Console window and writes some text to it.
Console Object Example (VBScript) | Copy Code |
---|---|
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 |