[jawsscripts] Re: Possible breakthrough with dynamic execution of VBScript code

  • From: Jamal Mazrui <empower@xxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Wed, 12 Aug 2009 12:34:26 -0400 (EDT)

Hi Kamil,
I have confirmed that this technique works under both XP and Vista if
JAWS is configured to launch automatically when Windows starts.  Is JAWS
running as a service in that case?  I used to think that was the case,
though when I checked under Vista32, jfw.exe was listed as a process
rather than service in the Alt+Control+Delete task list dialog.  If
there is something specific you'd like me to try, plese let me know.
HomerJax uses this technique, and I want it to be as broadly usable by
developers as possible.

Jamal

On Mon, 10 Aug 2009, Kamil wrote:

> Return-Path: <jawsscripts-bounce@xxxxxxxxxxxxx>
> Received: from mxas1.sovenix.net (mxas1.sovenix.net [216.127.142.100])
>       by smart.net (8.9.1/8.9.1) with ESMTP id SAA00698
>       for <empower@xxxxxxxxx>; Mon, 10 Aug 2009 18:46:46 -0400
> X-Envelope-From: jawsscripts-bounce@xxxxxxxxxxxxx
> X-Envelope-To: empower@xxxxxxxxx
> Received: From freelists-180.iquest.net (206.53.239.180) by
>     mxas1.sovenix.net (MAILFOUNDRY) id shcElIYAEd61LwAw for
>     empower@xxxxxxxxx; Mon, 10 Aug 2009 22:54:03 -0000 (GMT)
> Received: from localhost (localhost [127.0.0.1])
>       by turing.freelists.org (Avenir Technologies Mail Multiplex) with
>     ESMTP id 4EDA5CA7B4B;
>       Mon, 10 Aug 2009 18:46:32 -0400 (EDT)
> X-Virus-Scanned: Debian amavisd-new at localhost.localdomain
> Received: from turing.freelists.org ([127.0.0.1])
>       by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 
> 10024)
>       with ESMTP id adAuHdBpZ4GE; Mon, 10 Aug 2009 18:46:32 -0400 (EDT)
> Received: from turing.freelists.org (localhost [127.0.0.1])
>       by turing.freelists.org (Avenir Technologies Mail Multiplex) with
>     ESMTP id 047B1CA7789;
>       Mon, 10 Aug 2009 18:46:12 -0400 (EDT)
> Received: with ECARTIS (v1.0.0; list jawsscripts); Mon,
>      10 Aug 2009 18:46:12 -0400 (EDT)
> X-Original-To: jawsscripts@xxxxxxxxxxxxx
> Delivered-To: jawsscripts@xxxxxxxxxxxxx
> Received: from localhost (localhost [127.0.0.1])
>       by turing.freelists.org (Avenir Technologies Mail Multiplex) with
>     ESMTP id A79D7CA7883
>       for <jawsscripts@xxxxxxxxxxxxx>; Mon, 10 Aug 2009 18:46:12 -0400 (EDT)
> X-Virus-Scanned: Debian amavisd-new at localhost.localdomain
> Received: from turing.freelists.org ([127.0.0.1])
>       by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 
> 10024)
>       with ESMTP id ddSBPU+F8CZI for <jawsscripts@xxxxxxxxxxxxx>;
>       Mon, 10 Aug 2009 18:46:12 -0400 (EDT)
> Received: from bay0-omc2-s27.bay0.hotmail.com
>     (bay0-omc2-s27.bay0.hotmail.com [65.54.246.163])
>       by turing.freelists.org (Avenir Technologies Mail Multiplex) with
>     ESMTP id 5A7AECA7789
>       for <jawsscripts@xxxxxxxxxxxxx>; Mon, 10 Aug 2009 18:46:11 -0400 (EDT)
> Received: from hotmail.com ([10.6.6.14]) by
>     bay0-omc2-s27.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959);
>        Mon, 10 Aug 2009 15:46:11 -0700
> Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC;
>        Mon, 10 Aug 2009 15:46:10 -0700
> Message-ID: <BLU138-DAV4FDCC3F481655D9E0A244A3060@xxxxxxx>
> Received: from 24.150.247.251 by BLU138-DAV4.phx.gbl with DAV;
>       Mon, 10 Aug 2009 22:46:08 +0000
> X-Originating-IP: [24.150.247.251]
> X-Originating-Email: [kamilimak@xxxxxxxxxxx]
> X-Sender: kamilimak@xxxxxxxxxxx
> From: "Kamil" <kamilimak@xxxxxxxxxxx>
> To: <jawsscripts@xxxxxxxxxxxxx>
> References: <Pine.LNX.4.58.0809241730170.8571@xxxxxxxxx>
> Subject: [jawsscripts] Re: Possible breakthrough with dynamic execution
>     of VBScript code
> Date: Mon, 10 Aug 2009 18:48:20 -0400
> MIME-Version: 1.0
> Content-type: text/plain; charset=iso-8859-1
> X-Priority: 3
> X-MSMail-Priority: Normal
> X-Mailer: Microsoft Outlook Express 6.00.2900.5512
> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
> X-OriginalArrivalTime: 10 Aug 2009 22:46:10.0162 (UTC)
>     FILETIME=[5AF81D20:01CA1A0C]
> X-archive-position: 4671
> X-ecartis-version: Ecartis v1.0.0
> Sender: jawsscripts-bounce@xxxxxxxxxxxxx
> Errors-to: jawsscripts-bounce@xxxxxxxxxxxxx
> X-original-sender: kamilimak@xxxxxxxxxxx
> Precedence: normal
> Reply-to: jawsscripts@xxxxxxxxxxxxx
> List-help: <mailto:ecartis@xxxxxxxxxxxxx?Subject=help>
> List-unsubscribe: <jawsscripts-request@xxxxxxxxxxxxx?Subject=unsubscribe>
> List-software: Ecartis version 1.0.0
> List-Id: jawsscripts <jawsscripts.freelists.org>
> X-List-ID: jawsscripts <jawsscripts.freelists.org>
> List-subscribe: <jawsscripts-request@xxxxxxxxxxxxx?Subject=subscribe>
> List-owner: <mailto:everett@xxxxxxxxx>
> List-post: <mailto:jawsscripts@xxxxxxxxxxxxx>
> List-archive: <http://www.freelists.org/archives/jawsscripts>
> X-list: jawsscripts
> Content-Transfer-Encoding: quoted-printable
>
> 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
>
__________ 
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

Other related posts: