Interoperating between Programs with Visual Basic

Citadel535

Senior member
Jan 16, 2001
816
0
0
I am trying to write a program that can take control of another program's window and automatically perform operations. For example, clicking on buttons, searching through lists, entering text, and saving files.

Can anyone tell me how I can go about doing this or any programs/sites that tell how to do this?

Thanks in advance,

Mike
 

EagleKeeper

Discussion Club Moderator<br>Elite Member
Staff member
Oct 30, 2000
42,589
5
0
In general, once you have located the Window, you can find out all the child windows/controls of it.
You can then manipulate those controls the same as if they were in your own app.

Trapping user inputs requires a lot more strategy. Unsure if VB easily supports it.
 

MrGrim

Golden Member
Oct 20, 1999
1,653
0
0
Use an API call to get the windows' handle. Now you can do anything you want. If you want to capture user input you can subclass and use your own message center. You can also send keystrokes very easily, either through an API call or by using the SendKey function.