public static void StartInput(IntPtr sctp, byte minLength, byte length) { ScpCommands.InitKeyboard(sctp); byte[] Command = new byte[9]; Command[0] = 0x01; //keyboard commands Command[1] = 0x01; //init buffer Command[2] = 0x00; //buffer no Command[3] = 0x00; //no security lock Command[4] = minLength; Command[5] = length; Command[6] = 0x23; //# character as 'confirm' Command[7] = 0x2a; //* character as 'backspace' Command[8] = 0x2a; //* character as echo char ScpCommands.DoIO(sctp, 0xF8, Command, 0xF0); }