Pelles C forum
C language => Windows questions => Topic started by: whatsup on November 08, 2010, 08:22:34 PM
-
hey everyone
what i'm trying to do is to sendmessage (WM_CHAR) to external console window
and trap its output via pipe
that means i will read its std OUT, to trap its output
and send it messages with sendmessage and NOT through its Std Input
i don't have success with that
what i have success is with trapping its output
via pipe (that's fine with me)
but send messages only through std input that is also piped.
the problem with sending messages through Std Inout is that
some programs read only keyboard messages (WM_CHAR)
and not the Std Input
so i need a way to use pipe only with the console output and not with the console input
any input will be wellcomed.
thanks in advanced.