View Single Post
  #2  
Old 04-15-2004, 02:29 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

It is possible to run a vizard script from within another program. All you have to do is execute the following command:

"C:\Program Files\Vizard20\bin\winviz.exe" <path to your script> 0

Use the following piece of code in your program to call this command:
Code:
ShellExecute(NULL, "open", "C:\\Program Files\\Vizard20\\bin\\winviz", "C:\\somescript.py 0", NULL, SW_SHOW);
I'm not sure if this is related to what you want, but Vizard comes with a program that allows you to create an html page with links to vizard scripts. When a user clicks on a script link it will launch that script. This way you can design some fancy looking page with links to your scripts. Let me know if you are interested in this and I'll give you some more detail about using it.
Reply With Quote