Issues with Sendkeys

When using Sendkeys there is one big issue, you can not see when/if the application is in the correct state. This means you have to build in some kind of wait states and then after each wait, you must assume that the application is in the correct state.

There are 3 different kinds of wait states:

  1. Using SLEEP after each keystroke
  2. Using BEEP after each keystroke – when executing BEEPs the OS waits to complete the strokes and then sends the BEEP. Though my experience says that you have to use a BEEP that is at least 10ms long or else it doesn’t have any effects.
  3. Using a combination of SLEEP and BEEP

Be the first to comment

Leave a Reply

Your email address will not be published.


*


This site uses Akismet to reduce spam. Learn how your comment data is processed.