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
尚不清楚您需要什么,也许是这样:“ \\ r \\ n”?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.