It's not clear what you're trying to do. Myabe WSH SendKeys will work for you? See
Re: Send a Key Message #
1319465>I am trying to write a macro program using a form that does some calculations and populates a grid in a Foxpro application (which I have not control over). The KEYBOARD command will not execute until I I release the form. That is 1 issue. The other issue is I can not get the KEYBOARD command to force a new row in the grid. The row must exist in the grid whether is has been saved to the tables or not
>in order for the KETBOARD command to enter any data.
>
>Does anyone have any solutions to these 2 problems?
>
>It would be good to at least have the KEYBOARD command to type in the data and still have the form open to allow the next line to be generated rather than having the user to have to open it each time. The user may have to enter 5-8 lines in the grid before saving the data to the table
--sb--