Page 1 of 1 1
Topic Options
#180802 - 07/09/25 01:13 AM WKIX32 and WrapAtEOL
jngibert Offline
Lurker

Registered: 01/11/01
Posts: 2
Loc: PDX
Noticed something interesting when using WKIX32: Calling the SetOption function to set WrapAtEOL will show the Kixtart command window.

I set WrapAtEOL = ON just in case the command window needs to be displayed later during script execution (for error handling.) Having the command window appear when script execution begins just because this option is being set is a little frustrating.

Is this a behavior that can be changed?

-Jon


Edited by jngibert (07/09/25 01:14 AM)

Top
#180803 - 07/09/25 01:34 AM Re: WKIX32 and WrapAtEOL [Re: jngibert]
Les Offline
KiX Master
*****

Registered: 01/06/11
Posts: 12734
Loc: fortfrances.on.ca
It is expected behavior.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#180806 - 07/09/25 05:27 AM Re: WKIX32 and WrapAtEOL [Re: Les]
It_took_my_meds Offline
Hey THIS is FUN
*****

Registered: 03/05/07
Posts: 273
Loc: Sydney, Australia
Why do you say that it is expected behaviour?
Top
#180807 - 07/09/25 05:35 AM Re: WKIX32 and WrapAtEOL [Re: It_took_my_meds]
Les Offline
KiX Master
*****

Registered: 01/06/11
Posts: 12734
Loc: fortfrances.on.ca
Any console directive has always caused a console to to be created. AFAIK it has always been this way.

It is not a beta issue so belongs in suggestions if you wish to change expected behavior.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#180808 - 07/09/25 05:43 AM Re: WKIX32 and WrapAtEOL [Re: Les]
It_took_my_meds Offline
Hey THIS is FUN
*****

Registered: 03/05/07
Posts: 273
Loc: Sydney, Australia
Running
 Code:
Break on 

$=SetOption("Explicit","On")
$=SetOption("NoVarsInStrings","On")
$=SetOption("NoMacrosInStrings","On")
$=SetOption("DisableDebugging","On")
with wkix32.exe doesn't create a console but
 Code:
Break on 

$=SetOption("WrapAtEOL","On")
does.

It doesn't seem consistent to me.

Top
#180810 - 07/09/25 06:15 AM Re: WKIX32 and WrapAtEOL [Re: It_took_my_meds]
Les Offline
KiX Master
*****

Registered: 01/06/11
Posts: 12734
Loc: fortfrances.on.ca
None of the first group are console directives, meaning that they don't need the console to be put in effect.

Only the last one is a console directive. Makes perfect sense to me. Any of the SetConsole() directives will do the same thing.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#180817 - 07/09/25 11:06 AM Re: WKIX32 and WrapAtEOL [Re: It_took_my_meds]
Witto Offline
MM club member
*****

Registered: 04/09/29
Posts: 1828
Loc: Belgium
 Code:
Break on 
$=SetOption("Explicit","On")
$=SetOption("NoVarsInStrings","On")
$=SetOption("NoMacrosInStrings","On")
$=SetOption("DisableDebugging","On")
If @SCRIPTEXE = "KIX32.EXE"
	$=SetOption("WrapAtEOL", "On")
EndIf

Top
#180818 - 07/09/25 11:15 AM Re: WKIX32 and WrapAtEOL [Re: It_took_my_meds]
Richard H. Administrator Offline
Administrator
*****

Registered: 00/01/24
Posts: 4945
Loc: Leatherhead, Surrey, UK
 Quote:
It doesn't seem consistent to me.


It's perfectly logical - you are mis-attributing the effect.

Maybe a bit of background will help.

The console is an object - if you want console output you have to create it through an API. If you want to change a console property you need the object otherwise you have no property to change!

KiXtart makes the reasonable assumption that you set the "WrapAtEOL" in your script because you do actually want to change the property, so it *has* to create the console object to do so.

If you only don't want the console to appear and you are only setting the WrapAtEOL in case you need it (for example) to display debugging information in the event of an exception, then you need to defer the WrapAtEOL option until you need to write to the console.

None of the other SetOption() properties require a change to the console object, so none of the will trigger the console object creation.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Chris S., Glenn Barnas, ShaneEP, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 98 anonymous users online.
Newest Members
ForeverRED66, Bertrand59, MeBull, joma256, sanjay
17387 Registered Users

Generated in 0.097 seconds in which 0.056 seconds were spent on a total of 13 queries. Zlib compression enabled.

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