Page 1 of 1 1
Topic Options
#19548 - 2002-04-05 01:08 AM Color command is barking
Muz Offline
Fresh Scripter

Registered: 2002-03-30
Posts: 8
Loc: Corsham, Wiltshire, Englang
The COLOR command seem s to exhibit some strange behaviours.

1. Does not alwaye change the color when told to do so.
2. When colour is eventually switched on, not all the following output is coloured.
3. Even longer colour activation time when second COLOR command is given. First COLOR command may remain in effect for several lines after the second COLOR command is given.

Would this be graphics card related? I have see the same effects on an ATI Rage Pro 128 and on the built in G-card of a Compaq Proliant 1600R.
_________________________
Muz E. murray.styman@btinternet.com I did not say this, I was not here. - from Dune, Guild navigator to the Padishah Emperor, Shaddam IV.

Top
#19549 - 2002-04-05 01:54 AM Re: Color command is barking
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11625
Loc: CA
Hello Muz,

Questions:
1. What version of KiXtart are you using?
2. What operating system?
3. How many systems are experiencing this issue?

Please use the following code and let us know how it works. This functions very quickly on 1,000+ systems using KiXtart 3.63 with all OSs.

code:
CLS
SMALL
Color b+/n
BOX (0,0,24,79,GRID)
Color b/n
BOX (2,3,13,77,┼)
Color g+/n
BOX (1,2,12,76,FULL)
Color b+/n
IF ((@TIME > "00:00:00") AND (@TIME < "12:00:00"))
AT(9,5) "Good Morning @fullname"
AT(10,5) "You are entering the @domain domain."
Color r+/n
AT(11,5)"Please wait - Network authentication is being verified . . ."
Color b+/n
ELSE
Color b+/n
IF ((@TIME > "12:00:00") AND (@TIME < "18:00:00"))
AT(9,5) "Good Afternoon @fullname"
AT(10,5) "You are entering the @domain domain."
Color r+/n
AT(11,5)"Please wait - Network authentication is being verified . . ."
Color b+/n
ELSE
AT(9,5) "Good Evening @fullname"
AT(10,5) "You are entering the @domain domain."
Color r+/n
AT(11,5)"Please wait - Network authentication is being verified . . ."
Color b+/n
ENDIF
ENDIF

Color w+/n
AT (2,5) "Userid : "
AT (3,5) "Full Name : "
AT (4,5) "Workstation : "
AT (5,5) "NT Domain : "
AT (6,5) "Logon Server : "


Color y+/n
AT (2,20) @USERID
AT (3,20) @fullname
AT (4,20) @wksta
AT (5,20) @domain
AT (6,20) @LSERVER
Color w+/n
AT (8,5) "Please press a key to continue..."
get$



[ 05 April 2002, 01:56: Message edited by: NTDOC ]

Top
#19550 - 2002-04-05 02:23 AM Re: Color command is barking
Muz Offline
Fresh Scripter

Registered: 2002-03-30
Posts: 8
Loc: Corsham, Wiltshire, Englang
Yoh NTDOC

1. Kix 4.10.81, get same behaviour with 4.02

2. Win 98 sp1 and NT 4.0 Terminal Server Edition

3. Just the two I have tried it on.

Your code code seems to work OK, however;

Line 4 BOX (0,0,24,79,GRID) draws a blue grid but the last 30 characters of the last line are bright white.

Line 6 BOX (2,3,13,77,┼) returns an expression error

I modified it to BOX (2,3,13,77,"┼")

All other colour appear to be correct.

I have been using the ? command in conjuction with the COLOR command, is this my problem? Your script uses the AT command.
_________________________
Muz E. murray.styman@btinternet.com I did not say this, I was not here. - from Dune, Guild navigator to the Padishah Emperor, Shaddam IV.

Top
#19551 - 2002-04-05 02:49 AM Re: Color command is barking
Muz Offline
Fresh Scripter

Registered: 2002-03-30
Posts: 8
Loc: Corsham, Wiltshire, Englang
Additional Informatiobn;

COLOR command and ? command work as expected (almost)in debug mode i.e. kix32 colour.kix /d

If you run the following code with the command 'kix32 colour.kix' it only outputs red text. Output remains red after script has completed.

The sample code

COLOR r+/n
? 'This is bright red'
COLOR g/n
? 'This is green'
COLOR w+/n

leaves your command box with green foreground switched on (if run with /d). For the final colour command to be activated kix needs to output at least one character i.e. add ? ' ' to the bottom of the above code. It must be ' ' and not a null string ''.
_________________________
Muz E. murray.styman@btinternet.com I did not say this, I was not here. - from Dune, Guild navigator to the Padishah Emperor, Shaddam IV.

Top
#19552 - 2002-04-05 01:08 PM Re: Color command is barking
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11625
Loc: CA
I'm not really sure. You should not have needed to modify anything in my code. I works on thousands of systems as is with the correct color.

What language is the OS? Although I don't recall anyone else having issues with the color command.

? or AT does not matter.

Do you load an ANSI driver on these systems? Seems something odd is going on here. The color in your DOS box remaining a different color is normal. You also do a CLS while in the DOS box and it should go back to the default color.

Maybe try it on some other systems when you get a chance and see if they have the issue as well.

Can you change the colors of the DOS box on an NT system ok, is the resolution and colors on these systems normal with respect to other Windows programs?

Top
#19553 - 2002-04-06 01:03 AM Re: Color command is barking
BrianTX Offline
Korg Regular

Registered: 2002-04-01
Posts: 895
I've had the same problem with color in logon scripts before. If you run it locally it seems to function, but not from the netlogon share. I've noticed sometimes different versions of the msvcrt.dll file seem to change whether it functions or not, but I have been unable to determine an actual fix.

Brian

Top
#19554 - 2002-04-06 02:13 AM Re: Color command is barking
Muz Offline
Fresh Scripter

Registered: 2002-03-30
Posts: 8
Loc: Corsham, Wiltshire, Englang
NTDOC

My OS is Win95 osr2, Win98 SP1, Win98 SE and NT4.0 Terminal Server Edition SP6a. Or do you mean English?

I possibly had to change your code because of the way I Cut and Paste it from the bulletin board to my system. ┼ did not work/translate.

NO ANSI drivers being loaded.

NT gives same results.

Resolution and colors; don't quit follow what you mean but I think the answer is yes.

When your script ends it leaves command prompt half way up the DOS window. If I then run the simple script that I posted in my original reply to you. 'This is red' is red and 'This is green' is green. but if I run it from the bottom of the DOS window all output is red!!!! This COLOR command is definately barking.

Does the fact that if run in Debug mode (/d) give any clues to the problem?

BrianTX

Kix32.exe is local (C:\Windows\kix32.exe). Script gives same results if local or on netlogon share.
_________________________
Muz E. murray.styman@btinternet.com I did not say this, I was not here. - from Dune, Guild navigator to the Padishah Emperor, Shaddam IV.

Top
#19555 - 2002-04-08 08:19 PM Re: Color command is barking
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11625
Loc: CA
So your saying that COLOR is still very slow?

Given that your running it on multiple machines, I'm not sure what to say. I can not duplicate the issue you're having.

Maybe someone else can step in here and see if they see something going on, or if they have experienced the same problem.

Are you sure there are no Global Policies or local policies getting in the way here somewhere?

Knock - Knock... Anyone else seen or heard of anything like this, please step in.

Thanks...

[ 08 April 2002, 20:20: Message edited by: NTDOC ]

Top
#19556 - 2002-04-08 10:42 PM Re: Color command is barking
kholm Offline
Korg Regular
*****

Registered: 2000-06-19
Posts: 714
Loc: Randers, Denmark
The problem may be related to the clients.

Known Problems of KiXtart on Windows 9x:
  • When text is output to bottom-right position of the screen, the screen scrolls.
    This issue is related to the Console API on Windows 9x.
  • Color is sometimes garbled when the screen is scrolled.
    This problem is caused by the way Windows 9x handles color attributes.
I have observed this on my Win9x clients:
If you use a box-statement that includes the bottom-right coordinate the screen wil scroll and the color-attribute for the last line is changed.
So if the code is to be executed on 9x clients the biggest box you can use is either:
Box(0,0,23,79)
or
Box(0.0,24,78)

-Erik

Top
#19557 - 2002-04-09 06:38 PM Re: Color command is barking
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11625
Loc: CA
Erik,

Thanks for the input, but Muz says that he gets this problem on all Win32 and only using a simple color command. If I'm not mistaken, I think his main issue right now is the SLOW SPEED when he uses the color command.

code:
COLOR r+/n
? 'This is bright red'
COLOR g/n
? 'This is green'
COLOR w+/n


Top
#19558 - 2002-04-11 01:23 AM Re: Color command is barking
Muz Offline
Fresh Scripter

Registered: 2002-03-30
Posts: 8
Loc: Corsham, Wiltshire, Englang
NTDOC

Speed is not a problem.

I am experiencing the symptoms that Eric mentioned as known Win9x problems.

If I change the grid size in your first BOX (0,0,24,79,GRID) command to BOX (0,0,23,79,GRID) ALL colours are as expected.

Eric,

My colour poblem is not just limited to the output being on the last line and being scrolled up.

I will double check that I get the same symptoms on NT.
_________________________
Muz E. murray.styman@btinternet.com I did not say this, I was not here. - from Dune, Guild navigator to the Padishah Emperor, Shaddam IV.

Top
#19559 - 2002-04-12 10:45 PM Re: Color command is barking
Muz Offline
Fresh Scripter

Registered: 2002-03-30
Posts: 8
Loc: Corsham, Wiltshire, Englang
I checked out NT today and found that colours get switched on and off as they should all except for the bottom line of the console window.

COLOR w/g
? "This is Red text on a green backround"

this line of output has a green backround for the full width of the screen and not just for the width of the string displayed.
_________________________
Muz E. murray.styman@btinternet.com I did not say this, I was not here. - from Dune, Guild navigator to the Padishah Emperor, Shaddam IV.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 202 anonymous users online.
Newest Members
BeeEm, min_seow, Audio, Hoschi, Comet
17882 Registered Users

Generated in 0.034 seconds in which 0.014 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org