Hi!
Look into help for API functions like PostMessage, SendMessage or something like that. At least I managed to send a key into MS Word by such functions.
HTH.
>I was wondering how I could send some keys to another windows application from a VFP application
>
>In this example Test App is the title of the application and it is not a VFP app.
>
>So far I tried...
>
>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.
>
>Maybe there is some API call's I can use?
>
>Thanks
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.