CJHave you tested your script with Kix2001 ?
I have tested your script with both Ki32.exe and Kix32c.exe, Both versions crash when they meet SetFocus()
I use SetFocus() to test for the existance af a window in my main script (about 1200 lines), the SetFocus() function was the only one giving trouble.
By the way the only difference for Kix32 and Kix32c i have observed is that Kix32 is the consoleless version starting a new instance of "DOS", where Kix32c stays in the current window.
Erik