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:
- Using SLEEP after each keystroke
- 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.
- Using a combination of SLEEP and BEEP
Be the first to comment