Jamal,

Then I loaded the FruitBasket.vbs script as a global script and got the
following error:

FruitBasket.vbs - Microsoft VBScript runtime error
Line 11 Column 1
Invalid procedure call or argument

< 0x800A0005 >

Again, under Vista.  What is going wrong?

Vic


-----Original Message-----
From: Jamal Mazrui [mailto:[email protected]] 
Sent: Tuesday, July 14, 2009 5:15 PM
To: [email protected]
Subject: Fruit basket sample using Visual Basic .NET

This package still contains the original VBScript version, but now it also
has a VBNET version.  The included source code, FruitBasket.vb, is
commented to help others learn how to develop Window-Eyes scripts with
this popular language.  Executables may be created either with the free,
Express Edition of Visual Studio, or with the command-line compiler and a
text editor (the approach I used).  More info is below.

Jamal

This is a simple but nontrivial GUI program using the Window-Eyes
scripting capability.  Two language versions are included:  VBScript and
Visual Basic .NET.  The latter is a compiled executable with a bit more
functionality.  It is installed as a global script attached to
Control-Shift-F8.

This program is designed to meet the specifications of a fruit
basket program at
http://FruitBasket.QuantumMyst.com

A dialog has several controls that interact at runtime.  An editbox is for
adding a fruit, e.g., apple.  A listbox serves as a basket for storing the
fruit.  Buttons are for adding a fruit (the default), deleting one, or
closing the dialog.

The fruit basket project has been a means for blind programmers to
illustrate how a GUI program is developed in a particular language.  The
same design specification enables the programs to be compared, both in
terms of the code needed, e.g., complexity and length, and in terms of the
resulting behavior, e.g., accessibility and performance.

Source code of this package is in the files FruitBasket.vbs and
FruitBasket.vb.  The VBNET executable may be compiled as follows.  Install
the .NET 2.0 SDK from microsoft.com.  Ensure that the folder containing
the Visual Basic command-line compiler, vbc.exe, is on the Windows search
path.  Then run the batch file, CompileFruitBasket.bat.

Reply via email to