Within the context you describe, I can get it to work consistently, as long as I clear the command window of the posted "hello" before performing another "DO " ...
But "my" question is: is your "app" actually incorporating the "command window" ?
As far as I know, once you have an app running, you will never actually see a command window until the app exits ... and only if it exits to the "development environment"; not a typical scenario for a "distributed app".
>>>Sergey, >>> >>>Why it is the correct behavior? More important is How to force VFP to READ the buffer first and after that implement the second line? >> >>Yuri, >> >>Can you explain in more details what you're trying to do? > >Sergey, Martín, > >I want the code works as it is written: > >*1. implement keyboard input, meaning do it as if user did it manually >keyboard "hello" &&I need to see hello on the command window > >*2. do subsequent line no matter what it is. For transparency here is the wait window command > >wait wind "HELLO" &&I want to see this wait window waiting for user response > >Interesting enough, Gerry Schmitz sometimes can get it, sometimes cannot: >http://www.levelextreme.com/wconnect/wc.dll?FournierTransformation~2,15,881687