Hi everyone,

it seems that SetConsole("alwaysOnTop") and SetConsole("foreground"), once assigned to the console, cannot be reset. I have a program that should run in the background for a while, but display error messages (if there are any ...) in the foreground. So I use

$=SetConsole("AlwaysOnTop")
$=SetConsole("Foreground")
$=SetConsole("Hide")
... my program (invisible phase .....)

and this seems to worke nicely. Messages pop up in front of any application (but do not automatically get the focus, but this is just a minor issue).

Later on the console should be visible, since there are some lengthy processes running and I want the user to see some progress indicators.

$=SetConsole("Show")
... my program (copies a lot of files, and writes a progress indicator ...)

The problem is, that in this phase I want the user to be able to switch to a different application if he doesn't feel like watching the copy progress. But alas, the "alwaysontop" is still active, and the kix console consumes most of the space on screen, which in turn makes some users simply cancel my script.

I haven't found any way yet to reset attributes like "alwaysontop" or "foreground". Anyone who has an idea how this cound be done?

2nd question: solving issue #1 still gives the user an opportunity to cancel my script by closing its console window. Few ever will, if I manage to solve issue #1, because a window in the background won't do any harm. Just for the heck of it ... is there any setting so a user cannot cancel a kix script by closing its console window? (Setting "break on" and logging him out or using wkix is not a good idea ...)

Kix environment: Kix 4.21, Windows XP SP-2

Thanks

Armin Linder