Send key to command line in c++

Hi;
In rhinocommond I cant send keys tho command line by SendKeystrokes(), how cant I do this in c++ ? who cant give me some sample?

Hi @suc_kiet,

See if this works for you:

void RhinoSendCharToCommandWnd(unsigned int nChar)
{
  ::PostMessage(RhinoApp().MainWnd(), WM_CHAR, nChar, 0L);
}

– Dale