Yuri,
Why do you think that the second line is executed before the first is completed?
>Looks like this always works in revert order:
>
>
>KEYBOARD "hello"
>WAIT WINDOW "hello"
>
>
>What should be done to delay the second line execution until keyboard is completed?
--sb--