Page 1 of 1 1
Topic Options
#74974 - 2003-05-12 03:33 PM Using BOX() and AT()
zdarma Offline
Getting the hang of it

Registered: 2002-10-08
Posts: 83
I have written the following script :

code:
COLOR G+/N
BOX(25,0,29,40,"+-+|+-+|")
AT (26,1) "Lancement des applications : "
AT (27,1) "Bloomberg, FactSet, FirstCall Reuters"
AT (28,1) "DataStreal Advance, FinXS, FinWin"
COLOR W/N
@CRLF

When I ran this script as a stand-alone to test if the placement of the box was correct it showed up correctly on the screen, as seen below :
code:
+---------------------------------------+
|Lancement des applications : |
|Bloomberg, FactSet, FirstCall Reuters |
|DataStreal Advance, FinXS, FinWin |
+---------------------------------------+

However when I integrated the code into my script I get something like the following on my screen :

code:
+---------------------------------------++--------------------------------------
-+Lancement des applications : Bloomberg, FactSet, FirstCall ReutersDataStreal A
dvance, FinXS, FinWin

Does anybody have any ideas why it is doing this? I have other boxes that don't seem to have this problem.

Thanks in advance,
Z.

Top
#74975 - 2003-05-12 03:35 PM Re: Using BOX() and AT()
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
We have had Issues with the console on 9x if the lines are longer than the Box is wide

Can you check with

$_ = setoption("WrapAtEOL","ON")

?
_________________________



Top
#74976 - 2003-05-12 03:41 PM Re: Using BOX() and AT()
zdarma Offline
Getting the hang of it

Registered: 2002-10-08
Posts: 83
Jochen,

Thanks for the idea, but unfortunately it didn't work. I still get the same thing. I am trying to do this under NT4.

Any other ideas?

thx

Top
#74977 - 2003-05-12 03:54 PM Re: Using BOX() and AT()
maciep Offline
Korg Regular
*****

Registered: 2002-06-14
Posts: 947
Loc: Pittsburgh
What if you get rid of the @crlf, as I can't figure out why you would have that there anyhow. You might want to just use '?' instead.
_________________________
Eric

Top
#74978 - 2003-05-12 03:57 PM Re: Using BOX() and AT()
zdarma Offline
Getting the hang of it

Registered: 2002-10-08
Posts: 83
Actually the "@CRLF" is there because I copied it by mistake. It should be there for the rest of my script to skip a line before displaying the next bit of info.

However, I did take out the "@CRLF" and tried to replace it with a "?" instead, but I get the same results

Top
#74979 - 2003-05-12 04:05 PM Re: Using BOX() and AT()
maciep Offline
Korg Regular
*****

Registered: 2002-06-14
Posts: 947
Loc: Pittsburgh
Maybe you should post the rest of your script.
_________________________
Eric

Top
#74980 - 2003-05-12 04:19 PM Re: Using BOX() and AT()
zdarma Offline
Getting the hang of it

Registered: 2002-10-08
Posts: 83
I will just add a portion of the remainder of the scirpt. For a variety of reasons I can't add more.

Here is what the script looks like :

code:
BREAK ON
$nul=SETTITLE ("Script de lancement des Applications Flux")
;
;************************************************* Les applications a lançait ************************************************
;
COLOR G+/N
BOX(25,0,29,40,"+-+|+-+|")
AT (26,1) "Lancement des applications : "
AT (27,1) "Bloomberg, FactSet, FirstCall Reuters"
AT (28,1) "DataStreal Advance, FinXS, FinWin"
COLOR W/N
@CRLF
;
;************************************************* Lancment de Reuters XDE4 ************************************************
;
? "Lancement de Reuters Kobrea XDE4" ;Lancement de Reuters XDE4
; RUN'%ComSpec% /c "C:\DIRECTORY STRUCTURE\kobra.exe"'
;
;************************************************* Lancment de Bloomberg + Excel ************************************************
;
? "Lancement de Bloomberg" ;Lancement de Open Bloomberg
; RUN '%ComSpec% /c "C:\DIRECTORY STRUCTURE\wintrv.exe"'

I don't know if that will help any because the rest of the script runs just fine.

[ 12. May 2003, 16:21: Message edited by: zdarma ]

Top
#74981 - 2003-05-12 04:29 PM Re: Using BOX() and AT()
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Oh well ,

How do you start this script ?

Standard is a Height of 25 Lines and you start the thing in line 25 ...

So at least to be on safe side you should state somewhere before you start the script in your batch :

quote:
mode con cols=80 lines=30
hth
_________________________



Top
#74982 - 2003-05-12 04:32 PM Re: Using BOX() and AT()
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Additionally,

If you Break lines afterwards with '?' you should provide some screen buffer or just continue to work with AT()
_________________________



Top
#74983 - 2003-05-13 02:40 PM Re: Using BOX() and AT()
zdarma Offline
Getting the hang of it

Registered: 2002-10-08
Posts: 83
I've decided to design my "box" by hand. I know there is probably a little somethin' somethin' that I'm missing in the script, but I've wasted enough time trying to make my box with the BOX() command.

Even though I have 4 other boxes that work fine, if I have to do one of them by hand, hey no biggie.

Thanks to all for their suggestions. If I have more time in the future I'll try and figure out where the problem is.

Zd.....

Top
#74984 - 2003-05-13 02:46 PM Re: Using BOX() and AT()
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
I hope that in future using those console stuff is disabled!

I actually hope they would be disabled already in wkix32.exe

just waste of exe-size

[ 13. May 2003, 14:47: Message edited by: Lonkero ]
_________________________
!

download KiXnet

Top
#74985 - 2003-05-14 03:56 PM Re: Using BOX() and AT()
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Z,

think you got me wrong, ok, rephrasing ....

What is the console set to regarding Width/Height/Screenbuffersize on the machine this behavior is shown and what version of KiX are you run this with ?
It was NT 4 ? Well, here the Box is shown correctly so I guess it is your Console Setting that puzzles it [Wink]
_________________________



Top
#74986 - 2003-05-16 12:06 AM Re: Using BOX() and AT()
zdarma Offline
Getting the hang of it

Registered: 2002-10-08
Posts: 83
Jochen,

I'm using NT4 (French). I don't know if its a langauge issue. The standard setting for the "DOS Windows" is the same for height/width and screen buffer size is : 130 x 300. I'm using the version of Kix 4.20.

I don't know what's going on. As I said previously I did one box by hand (not the most fun I've had in a while, mind you) and alls seems to be working fine (for now that is).

Thx,
Z.

Top
#74987 - 2003-05-16 12:45 AM Re: Using BOX() and AT()
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
weird...
does the at lines show up correctly if you comment out the box-line?
_________________________
!

download KiXnet

Top
#74988 - 2003-05-15 02:14 PM Re: Using BOX() and AT()
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Think we actually could help you if you'd be able to post the complete thing ...

Maybe if you remark Company Confidential Data ? [Wink]

hehe ... I remember the first script I posted here, left in the SMS service account password and at that time the Edit function wasn't available [Big Grin]

[ 15. May 2003, 14:15: Message edited by: Jochen ]
_________________________



Top
#74989 - 2003-05-15 02:32 PM Re: Using BOX() and AT()
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
mm...
what is the post linky?
_________________________
!

download KiXnet

Top
#74990 - 2003-05-15 02:37 PM Re: Using BOX() and AT()
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Hmmm ... search by Member number , only 3K posts to sort by date , but I guess you won't be able to find as I deleted and reposted (which worked that time)

[Razz]

[ 15. May 2003, 14:38: Message edited by: Jochen ]
_________________________



Top
#74991 - 2003-05-15 02:41 PM Re: Using BOX() and AT()
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
I would need to search with my own util as boards search does not provide that many results.
_________________________
!

download KiXnet

Top
Page 1 of 1 1


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

Who's Online
0 registered and 1045 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.098 seconds in which 0.035 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