@pooh in korea The I think the "hInput = GetStdHandle(STD_INPUT_HANDLE);" is incorrect. Or at least it does not work for me.