MessageBox() is (at least) application modal. While it is displayed input will not be accepted.

The input for "GetS" is taken from the console - you cannot use "GetS" in a console-less application (i.e. with wkix32).

If you want GUI input without a console you will need to use COM with either KixForms or Internet Explorer.