has shawn made a new method .appendtext() that automatically refreshes the form?
that not nice.

anyhow, the easy way to make it work, is place the log line after:
While $Form.Visible
$=Execute($Form.DoEvents())
Loop

and then add a line to the buttons that sets the button pressed last:
$button3.onclick="$$buttonPressed='button3'"

even nicer would be, if you started using kixforms logics.
that is, first show the form and start doing that .doevents()
but then the coding would be a bit harder...
would need to use kf timer or other event functions for parts of your loginscript which would be written in UDF style.
_________________________
!

download KiXnet