>First thanks to George and Ed for hints.
>
>I also tried PostMessage() API and keybd_event API but with no luck.
>keybd_event worked for letters but can't send LEFT, UP, HOME DEL, etc. to another VFP application and PostMessage() didn't work at all (in any application).
>
You're aware that some of these are seen not as WM_KEYUP/WM_KEYDOWN but as WM_SYSKEYUP/WM_SYSKEYDOWN actions? Look in the MSDN for the distinction between the two classes of virtual keystrokes used with PostMessage/SendMessage API calls.
>Arto Toikka
>
>P.S. I can do it by modifying the application where I try to send keys but I'd rather like to do general-purpose touchscreen keyboard with wscript.shell or postmessage or keybd_event.