Page 2 of 2 <12
Topic Options
#24796 - 2002-07-11 11:52 PM Re: Calling DoctorS in the House
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
fidel, don't know for sure about current version, but before the procedure went:
do a script for just the wellcome message.
do this in your main kix-script to call the wellcome screen:
run "start /b kix32 the message_script.kix"

thgis way the execution of the main script goes on when the other is carried on in other kix-process.

for more about messagebox see http://www.gwsPikval.com/jooel/manual/kix410.html#MESSAGEBOX

it actually is little tricky but once you have done it you think it as easy.

chees,
_________________________
!

download KiXnet

Top
#24797 - 2002-07-12 03:57 PM Re: Calling DoctorS in the House
seandragon Offline
Fresh Scripter

Registered: 2002-07-09
Posts: 17
ThanX
Top
#24798 - 2002-07-12 06:48 PM Re: Calling DoctorS in the House
seandragon Offline
Fresh Scripter

Registered: 2002-07-09
Posts: 17
Lonkero,

Is this how its supposed to be:

at the beginning of the script.kix:

run "start /b kix32 the message_script.kix"
; - Map Domain Pcsupport T: drive
IF InGroup("Domain pcsupport") <> 0
USE t: /delete /persistent
USE t: "\\mmnetad1\tools"
? " PcSupport Drive Mapped"
ENDIF
; - Map common drives for Domain Users
IF InGroup("DOMAIN Users") <> 0
USE g: /delete /persistent
USE g: "\\mmnetad1\home\@userid"
ENDIF
? " Login Script Complete"
EXIT

Message_script.kix:

$null=MessageBox? (" Hello "+@fullname", "XYZ Login Script",0)
Exit

Top
#24799 - 2002-07-12 06:51 PM Re: Calling DoctorS in the House
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
pretty much. isn't working?
you might also want change this line:
$null=MessageBox? (" Hello "+@fullname", "XYZ Login Script",0)

to:
$null=MessageBox(" Hello @fullname", "XYZ Login Script",0)
_________________________
!

download KiXnet

Top
#24800 - 2002-07-12 06:55 PM Re: Calling DoctorS in the House
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
quote:
run "start /b kix32 the message_script.kix"

"the message_script.kix" must be enclosed in quotes since it contains a space in the filename as in
code:
run 'start /b kix32 "the message_script.kix"'

_________________________
There are two types of vessels, submarines and targets.

Top
#24801 - 2002-07-12 07:15 PM Re: Calling DoctorS in the House
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
also, a timeout value could be specified...
30 secs or some...
_________________________
!

download KiXnet

Top
#24802 - 2002-07-12 07:21 PM Re: Calling DoctorS in the House
seandragon Offline
Fresh Scripter

Registered: 2002-07-09
Posts: 17
ThanX Guys!

But when I tried to login to the test client it halted the login operation and when I forced to close the window it logs out by itself. I'm using 4.10 KiX.

script.kix:

run 'start /b kix32 "the message_script.kix"'
; MAP Drives by Group Membership
;
? " Mapping network drives..."
;
; - Map Domain Pcsupport T: drive
IF InGroup("Domain pcsupport") <> 0
USE t: /delete /persistent
USE t: "\\mmnetad1\tools"
? " PcSupport Drive Mapped"
ENDIF
; - Map common drives for Domain Users
IF InGroup("DOMAIN Users") <> 0
USE g: /delete /persistent
USE g: "\\mmnetad1\home\@userid"
ENDIF
? " Login Script Complete"
EXIT

message_script.kix:
$null=MessageBox(" Hello @fullname", "XYZ Login Script",0)

Top
#24803 - 2002-07-12 07:26 PM Re: Calling DoctorS in the House
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
It is normal for KiXtart to log you out if you force it to close.
What is the name of the second KiXtart script. You are using two different names, "the message_script.kix" and "message_script.kix".

Where exactly does it halt, what is the error code, ...

Does the first script work without calling the second one?

[ 12 July 2002, 19:28: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.

Top
#24804 - 2002-07-12 07:45 PM Re: Calling DoctorS in the House
seandragon Offline
Fresh Scripter

Registered: 2002-07-09
Posts: 17
Jens,

You are the best, however there is no message box appears...

Top
#24805 - 2002-07-12 07:47 PM Re: Calling DoctorS in the House
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
no messagebox...
call in your batch only the messagebox script and what happens?
_________________________
!

download KiXnet

Top
#24806 - 2002-07-12 07:50 PM Re: Calling DoctorS in the House
seandragon Offline
Fresh Scripter

Registered: 2002-07-09
Posts: 17
Message Box appears as an error.
Top
#24807 - 2002-07-12 07:51 PM Re: Calling DoctorS in the House
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
and the error is?
_________________________
!

download KiXnet

Top
#24808 - 2002-07-12 07:54 PM Re: Calling DoctorS in the House
seandragon Offline
Fresh Scripter

Registered: 2002-07-09
Posts: 17
There is X mark beside the Hello User and then a Yes or No selection.
Top
#24809 - 2002-07-12 08:19 PM Re: Calling DoctorS in the House
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
ok. change the messagebox to:
$null=MessageBox(" Hello @fullname", "XYZ Login Script",64,20)

if it does print same way, change it to
$null=MessageBox(" Hello "+@fullname, "XYZ Login Script",64,20)

also, change the exit to exit 0

cheers,
_________________________
!

download KiXnet

Top
#24810 - 2002-07-12 09:52 PM Re: Calling DoctorS in the House
seandragon Offline
Fresh Scripter

Registered: 2002-07-09
Posts: 17
It's beautiful, my joy is almost fulfill it’s just that when I tried to call the message_script.kix nothing happens

run 'start /b kix32 "the message_script.kix"'

[ 12 July 2002, 21:53: Message edited by: seandragon ]

Top
#24811 - 2002-07-12 09:58 PM Re: Calling DoctorS in the House
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
So, what exactly is the name of this second script? "the message_script.kix" or "message_script.kix" ? Your are using both versions throughout this thread but I am suspecting that the file is called "message_script.kix" without the "the " in front of it.

[ 12 July 2002, 22:12: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.

Top
#24812 - 2002-07-12 10:57 PM Re: Calling DoctorS in the House
seandragon Offline
Fresh Scripter

Registered: 2002-07-09
Posts: 17
Jens,

I would like to apologize, you were right. I know you have suggested that before. My problem was that I included this command in my first script and its not working.

run 'start /b kix32 "message_script.kix"'

Instead I added this to my batch file and it works.

%logonserver%\netlogon\kix32.exe % logonserver%\netlogon\message_script.kix.kix

I also tried to use the CALL command within the script.kix it works

Top
#24813 - 2002-07-12 11:00 PM Re: Calling DoctorS in the House
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
ok, it just sometimes is tricky...
what about:
run '%comspec% /c start kix32 "message_script.kix"'
_________________________
!

download KiXnet

Top
Page 2 of 2 <12


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

Who's Online
0 registered and 657 anonymous users online.
Newest Members
M_Moore, BeeEm, min_seow, Audio, Hoschi
17883 Registered Users

Generated in 0.117 seconds in which 0.073 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