Re: PostMessage() Error

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Igor Tandetnik wrote:

the problem is summarized as the following:

int main()
{
....
while (fgets(psBuffer, BUFFER_SIZE, stdin) != NULL) {
PostString(hwndText, psBuffer);
}


What kind of window are you sending keystrokes to? Is it, say, an Edit control?

Does the application in question support Paste command? You could probably put all your text onto clipboard, then simulate a paste.

I am talking about Gnuplot wgnuplot.exe, yes, it supports edit control.

not sure how to get the standard input into clickboard and then simulate paste to GUI application?

thanks.
.



Relevant Pages