How do I launch Celestia from VB?
I tried the VB manual but it's huge and I can't find how to launch external apps.
How do I launch celestia using visual basic?
Any parameters? I was thinking that it could be nide if you could automate access to Celestia by creating external VB app.
My idea was to ressemble a spaceship panel that would cause Celestia to move. The activities add-ons could be launched that way instead of being just a DOC with hyperlinks.
I know Celestia is not a sim, but I think it feels it has more cach?© and it could be more user friendly if you launched from a VB EXE form as if it was a spaceship control panel.
My idea was to ressemble a spaceship panel that would cause Celestia to move. The activities add-ons could be launched that way instead of being just a DOC with hyperlinks.
I know Celestia is not a sim, but I think it feels it has more cach?© and it could be more user friendly if you launched from a VB EXE form as if it was a spaceship control panel.
Hi ar81!
it's easy to solve the problem.
Visual Basic (the programming environment I love and use since release 1 ) considers the current path as the one in which you put source files.
So celestia cannot find its configuration file.
You must change your code to
Dim Ret As Variant
ChDir "d:\Program files\Celestia" 'the path where you installed Celestia
Ret = Shell("celestia", 3) 'without any path at all!
or even better
ChDir "d:\Program files\Celestia"
Shell "celestia", 3
without unnecessary return codes.
et voil?
Ciao!
Pierluigi
it's easy to solve the problem.
Visual Basic (the programming environment I love and use since release 1 ) considers the current path as the one in which you put source files.
So celestia cannot find its configuration file.
You must change your code to
Dim Ret As Variant
ChDir "d:\Program files\Celestia" 'the path where you installed Celestia
Ret = Shell("celestia", 3) 'without any path at all!
or even better
ChDir "d:\Program files\Celestia"
Shell "celestia", 3
without unnecessary return codes.
et voil?
Ciao!
Pierluigi