Page 1 of 1 1
Topic Options
#22509 - 2002-06-01 12:20 AM User must see but NOT close dos box
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 Offline
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.

_________________________
Home page: http://www.kixhelp.com/hb/

Top
#22511 - 2002-06-01 02:22 AM Re: User must see but NOT close dos box
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
BREAK OFF in the beginning of your script will force KiXtart not to allow closing the DOS box. The 'x' in the upper right corner should be disabled at that point. I don't think it's possible to disable the 'x' while the batch file that calls the KiXtart script is running.
_________________________
There are two types of vessels, submarines and targets.

Top
#22512 - 2002-06-01 02:53 AM Re: User must see but NOT close dos box
Radimus Moderator Offline
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...
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#22513 - 2002-06-03 04:27 PM Re: User must see but NOT close dos box
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 Offline
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
Page 1 of 1 1


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

Who's Online
0 registered and 484 anonymous users online.
Newest Members
Sir_Barrington, batdk82, StuTheCoder, M_Moore, BeeEm
17886 Registered Users

Generated in 0.05 seconds in which 0.021 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