Page 1 of 1 1
Topic Options
#172568 - 2007-01-09 01:21 PM Closing screen
Phoenix1987 Offline
Fresh Scripter

Registered: 2007-01-02
Posts: 49
Loc: Rotterdam, Netherlands
When i close my script box my windows logs out.
This doesnt happen when i let the script finnisch, but while testing i had my moments i needed to close the box cause the test script didnt work.
Is there a way so i can close the box without any concequentes.
Thanks
_________________________
A mistake is Human, But to make it a real mess you need a computer.

Top
#172569 - 2007-01-09 01:27 PM Re: Closing screen [Re: Phoenix1987]
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
Put this at the very beginning of your script..

Code:
If NOT @LOGONMODE
	     Break On
EndIf
_________________________
Today is the tomorrow you worried about yesterday.

Top
#172571 - 2007-01-09 01:50 PM Re: Closing screen [Re: Phoenix1987]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
That's because KiXtart started out as a logon script interpreter. You want your logon script to finish when a user logs on. If the user ends the script he/she is not authorized to log on and gets logged of.

Nowadays KiXtart is used for much more purposes then just logon scripts.

Anyway if you do like Gargoyle said the script can be ended at any time and you will stay logged on.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#172572 - 2007-01-09 01:54 PM Re: Closing screen [Re: Gargoyle]
Phoenix1987 Offline
Fresh Scripter

Registered: 2007-01-02
Posts: 49
Loc: Rotterdam, Netherlands
Thanks u guys are the best \:D
_________________________
A mistake is Human, But to make it a real mess you need a computer.

Top
#172576 - 2007-01-09 03:20 PM Re: Closing screen [Re: Phoenix1987]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
you could also use wkix32.exe which does not have this side-effect.
_________________________
!

download KiXnet

Top
#172586 - 2007-01-09 06:07 PM Re: Closing screen [Re: Lonkero]
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
Jooel, can wkix32.exe be forced to logoff when script is broken using
Break On
at the top of the script?

Top
#172591 - 2007-01-09 07:16 PM Re: Closing screen [Re: Witto]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
"break on" does have no effect to wkix32.exe

told to ruud about that but he never did fix it.
thus, that's the biggest difference between kix32 and wkix32
_________________________
!

download KiXnet

Top
#172592 - 2007-01-09 07:17 PM Re: Closing screen [Re: Witto]
NTDOC Administrator Online   content
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
No it can not. It does not have a console to break out of.
Top
#172593 - 2007-01-09 07:30 PM Re: Closing screen [Re: NTDOC]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
not totally true.
it has a console.

the difference is, it's not built around the console like the console-version.
_________________________
!

download KiXnet

Top
#172595 - 2007-01-09 07:53 PM Re: Closing screen [Re: Lonkero]
NTDOC Administrator Online   content
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
Well I think that it does not have one, but can produce one for output.

But regardless of the exact details (since I didn't write it and I have not seen the source code), I see no way or method to "break out" of it.

Top
#172596 - 2007-01-09 07:57 PM Re: Closing screen [Re: NTDOC]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
make your code in such way that it is stoppable?
or just kill it via taskmanager?
_________________________
!

download KiXnet

Top
#172598 - 2007-01-09 08:07 PM Re: Closing screen [Re: Lonkero]
NTDOC Administrator Online   content
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
Sort of defeating the purpose and intent and I think it is a bit too advanced a discussion to really help Phoenix1987.

Using Break On/Off for KIX32 is the method to control
Using WKIX32 one does not require a method to control (for normal use)

.

Top
#172599 - 2007-01-09 09:17 PM Re: Closing screen [Re: NTDOC]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
well, you could also say that break on/break off don't do anything and thus there is no way to control wkix32.exe

or you could say that using break on is too advanced.

I say using taskmanager is really easy if you have a never ending looper.
and that's the only case one needs to break the execution.
and in that case "break on" does not help.
at least last time I checked, even with it, if the cpu was 100% for kix, kixtart logged me off.
_________________________
!

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
0 registered and 1471 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.158 seconds in which 0.078 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org