I don't think you can automate just any program - the program to be automated needs to be specially designed for this.
You can send keystrokes to an application like WordPad, but beware language differences: shortcut keys may vary.
>Hello,
>
>Can someone tell me how do I run Wordpad from VFP via automation? Where does one go for that information (besides here)?
>
>TIA,
>
>Alex
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)