Re: auto it and com automation with jfwapi, sapi, gwspeek, hal etc com audio, questions

  • From: Jamal Mazrui <empower@xxxxxxxxx>
  • To: programmingblind@xxxxxxxxxxxxx
  • Date: Sat, 8 Dec 2007 07:52:35 -0500 (EST)

The DbDialog application, available at
http://www.EmpowermentZone.com/ddsetup.exe
is written in AutoIt and contains wrappers for speaking strings via JFW,
Window Eyes, or SAPI.  I think the functions are contained in the file
lbc.au3 (LBC stands for Layout by Code).

jfwapi.dll is a standard Win32 API DLL rather than a COM server, so
ObjCreate does not work with it.  Instead, AutoIt makes an API call to
the JFWSayString function via its syntax for API calls.  If the .dll is
in the same library as the .exe you compiled, AutoIt will find it.

Hope this helps,
Jamal
On Fri,
7 Dec 2007, Valiant on the laptop wrote:

> Date: Fri, 7 Dec 2007 11:30:03 -0500
> From: Valiant on the laptop <valiant@xxxxxxxxxxxxx>
> Reply-To: programmingblind@xxxxxxxxxxxxx
> To: programmingblind@xxxxxxxxxxxxx
> Subject: auto it and com automation with jfwapi, sapi, gwspeek,
>      hal etc com audio, questions
>
> Hi.
> I'm just starting to really learn auto-it. I'm finding it pleasantly similar 
> to vb script, a language that mixes with me very well. I am looking for the 
> com audio sdk, and documentation for the same, can anybody help me? Is there 
> a better option now than com audio? Secondly, I am looking for sdk and 
> documentation for jfwapi, gwspeek, which is com automation for window-eyes, 
> the com automation file and documentation for hal, system access, and what 
> ever I can get my paws on, importantly, sapi, and documentation on how I 
> could provide a list of voices and alter them, and of course, speak specific 
> text with them.
>
> Finally, I have jfwapi sort of running bassed on an example file I borrowed 
> from a vb script. I can make jaws talk with it if I use
> objCreate ("jfwapi") like this
> $OJfw = ObjCreate ("jfwapi")
> 'then speak for it
> $OJfw.sayString("hi", 0)
> What I want, though, is to directly access jfwapi.dll from the same directory 
> as the au3 or rather th compiled exe file. Can I do this? I don't want to 
> register the dll file if I don't have to. I thought objGet looked 
> suspiciously lik what I am looking for, but
> $OJfwf = objGet ("c:\au3\jfwapi.dll")
> 'now that I go to speak with it, I get me a lovely error.
> $OJfwf.sayString ("hi", 0)
>
> no go, the error is something about could not carry out command successfully.
>
> Finally, if I can use the dll file without registering it, how do I access it 
> if I stick it in the same directory as my auto-it script or compiled exe 
> file. When I just do this
> $OJfwF = objGet ("jfwapi.dll")
> the script passes it on like it worked but then when I use $OJfwf it says 
> variable must be of type object. Any ideas on that?
> Thanks in advance for any help.
> My Name is Aaron Spears. I've just re-joined the list, I was on twice before 
> and that was over a year ago I would figure, so hi there everyone, sup, and 
> stuff.
> cheers:
> Aaron T. Spears (valiant)
__________
View the list's information and change your settings at 
//www.freelists.org/list/programmingblind

Other related posts: