Hey guys, I'm currently at a standstill in development of one of my applications. I can't, for the life of me, figure out a way to send a simulated "enter" key press to a console application (separate from the program I'm developing).
Right now, I spawned a process using a new process, and I redirected my input/output streams to streamreader/writer.
Now, is there a way I can send a simulated "enter" press, after writing characters on the streamwriter?
Other ways I've tried include FindWindow, FindWindowEx, sendMessage - etc to send the simulated enter press, but I'm not very good at working with API's, not to mention the process is prefferablly spawned with a .createnowindow = true. \
Any pointers?
Right now, I spawned a process using a new process, and I redirected my input/output streams to streamreader/writer.
Now, is there a way I can send a simulated "enter" press, after writing characters on the streamwriter?
Other ways I've tried include FindWindow, FindWindowEx, sendMessage - etc to send the simulated enter press, but I'm not very good at working with API's, not to mention the process is prefferablly spawned with a .createnowindow = true. \
Any pointers?