开发者

how to send return(enter button) character through program

开发者 https://www.devze.com 2022-12-08 06:47 出处:网络
how to send return(enter button) characterthrough program in windows c/c++? I want to send anexternal program\"user name\" with enter button through pipe but \"\\n\"开发者_运维问答 and \"\\r\" and EOF

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

精彩评论

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

关注公众号