The second 1 is the second setconsole at the case 1
Use this instead :
$=SETCONSOLE ("MAXIMIZE")

You don't need a goto finish after the case statement. From the Kix Help :
"Only one CASE statement is executed, regardless of how many statements evaluate to TRUE."
In fact, the first true statement is executed, and goes directly to endselect

I ran this script @home and it work perfectly (w2k station). Dunno what hang here.

_________________________
? getobject(Kixtart.org.Signature)