Page 1 of 1 1
Topic Options
#80007 - 2001-04-25 05:05 AM KIX-COMMAND: switching between CONSOLE/CONSOLELESS mode
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear Ruud,

We like the additional command about debug <on | off>.
We suggest to add the same capability for console output.


New command will be console <on | off>.

Action: enables (CONSOLE ON) of disables (CONSOLE OFF) which
influence the way screen output will be handle.
Syntax: CONSOLE < ON | OFF >
Remarks:
By default the user will see kixtart output on his screen.
To prevent this you can use CONSOLE OFF. It will
have the same effect as kixtart function:

RedirectOutput("nul")

but it doesn't the actual RedirectOutput setting.


Thanks.

_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#80008 - 2001-04-25 09:02 AM Re: KIX-COMMAND: switching between CONSOLE/CONSOLELESS mode
Anonymous
Unregistered


Can't you do this with SetConsole("Hide") ?

Ruud

Top
#80009 - 2001-04-26 04:00 AM Re: KIX-COMMAND: switching between CONSOLE/CONSOLELESS mode
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear Ruud,

We suppose that SetConsole("Hide") has not the same effects as the usage of console-less kix32.exe version.

Possible difference is that the console-less version prevents a console window before the first kixtart statement will be executed.

We start not only a script from a windows environment but also within in a dos-box. For the last situation the SetConsole is not wanted. Our goal is that an user doesn't get any kind of output by using console command.
Greetings.


_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#80010 - 2001-04-26 07:23 AM Re: KIX-COMMAND: switching between CONSOLE/CONSOLELESS mode
Tan Bandradi Offline
Fresh Scripter

Registered: 2001-04-17
Posts: 31
Dear Ruud & MCA,

I agree with MCA idea about command: CONSOLE <ON|OFF>, but note that the console window should be hidden at the first time when kixtart running, until CONSOLE ON or SETCONSOLE("SHOW") statement executed.

I also concern about synchronous logon script execution especially in windows 9x, when I use the console-less version of kixtart, the logon script executed asynchronously, and vice versa for the standard version of kixtart. I think it would be a good idea to make synchronous logon script execution also for console-less version of kixtart.

Thanks

Top
#80011 - 2001-04-27 12:03 AM Re: KIX-COMMAND: switching between CONSOLE/CONSOLELESS mode
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear Ruud,

We do some checks with following code:

code:

IF setconsole("hide")
ENDIF
? "show 1"
console off
IF RedirectOutput("con")
ENDIF
? "should be invisible for users"
console on
? "show 2"
IF RedirectOutput("kix-info.txt")
ENDIF
? "show 3 - output kix-info.txt"

We run different kind of runs:


  • kix32c script.kix
    show 1
    should be invisible for users
    show 2
  • kix32c script.kix -i
    show 1
    should be invisible for users
    show 2
    => the parameter "-i" doesn't have effects.
  • kix32 script.kix
    => a console window will be opened
  • kix32 script.kix -i
    => nothing happens on screen.
    => this shows the situation we wanted. only we want it for a part
    of the script.

In all cases "show 3 - output kix-info.txt" will be written to
the file "kix-info.txt".

By implementation of CONSOLE command we want to see

code:

show 1
show 2


and output will be wriiten to file kix-info.txt file.

With the CONSOLE OFF command:


  • we don't need to change the kix32/kix32c call. no additional -i
    parameter is required.
  • using it in the script will ensure us that no output will be generated
    to the screen.
  • using it doesn't required a change of RedirectOutput or other settings.
    only all output to screen (= CON) will be suppressed.

Greetings.

_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
Page 1 of 1 1


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

Who's Online
1 registered (Allen) and 4358 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.123 seconds in which 0.096 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