Win32 call order
Posted
by DD
on Stack Overflow
See other posts from Stack Overflow
or by DD
Published on 2010-04-02T00:42:20Z
Indexed on
2010/04/02
0:53 UTC
Read the original article
Hit count: 352
win32
Hi all,
I have two windows that I send scripted input to. The procedure goes as this
BringWindowToTop( window1 );
i = Build input structures( window1 );
SendInput(i);
BringWindowToTop( window2 );
i = Build input structures( window2 );
SendInput(i);
I was having trouble with inputs not being sent and the correct time. I put delays after each call and saw that input from the first SendInput() was processed after window2 is brought to top. Same thing at the end of the loop as well.
Are SendInput calls buffered? If so, how can I make sure of a serial execution of this code?
Thanks
© Stack Overflow or respective owner