  | | | How can I switch scripting language from a script ? | How can I switch scripting language from a script ? 2004-02-12 - By lpiasecki76
Back Is it possible to set the scripting language from a script?
For instance, I have Jscript set as default language and my particle event script is also in Jscript.
I have a Vbsetup script which will pass a string, which is the script in Jscript, as particle event script.
The problem is that if I set vb as default scripting language, and I run the setup script, it works. But when I press play, then the particle event script is called, which is written in JScript produces an error (unless I manually change scripting language).
My question therefore is: can I specify the scripting language from a script, so that it would overwrite the scripting language set in the preferences?
Don't ask me why an I doing the above in 2 languages. You'll see when I release the particle goals script I've been working on (it's a bit late, but I'll try to get it done in the upcoming days) :-)
Thank you,
Luke
<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas -microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head> <meta http-equiv=Content-Type content="text/html; charset=us-ascii"> <meta name=Generator content="Microsoft Word 11 (filtered medium)"> <style> <!-- /* Font Definitions */ @(protected) {font-family:Wingdings; panose-1 (See http://ose-1.ora-code.com):5 0 0 0 0 0 0 0 0 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {color:purple; text-decoration:underline;} span.EmailStyle17 {mso-style-type:personal-compose; font-family:Arial; color:windowtext;} @(protected) Section1 {size:21.0cm 842.0pt; margin:72.0pt 89.85pt 72.0pt 89.85pt;} div.Section1 {page:Section1;} --> </style>
</head>
<body lang=EN-CA link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>Is it possible to set the scripting language from a script? <o:p></o:p>< /span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>For instance, I have Jscript set as default language and my particle event script is also in Jscript.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>I have a Vbsetup script which will pass a string, which is the script in Jscript, as particle event script.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>The problem is that if I set vb as default scripting language, and I run the setup script, it works. But when I press play, then the particle event script is called, which is written in JScript produces an error (unless I manually change scripting language).<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>My question therefore is: can I specify the scripting language from a script, so that it would overwrite the scripting language set in the preferences?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>Don’t ask me why an I doing the above in 2 languages. You’ll see when I release the particle goals script I’ve been working on (it& #8217;s a bit late, but I’ll try to get it done in the upcoming days) </span>< /font><font size=2 face=Wingdings><span style='font-size:10.0pt;font-family:Wingdings'>J< /span></font><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'><o:p></o:p>< /span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>Thank you,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>Luke<o:p></o:p></span></font></p>
</div>
</body>
</html>
|
|
 |