Page 1 of 1 1
Topic Options
#30824 - 2002-10-17 10:57 AM Updated Kix, Old script wouldn't run
RoSkovs Offline
Fresh Scripter

Registered: 2002-10-17
Posts: 6
I did a update on the KIX on the server, and kept the old scripts as they where, but they didn't work as usaly.

Heres how

Every computers doesn't have a desktop and some other things are taken away in the mainscript

but in the main script I also got
"
If InGroup("DeskTop")
Call "DeskTop.kix"
EndIf
"

So they who are in Desktop group will be taken to the other script and at the end of DeskTop.kix
"
:ExitPoint

Return
"

and in mainscript again
"
:ExitPoint

Cookie1
Exit
"

But it seem like its not running desktop.kix or it's not going to the end of the mainscript after running desktop.kix

anyone that can see what I do wrong in the new kix here ?

Top
#30825 - 2002-10-17 01:19 PM Re: Updated Kix, Old script wouldn't run
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
see that you are playing with the cookie and must ask, your clients not working, are they win9x?
did you also updated the kxrpc on the server?
_________________________
!

download KiXnet

Top
#30826 - 2002-10-17 01:37 PM Re: Updated Kix, Old script wouldn't run
RoSkovs Offline
Fresh Scripter

Registered: 2002-10-17
Posts: 6
All the clients are Win9x.
They are working but they are working as the Desktop.kix never have been taken place.

I did a kxrpc -remove
and in the new one I took
Kxrpc -install so I think all that should be in order.

Top
#30827 - 2002-10-17 01:46 PM Re: Updated Kix, Old script wouldn't run
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
ok, so next step could be to copy the scripts to:
logon_test.*

and use it on your test user so this will not interfier other ppl logons.
then, I would like to see does it handle that if.
so, changing:
If InGroup("DeskTop")
Call "DeskTop.kix"
EndIf

to:
If InGroup("DeskTop")
"Ingroup desktop" ?
Call "DeskTop.kix"
"error returned by call:" @error ?
else
"not ingroup desktop" ?
EndIf
"press any key to continue..."
get $nul

with this in your test logon you can see how it goes with it.
cheers.
_________________________
!

download KiXnet

Top
#30828 - 2002-10-17 02:53 PM Re: Updated Kix, Old script wouldn't run
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Put DEBUG ON into the first line of your main script and step though the code. Also, I do not think you can have the same label ":ExitPoint" at multiple locations of your script, even if they are spread over different files.
_________________________
There are two types of vessels, submarines and targets.

Top
#30829 - 2002-10-17 03:53 PM Re: Updated Kix, Old script wouldn't run
RoSkovs Offline
Fresh Scripter

Registered: 2002-10-17
Posts: 6
Thanks for the ideas,
I will try this and come back with a feedback

Top
#30830 - 2002-10-18 08:01 AM Re: Updated Kix, Old script wouldn't run
RoSkovs Offline
Fresh Scripter

Registered: 2002-10-17
Posts: 6
Nothing have worked, I tried to make the script like Lonkero said, but that didn't solve my problem.

quote:
Put DEBUG ON into the first line of your main script and step though the code. Also, I do not think you can have the same label ":ExitPoint" at multiple locations of your script, even if they are spread over different files.
Yes :Exitpoint are at the end of every exstra scripts, this have worked with the last version of Kixstart that I had, but maybe this have changed ?

The point with DeskTop.kix are that it shall return to the :Exitpoint in the main script not return where it was before it switch over to Desktop.kix

Top
#30831 - 2002-10-18 09:04 AM Re: Updated Kix, Old script wouldn't run
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
what comes to the exit-label...

calling a script is same as cut&paste it manually into that place.
that is why it even should not work.
_________________________
!

download KiXnet

Top
#30832 - 2002-10-18 09:45 AM Re: Updated Kix, Old script wouldn't run
RoSkovs Offline
Fresh Scripter

Registered: 2002-10-17
Posts: 6
So that will say that I shall instead of

:Exitpoint in desktop.kix
have

GOTO "Exitpoint"

[ 18. October 2002, 09:47: Message edited by: RoSkovs ]

Top
#30833 - 2002-10-18 09:52 AM Re: Updated Kix, Old script wouldn't run
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
don't quite understand your "question" but as what comes to goto's they are not "best practise".

this means in english that having jumps instead of clean structures most likely will make your head hart....

why you use the exitpoint in the first place?

anyway, if you are sure you want to refer to the end of the main process, do not use same label in subscript.
to avoid fully need for it, you just would need:

code:
If InGroup("DeskTop")
Call "DeskTop.kix"
Cookie1
Exit 0
EndIf

_________________________
!

download KiXnet

Top
#30834 - 2002-10-21 09:38 AM Re: Updated Kix, Old script wouldn't run
RoSkovs Offline
Fresh Scripter

Registered: 2002-10-17
Posts: 6
First I will thanks everyone that di replay my post (Lonkero and sealeopard)

I did find out my problem when I tried out everything you said, and had to do a lot of test and fail.

The soulution to my problem was (Running win NT4.0 server)

Group "DeskTop" was loacl groupe and not global,
then where the old KIX did find the users the new one didn't, so the soulution was to make DeskTop group into a global group and then the script went on as it did before the upgrade of KIX.

Top
#30835 - 2002-12-05 04:48 PM Re: Updated Kix, Old script wouldn't run
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

To prevent possible upgrading problems with ingroup function we are always using
the format
code:
  IF (InGroup("Desktop") <> 0)
? "user is member from local or global group"
ELSE
? " user is not a member of group DESKTOP"
ENDIF

greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

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 (Allen) and 581 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.061 seconds in which 0.024 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