In Visual FoxPro I need to be able to programmatically move the mouse and click on EXTERNAL applications, just the way that VB does it. Once I click on an external app I also need to be able to stuff Keys into the controls on that External app's controls. Currently VFP allows me to move the mouse with the MOUSE command, but clicking on an EXTERNAL APP is a different thing. It does not work on External Apps. Keyboard stuffing too woks internally with the KEYBOARD command, but that only applies to the VFP session. I suspect that an API exists for this, since VB Keyboard Macro apps do this , but which APIs is it???