Page 1 of 1 1
Topic Options
#47293 - 2003-10-26 04:27 PM Hide windows button
olmeca3332003 Offline
Fresh Scripter

Registered: 2003-10-26
Posts: 35
I use a batch file as my logon script, User stop the script before it complete. Starting the script in minimize mode didn't help. Can I hide the title stop button? Any help will be
appreciated.

Top
#47294 - 2003-10-26 04:34 PM Re: Hide windows button
Richie19Rich77 Offline
Seasoned Scripter
*****

Registered: 2002-08-16
Posts: 623
Loc: London, England
Why not use wkix32.exe, this will not bring up a window if used if "-i"

[ 26. October 2003, 16:35: Message edited by: Richard Farthing ]

Top
#47295 - 2003-10-26 04:41 PM Re: Hide windows button
Everyone Offline
Getting the hang of it

Registered: 2003-10-19
Posts: 81
Loc: Beale Air Force Base, CA
BREAK ON
Top
#47296 - 2003-10-26 08:33 PM Re: Hide windows button
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4667
Loc: The Netherlands
Kix has a lot more functionality for use as a logon script processor. Id dump the batch file and convert it into kix if possible.

If the console windows should not be shown you should use wkix indeed. If using wkix is not an option you could use the line below at the top of your script. Be sure that there will be absolutely no screen output from your script because the console window will be shown if there is.

code:
SetConsole ("Hide")

Using wkix would be the best solution though.

[ 26. October 2003, 20:36: Message edited by: R2D2 ]
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#47297 - 2003-10-26 08:40 PM Re: Hide windows button
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4667
Loc: The Netherlands
quote:

BREAK ON

No, this will enable the user to quit the script which is just what olmeca3332003 does not want.

Quote from the 4.22 rc1 manual.

quote:

Enables (BREAK ON) or disables (BREAK OFF) the CTRL+C/BREAK keys and the Close command. This effectively allows control over whether a script run by KiXtart can be interrupted or not.

olmeca3332003:
Be careful which button you click for any next posts. Posting a poll when it should be a message is not liked by most of the residents on this board and is actually explained here: section c of the topic behind this link.

[ 26. October 2003, 20:51: Message edited by: R2D2 ]
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#47298 - 2003-10-26 09:06 PM Re: Hide windows button
olmeca3332003 Offline
Fresh Scripter

Registered: 2003-10-26
Posts: 35
The console windows have to be shown. Im not familiar with Wkix32 yet, that is my next project. Is it possible to call a script from the batch to disable the button?
Top
#47299 - 2003-10-26 09:15 PM Re: Hide windows button
Richie19Rich77 Offline
Seasoned Scripter
*****

Registered: 2002-08-16
Posts: 623
Loc: London, England
Wkix32 is not a different application, just a console less version of kix32. [Big Grin] Some people will hate me saying that.

If window has to be shown, then use Break Off

[ 26. October 2003, 21:16: Message edited by: Richard Farthing ]

Top
#47300 - 2003-10-26 09:18 PM Re: Hide windows button
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4667
Loc: The Netherlands
quote:

Im not familiar with Wkix32 yet, that is my next project.

it's easy, just use wkix32 yourscript.kix instead of kix32 yourscript.kix. But oke one thing at a time.

quote:

Is it possible to call a script from the batch to disable the button?

Using Break Off at the top of your kix script would disable the x button for the console window in which the kix script is running. Other kix scripts called from the batch file after the first one would have the x button enabled.

Little question:
Running Windows NT, 2K, XP, 2K3 the user would get logged of imidiatly when the user clicks on the x button. Kix is originally a logon script processor, so if the user does not want the logon script to run and exits it manually kix will exit the user [Big Grin] Are you running Win9x or something?
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#47301 - 2003-10-26 11:17 PM Re: Hide windows button
olmeca3332003 Offline
Fresh Scripter

Registered: 2003-10-26
Posts: 35
I see where I will have to wait until I can convert my DOS bat file to Kix script. I will be watching for any new development.
Top
#47302 - 2003-10-26 11:21 PM Re: Hide windows button
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4667
Loc: The Netherlands
Or post it here if possible. Maybe (if you ask nice [Big Grin] ) we can give it a try in some spare time.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#47303 - 2003-10-26 11:49 PM Re: Hide windows button
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11163
Loc: Boston, MA, USA
If the login script is started via a batch file, e.g. LOGIN.BAT, for all users, then BREAK OFF in the first line of the code will log users out if they try to close the window. Thus, it should be hidden in addition with SETCONSOLE('HIDDE'). The use of WKIX32 would not make any difference in this situation as the window is invoked by the batch file.

If the login script is called via e.g. KIX32 LOGIN.KIX, then replacing KIX32 with WKIX32 adn suppressing any and all console output as described in the FAQ Forum will effectively hide the script.
_________________________
There are two types of vessels, submarines and targets.

Top
#47304 - 2003-10-27 11:31 AM Re: Hide windows button
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22344
Loc: OK
using wkix32 with console-window is not impossible.
and it has disabled close-button as default.
whereas kix32 can kick the user of when he behaves bad, wkix32 just denies the joy of doing bad from the user.
_________________________
!

download KiXnet

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
1 registered (ShaneEP) and 333 anonymous users online.
Newest Members
Praveer, Ollero, rayyo, Foxlicht, DonChild
17742 Registered Users

Generated in 0.055 seconds in which 0.031 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