Sends keystrokes to the active application, and then waits for the messages to be processed.
public static void sendKeysWait( String keys )
keys
The string of keystrokes to send.
Use the sendKeysWait method to send keystrokes or combinations of keystrokes to the active application and wait for the keystroke messages to be processed. You can use this method to send keystrokes to an application and wait for any processes that are started by the keystrokes to be completed. This can be important if the other application must complete its work before your application can continue.
See Also sendKeys