break on
;--------------------------------------------------------
; Create the kixtart.library object ...
;--------------------------------------------------------
$lib = olecreateobject ( "kixtart.library" )
if $lib = 0
?"Error creating kixtart.library"
exit
endif
;--------------------------------------------------------
; Get the current millisecond counter from Windows NT ...
;--------------------------------------------------------
$start = val(olecallfunc ( $lib, "GetTickCount" ))
;--------------------------------------------------------
; Set the console window title to something else ...
;--------------------------------------------------------
olecallfunc ( $lib, "SetConsoleTitle", "s", "Kixtart.Library Driver Script" )
;--------------------------------------------------------
; Check if console cursor is currently visible ...
;--------------------------------------------------------
if olecallfunc ( $lib, "GetCursorVisible" )
;--------------------------------------------------------
; Make console cursor invisible ...
;--------------------------------------------------------
olecallfunc ( $lib, "SetCursorVisible", "i", "0" )
? ?"Enter an invisible cursor string > " gets $c
;--------------------------------------------------------
; Set console cursor back to visible ...
;--------------------------------------------------------
olecallfunc ( $lib, "SetCursorVisible", "i", "1" )
endif
;--------------------------------------------------------
; Get the current millisecond counter from Windows NT ...
;--------------------------------------------------------
$end = val(olecallfunc ( $lib, "GetTickCount" ))
;--------------------------------------------------------
; Display elapsed milliseconds (runtime) for script ...
;--------------------------------------------------------
? ?"Elapsed milliseconds = " $end - $start
;--------------------------------------------------------
; Release the kixtart.library object
;--------------------------------------------------------
$rs = olereleaseobject ( $lib )
exit