#22509 - 2002-06-01 12:20 AM
User must see but NOT close dos box
|
Anonymous
Anonymous
Unregistered
|
I've been searching on the site for a way to keep the dos box visible but grey out the x so the user can't close it.(closing it causes a reboot for some strange reason) Any Ideas? I don't think any of the setconsole options does that but I could be wrong.
P.S. I'm looking for a fairly simple way of doing it. I saw a post for a guy who runs a borland executable. That's too complicated and if I know Kixtart there must be a simple way.
|
|
Top
|
|
|
|
#22510 - 2002-06-01 12:44 AM
Re: User must see but NOT close dos box
|
Howard Bullock
KiX Supporter
   
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
From my experience, the default behavior of Kixtart 4.02 is that one can not interrupt the script with Ctrl-Break or Ctrl-C. On some OS's like NT and higher one can terminate a process. when this happens, KiXtart forces a logoff on NT, W2K, and XP. Not sure about Win9x.
From the manual: quote: By default, to prevent users from inadvertently interrupting a script, KiXtart automatically disables the CTRL+C/BREAK keys, removes the Close command in the System menu of the current command-prompt window, and hides the Please wait while your logon script executes message box on Windows 9x.
In a multi-tasking environment such as Windows NT, users cannot be fully prevented from interrupting a program. (Programs can be stopped by using the Task List, for example.) As an additional protection, on computers running Windows NT Workstation only, when BREAK is OFF (the default) KiXtart also installs a special event handler for the current console. The effect of this handler is that whenever a user forcibly terminates KiXtart, the user is automatically logged off. This also means that you must be careful when testing scripts.
|
|
Top
|
|
|
|
#22512 - 2002-06-01 02:53 AM
Re: User must see but NOT close dos box
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
a solution to that is the hiding of the window and using kixforms or kixgui to display the output.
Not the easiest of solutions for beginners, but not unreasonably difficult to implement...
|
|
Top
|
|
|
|
#22513 - 2002-06-03 04:27 PM
Re: User must see but NOT close dos box
|
Anonymous
Anonymous
Unregistered
|
Thanks for the replys but even with break off you can close the box kix runs in and it logs you off. I'm sure glad to see that that log off stuff isn't a bug. I'm going to look into that kixgui suggestion.
Thanks again
|
|
Top
|
|
|
|
#22514 - 2002-06-03 05:27 PM
Re: User must see but NOT close dos box
|
BrianTX
Korg Regular
Registered: 2002-04-01
Posts: 895
|
Another possibility is to run the box in full screen mode. You can send an {alt-enter} to the console to force full screen mode.
Brian
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 484 anonymous users online.
|
|
|