开发者

how to send return(enter button) character through program

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"?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜