Vbs Sendkeys. You can use sendkeys to send more than one keystroke at a time ctrl shift home for example. Both use the same base code.
Private sub button1 click byval sender as system object byval e as system eventargs handles button1 click messagebox show click here end sub use the sendkeys send method to raise the button1 click event and display the message box. Sendkeys sends keyboard key input just without the physical keyboard. Set x createobject wscript shell x run x sendkeys example.
Private sub button1 click byval sender as system object byval e as system eventargs handles button1 click messagebox show click here end sub use the sendkeys send method to raise the button1 click event and display the message box.
This method is similar to the vb sendkeys method. Set x createobject wscript shell x run notepad exe x sendkeys hello there. It is a complex method and recommended to use only if necessary and when you are out of options. The sendkeys method sends one or more keystrokes to the active window as if typed on the keyboard.