.key W,H,NOBOOT/S,TIME/S
.bra {
.ket }

; $VER: Special Karate Launcher v1.0 (11/1o/2oo3) By PureLamers

; Use this Script to Launch Your Karate Script

Set Zero 0

if "{W}" EQ ""
;	echo "no W"
	Set Zero 1
endif

if "{H}" EQ ""
;	echo "no H"
	Set Zero 1
endif

if $Zero EQ 1
;	echo "no W or no H"
	Set w " "
	Set h " "
else
	Set w {W}
	Set h {H}
endif

UnSet Zero

;echo "h (" {H} ") =>" $h "| w (" {W} ") =>" $w "| s" {S}

avail flush >nil:

if {TIME} eq "time"
	Date
endif

if "{NOBOOT}" eq ""
	karate s=cointro/cointro.k b=cointro/boot.k h=$h w=$w
else
	karate s=cointro/cointro.k h=$h w=$w
endif

if {TIME} eq "time"
	Date
endif

avail flush >nil:

Unset h
Unset w