tcWindow="Test App" DECLARE INTEGER FindWindow IN Win32API STRING, STRING DECLARE INTEGER SetForegroundWindow IN "User32.dll" INTEGER HWND = FindWindow(0,tcWindow) =SetForegroundWindow(HWND) INKEY(3) KEYBOARD("1")This merely activates the program but the keys go into the vfp app.