Hi Jamal, Have you tried this method when JAWS is running as a service? My experience is that when JAWS is running as a service GetObject fails. Similarly, CreateObject fails but then CreateObjectEx with FALSE as the second parameter works. Could you please kindly verify these observations. Thanks, Kamil ----- Original Message ----- From: "Jamal Mazrui" <empower@xxxxxxxxx> To: <jawsscripts@xxxxxxxxxxxxx> Sent: Wednesday, September 24, 2008 5:31 PM Subject: [jawsscripts] Possible breakthrough with dynamic execution of VBScript code > HomerKit now includes a technique whereby a JAWS script can execute code > in the VBScript language (Visual Basic Scripting Edition). I have > developed similar techniques before that involve installation of a COM > server (e.g., for executing Perl, Python, or Boo code). A key difference > here is that no COM server is needed! The file Homer.wsc is a Windows > Script Component that may be used either as a COM server with CreateObject > or as a simple file reference with GetObject. > > The function VBSEval in Homer.jss takes five parameters: the VBScript > code to execute and four variant parameters that can be referenced within > the code, which may be multiple lines. The function VBSEvalFile is > similar except that it takes a .vbs file name as the first parameter. > I've also added convenience functions for dealing with variants (with > credit to Doug Lee). > > VBScript has a number of built-in functions that do not have an equivalent > in the JAWS scripting language. Since it supports all variant subtypes, > it may also be used with object models that a JAWS script cannot use > fully, e.g., WMI related information. I have prepared a collection of > text tutorials on VBScript and the Windows Script Host at > http://EmpowermentZone.com/vbs56doc.zip > > Jamal > > __________ > Visit and contribute to The JAWS Script Repository http://jawsscripts.com > > View the list's information and change your settings at > http://www.freelists.org/list/jawsscripts > > __________ Visit and contribute to The JAWS Script Repository http://jawsscripts.com View the list's information and change your settings at http://www.freelists.org/list/jawsscripts