Thanks for the comments!!! having those in there really helped me out!


I reworked the message loop part to get rid of the sleep 1, it was making for slow response time, basically reset the $oStatus handle back to 0 when you are done with it while you are still in the select case.

code:

; Enter message loop ...

while @error = 0
;sleep 1
; Get the valueof the status control ...
$mStatus = olegetproperty ( $oStatus, "value" )

select
case $mStatus = "1"
; Get the message value ...
$mMessage = olegetproperty ( $oMessage, "value" )
; Pipe it to the echo control ...
$rs = oleputproperty ( $oEcho, "value", "s", "$mMessage" )
; Reset the status value to zero ...
$rs = oleputproperty($oStatus, "value", "s", "0" )
case $mStatus = "2"
goto finish
endselect
loop



Bryce