I am trying to get Coordinates from Google Earth, but the result always is empty, i.e Google Earth loads, but that it's. Can somebody point me in the right direction?
rgds Werner
Code:
$PROGID_EARTHLib_PointOnTerrainGE = "GoogleEarth.PointOnTerrainGE" ' Interface Name : IPointOnTerrainGE ' Description : IPointOnTerrainGE Interface ' Class Name : PointOnTerrainGE ' ClassID : $CLSID_EARTHLib_PointOnTerrainGE ' ProgID : $PROGID_EARTHLib_PointOnTerrainGE ' Version ProgID : $PROGID_EARTHLib_PointOnTerrainGE1 Interface IPointOnTerrainGE $IID_EARTHLib_IPointOnTerrainGE Inherit IDispatch Property Get Latitude <1> () As Double Property Get Longitude <2> () As Double Property Get Altitude <3> () As Double Property Get ProjectedOntoGlobe <4> () As Long Property Get ZeroElevationExaggeration <5> () As Long End Interface local oGoogle AS Idispatch local latitude, longitude as double oGoogle = newCOM $PROGID_EARTHLib_PointOnTerrainGE sleep 2000 'to make sure google earth has finished initialisation object get oGoogle.latitude to latitude object get oGoogle.longitude to longitude ? using$("Latitude: #.##### Longitude: #.#### ",latitude,longitude)
Comment