(view help text of ColorSelectBox.cs as plain text)
ColorSelectBox, Version 1.00
Batch tool to present a color picker and return the selected (console) color
Usage: COLORSELECTBOX [ "title" ] [ /R ] [ /T ]
Where: "title" is the optional custom caption in the title bar
(default: Pick a Console Color)
/R return RGB value (R,G,B) of the selected color
(default: single hexadcimal digit)
/T Test: show console colors and their return values
Notes: Only the 16 standard console colors are available.
By default, the hexadecimal "index" of the selected
console color is shown on screen (e.g. "C" for bright red)
and returned as return code (e.g. 12 for bright red).
With /R however, the RGB value of the selected color
is shown (e.g. "255,0,0" for bright red) and returned
as return code (i.e. 65536 x red + 256 x green + blue).
With /T any other command line arguments will be ignored.
With /T or if no selection is made or in case of
(command line) errors, return code is -1.
Written by Rob van der Woude
http://www.robvanderwoude.com
page last uploaded: 2025-10-23; loaded in 0.0051 seconds