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.