Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Google Earth control

Status
Not open for further replies.

fred643738

Technical User
May 1, 2006
1
US
It is possible to call Google Earth by simply
entering -- for example: RUN "C:\program files\google\google earth\googleearth.exe"

The QUESTION is:

how do you pass this program a file name?

(In Google Earth one can tell it where to look
/ what to show by simply using the mouse and dragging a file name on top of the program.)

There must be a simple way to hand that program the
file.

 
Did you try appending the full path to your file on the command line you used to start Earth?

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Got this off TT from craigsboyd, but don't see the original thread anywhere...

Code:
KH = CreateObject("Keyhole.KHInterface")
View = KH.currentView(0)

* need to wait here while GE initializes

View.latitude = 41.05175
View.longitude = -74.17173
View.azimuth = 30
View.range = 300
View.tilt = 15
KH.setView(View, 25, .5)

Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top