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
You can leave a response, or trackback from your own site.

Leave a Reply


− one = 5