so i need to send in some input to a console-style app that will be running hopefully hidden in the windows background. SendKeys is what i've been using when running the console normally, but i'm not sure how to get it to type to hidden processes(started with Shell, option '0') so i think i may need to look at using handles or pipes. that's where you guys come in.
based on my limited searching skills(MSDN reference library) and a way-over-my-head program strongm was nice enough to put together for me, i have come to the conclusion that WriteFile or WriteConsole may be the answer.
the question is: can i just send the handle returned from my Shell call to the WriteFile and have it write to that hidden process? something like:
consolehandleID = Shell("c:\myconsoleapp.exe", 0)
WriteFile(consolehandleID, "somestring", other_variables_i_can't_decypher) ' <--- this is where i'm unclear
based on my limited searching skills(MSDN reference library) and a way-over-my-head program strongm was nice enough to put together for me, i have come to the conclusion that WriteFile or WriteConsole may be the answer.
the question is: can i just send the handle returned from my Shell call to the WriteFile and have it write to that hidden process? something like:
consolehandleID = Shell("c:\myconsoleapp.exe", 0)
WriteFile(consolehandleID, "somestring", other_variables_i_can't_decypher) ' <--- this is where i'm unclear