Reputation: 4224
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..
Upvotes: 1
Views: 1783
Reputation: 7879
If this is conole application, write "\r\n" to its STDIN.
Otherwise, use SendInput
Upvotes: 1