$nul=SetConsole("Hide")

that is a line in the script.
that is a line that never should be in GUI enabled script.

if you want to support the old console version of kix, please do at least check which one (kix32 or wkix32) is used.

as this line makes console to SHOW up on many wkix32 versions, it should be avoided to the extreme.
_________________________
!

download KiXnet