Without using a DOM is there a way to change the foreground and background
color of characters being printed to the console? Assume my script has no
access to IE.

Re: Console Text Color by Jeff

Jeff
Sun Feb 29 14:16:32 CST 2004

Also is there a way to use Unicode characters 2550-255D to draw boxes on the
cosole?

"Jeff" <junrue@removethis.hotmail> wrote in message
Without using a DOM is there a way to change the foreground and
background
color of characters being printed to the console? Assume my script has
no
access to IE.





Re: Console Text Color by Tom

Tom
Mon Mar 01 12:52:34 CST 2004

Box drawing characters can be Write(n) to the console with
a simple OpenTextFile("CON", 2).Write, but you need to
restrict the character set to the 'extended' ASCII (aka
IBM PC) character set. For example, to draw a sraight
line, use something like ...

Const cHorz = 196 ' hrizontal
Const cVert = 179 ' vertical
Const cUL = 218 ' upper left corner
Const cUR = 191 ' upper right
Const cLL = 192 ' lower left
Const cLR = 217 ' lower right
with CreateObject("Scripting.FileSystemObject")
set oConsole = .OpenTextFile("CON", 2)
oConsole.Write String(80, Chr(cHorz))
End with

However, this does not permit much cursor control.
Everthing will scroll as with the command prompt. In
addition, color control is not supported with this
approach.

If you 'really' want curso control and colored text,
you'll need to either resort to trickery or require a
third party control (no suggestions).

In the 'trickery' department, I've played with using the
DEBUG.exe utility to write directly to the character
display (virtual machine) memory and posted a couple of
routines that illustrate the techniques. I'd hardly call
them versatile or exhaustive, but they show the basics of
the approach that could be used. Two references are:

http://www.google.com/groups?selm=a2a101c3ec00$d9ee8af0
$a301280a@phx.gb

and

http://www.google.com/groups?selm=575601c3db01$67878210
$7d02280a@phx.gbl

Tom Lavedas
===========

>-----Original Message-----
>Also is there a way to use Unicode characters 2550-255D
to draw boxes on the
>cosole?
>
> "Jeff" <junrue@removethis.hotmail> wrote in message
> Without using a DOM is there a way to change the
foreground and
>background
> color of characters being printed to the console?
Assume my script has
>no
> access to IE.
>
>
>
>
>.
>

Re: Console Text Color by Alex

Alex
Tue Mar 02 10:20:01 CST 2004

Minor correction - the first of the URLs should have an "l" added to the
end. Corrected below. Not that I look up your old posts or anything, Tom. ;)

Tom Lavedas wrote:

> In the 'trickery' department, I've played with using the
> DEBUG.exe utility to write directly to the character
> display (virtual machine) memory and posted a couple of
> routines that illustrate the techniques. I'd hardly call
> them versatile or exhaustive, but they show the basics of
> the approach that could be used. Two references are:
>
> http://www.google.com/groups?selm=a2a101c3ec00$d9ee8af0$a301280a@phx.gbl
>
> and
>
> http://www.google.com/groups?selm=575601c3db01$67878210$7d02280a@phx.gbl
>



Re: Console Text Color by Jeff

Jeff
Tue Mar 02 14:24:47 CST 2004

tinyurl.com would be an excellent way to make links like this more
manageable.

http://www.google.com/groups?selm=a2a101c3ec00$d9ee8af0$a301280a@phx.gbl
becomes
http://tinyurl.com/3h3zp

http://www.google.com/groups?selm=575601c3db01$67878210$7d02280a@phx.gbl
becomes
http://tinyurl.com/3b5wf

Integrates right into IE and automatically copies the short link to your
clipboard.


"Alex K. Angelopoulos [MVP]" <aka-at-mvps-dot-org> wrote in message
news:ePQy0IHAEHA.3284@TK2MSFTNGP09.phx.gbl...
> Minor correction - the first of the URLs should have an "l" added to the
> end. Corrected below. Not that I look up your old posts or anything, Tom.
;)
>
> Tom Lavedas wrote:
>
> > In the 'trickery' department, I've played with using the
> > DEBUG.exe utility to write directly to the character
> > display (virtual machine) memory and posted a couple of
> > routines that illustrate the techniques. I'd hardly call
> > them versatile or exhaustive, but they show the basics of
> > the approach that could be used. Two references are:
> >
> > http://www.google.com/groups?selm=a2a101c3ec00$d9ee8af0$a301280a@phx.gbl
> >
> > and
> >
> > http://www.google.com/groups?selm=575601c3db01$67878210$7d02280a@phx.gbl
> >
>
>



Re: Console Text Color by Tom

Tom
Wed Mar 03 07:29:20 CST 2004

Thanks, Alex. We Greeks do need to stick together ;^))
And thanks for the complement. I have more than a few of
your routines in use, too.

Tom Lavedas
===========

>-----Original Message-----
>Minor correction - the first of the URLs should have
>an "l" added to the end. Corrected below. Not that I look
>up your old posts or anything, Tom. ;)
>
>Tom Lavedas wrote:
>
>> In the 'trickery' department, I've played with using the
>> DEBUG.exe utility to write directly to the character
>> display (virtual machine) memory and posted a couple of
>> routines that illustrate the techniques. I'd hardly
call
>> them versatile or exhaustive, but they show the basics
of
>> the approach that could be used. Two references are:
>>
>> http://www.google.com/groups?selm=a2a101c3ec00$d9ee8af0
$a301280a@phx.gbl
>>
>> and
>>
>> http://www.google.com/groups?selm=575601c3db01$67878210
$7d02280a@phx.gbl
>>
>
>
>.
>

Re: Console Text Color by Tom

Tom
Wed Mar 03 07:33:55 CST 2004

That's cute, but what do they get out of it? The ability
to track your movements on the net? (I'm no cynic, not
me.) Maybe they're in it for the 'clicks' to build an
advertising base.

It seems like a very neat service, but I need to
understand where the website derives its support before I
can decide to use it. The site is decidedly mute on this
subject.


===========

>-----Original Message-----
>tinyurl.com would be an excellent way to make links like
this more
>manageable.
>
>http://www.google.com/groups?selm=a2a101c3ec00$d9ee8af0
$a301280a@phx.gbl
>becomes
>http://tinyurl.com/3h3zp
>
>http://www.google.com/groups?selm=575601c3db01$67878210
$7d02280a@phx.gbl
>becomes
>http://tinyurl.com/3b5wf
>
>Integrates right into IE and automatically copies the
short link to your
>clipboard.
>
>
>"Alex K. Angelopoulos [MVP]" <aka-at-mvps-dot-org> wrote
in message
>news:ePQy0IHAEHA.3284@TK2MSFTNGP09.phx.gbl...
>> Minor correction - the first of the URLs should have
an "l" added to the
>> end. Corrected below. Not that I look up your old posts
or anything, Tom.
>;)
>>
>> Tom Lavedas wrote:
>>
>> > In the 'trickery' department, I've played with using
the
>> > DEBUG.exe utility to write directly to the character
>> > display (virtual machine) memory and posted a couple
of
>> > routines that illustrate the techniques. I'd hardly
call
>> > them versatile or exhaustive, but they show the
basics of
>> > the approach that could be used. Two references are:
>> >
>> > http://www.google.com/groups?selm=a2a101c3ec00
$d9ee8af0$a301280a@phx.gbl
>> >
>> > and
>> >
>> > http://www.google.com/groups?selm=575601c3db01
$67878210$7d02280a@phx.gbl
>> >
>>
>>
>
>
>.
>