how to send return(enter button) character through program in windows c/c++? I want to send an external program "user name" with enter button through pipe but "\n"开发者_运维问答 and "\r" and EOF are not working..
If this is conole application, write "\r\n" to its STDIN.
Otherwise, use SendInput
You mean something like this: CodeProject: C++ SendKeys ?
Bobby
It's not clear what do you need, maybe this: "\r\n"?
精彩评论