Sending commands to other programs - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Sending commands to other programs

How could I get VB to type in a string into another program's text box? For instance, how could I get a button, say btnStart, when clicked to type the string "abcdefg" into a textbox in a text box that is selected (blinking cursor is inside it) but in another program that I didn't write, say a computer game?

Comments

  • ZantosZantos Posts: 139Member
    SendKeys "abcdefg" will do it.

    ..:: Zantos ::..

    : How could I get VB to type in a string into another program's text box? For instance, how could I get a button, say btnStart, when clicked to type the string "abcdefg" into a textbox in a text box that is selected (blinking cursor is inside it) but in another program that I didn't write, say a computer game?
    :

Sign In or Register to comment.