Sendkeys. It uses the sendkeys statement to send keystrokes to add some numbers and then quit the calculator. The sendkeys class has been updated for the net framework 3 0 to enable its use in applications that run on windows vista.
Wshshell sendkeys enter add the date wshshell sendkeys f5 history repeats itself. Procid shell notepad exe appwinstyle normalfocus activate the notepad application. Application sendkeys 1234 enter support and feedback.
Single alphanumeric keystrokes can simply be specified using a string representation of the character required.
It is a complex method and recommended to use only if necessary and when you are out of options. This example uses the my computer keyboard sendkeys method to send keystrokes to an external application the notepad application started by the shell method. Dim procid as integer start the notepad application and store the process id. If the wait has the value true it means the system will wait for the keys to be processed and then go to the next.