Thanks Sergey. The $%$&%&% program needs to select the file name from a file selection box, you can't type the file name in the file name input box, as it seemed to be when I first looked at it.
So I'm doomed with this AFAICS. I'm waiting the developer reply to my email.
>Victor,
>
>You can try WSH
>oShell = Createobject("wscript.shell")
>oShell.AppActivate("...")
>oShell.SendKeys("...")
For the list of keys see
http://msdn2.microsoft.com/en-us/library/8c6yea83.aspx>
>>I came to this wonderful freeware program shp2kml, which converts maps in ESRI/SHP format to KML and then displays them in Google Earth. Amazing stuff.
>>
>>I'd like to integrate it into my application, but the sad thing is that the program is a standard exe with no command line options and no API or any other interface.
>>
>>
>>The fields to fill are rather common. You have to input 3 screens like a wizard and then voila, your map opens in Google Earth.
>>
>>Maybe there is a way to send keystrokes from my VFP application to this exe?
>>
>>Any other way to record a keyboard script to automate this application you can think of?