[jawsscripts] Re: Getting text in an edit field

  • From: Jamal Mazrui <empower@xxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Sat, 24 May 2008 11:45:25 -0400 (EDT)

Hi Marlon,
I do not know enough about low level COM (at the C level) to help write
such code, but I would be glad to help test a server you develop -- I
bet others here would as well.

Let me make sure you are aware that performing arbitrary Win32 API calls
via a COM server is possible via the PerlEval object I distribute with
the Homer script library,
http://EmpowermentZone.com/kitsetup.exe
or for a manual install
http://EmpowermentZone.com/kitsetup.zip

If one has .NET 2.0 (or above) installed, this is also possible via
IronCOM,
http://EmpowermentZone.com/comsetup.exe

Jamal
On Sat, 24 May 2008, Marlon Brand=E3o
de Sousa
wrote:

> Date: Sat, 24 May 2008 10:23:06 -0300
> From: Marlon Brand=E3o de Sousa <splyt.lists@xxxxxxxxx>
> Reply-To: jawsscripts@xxxxxxxxxxxxx
> To: jawsscripts@xxxxxxxxxxxxx
> Subject: [jawsscripts] Re: Getting text in an edit field
>
> by the way, Jamal, are you interested in helping me to build a com
> object which would allow jaws scripts to access informations returned
> by windows through pointers passed to the api functions like
> sendMessage?
> If so contact me off list and we can work this idea.
> Marlon
>
>
> 2008/5/22, Jamal Mazrui <empower@xxxxxxxxx>:
> > Good observations and catches!  I was cleaning up unnecessary lines
> > within the code, which I have found to work.  Evidently, I
> > inadvertently deleted the declaration of the i integer variable, like
> > Int i
> >
> > Regarding setting the COM object to Null, it is not supposed to be
> > necessary, and evidence supports this, yet there is no harm to it, and =
it
> > may minimize the risk of memory leaks.
> >
> > Jamal
> >
> >  On
> > Thu, 22 May 2008, Cohn, Jonathan C [IT] wrote:
> >
> >> Date: Thu, 22 May 2008 18:34:34 -0500
> >> From: "Cohn, Jonathan C [IT]" <Jonathan.C.Cohn@xxxxxxxxxx>
> >> Reply-To: jawsscripts@xxxxxxxxxxxxx
> >> To: "jawsscripts@xxxxxxxxxxxxx" <jawsscripts@xxxxxxxxxxxxx>
> >> Subject: [jawsscripts] Re: Getting text in an edit field
> >>
> >> Two questions:
> >> 1.  What is 'I' set to,  I read the function three times and I only se=
e i=3D
> > t =3D3D
> >> in the function call and not declared.
> >> 2.  Why is it necessary to set the object to null before returning the=
 st=3D
> > ri=3D3D
> >> ng?  Shouldn't the object just get cleared?
> >>
> >> Thanks,
> >>
> >> Jon
> >>
> >>
> >>
> >> Jonathan Cohn
> >> Application Developer
> >> Sprint
> >>
> >> -----Original Message-----
> >> From: jawsscripts-bounce@xxxxxxxxxxxxx [mailto:jawsscripts-bounce@free=
lis=3D
> > ts=3D3D
> >> .org] On Behalf Of Jamal Mazrui
> >> Sent: Thursday, May 22, 2008 6:11 PM
> >> To: jawsscripts@xxxxxxxxxxxxx
> >> Subject: [jawsscripts] Re: Getting text in an edit field
> >>
> >> Below is a function that may help (from the Homer Script Library).  It
> >> assumes that MSAA constants have been included, e.g., via msaa.jsh
> >>
> >> Jamal
> >>
> >> String Function EditGetText(Handle h)
> >> ;Get text from an edit control via its window handle
> >> ' Seems like a max of 4K is returned
> >>
> >> Var
> >> Dim o, oNull,
> >> String sReturn
> >>
> >> Let o =3D3D3D GetObjectFromEvent(h, msaa_OBJID_CLIENT, 1, i)
> >> Let sReturn =3D3D3D o.AccValue
> >>
> >> Let o=3D3D3D oNull
> >> Return sReturn
> >> EndFunction
> >>
> >>
> >> __________?
> >> View the list's information and change your settings at
> >> http://www.freelists.org/list/jawsscripts
> >>
> >>
> >>
> >> __________=3DA0
> >> View the list's information and change your settings at
> >> http://www.freelists.org/list/jawsscripts
> >>
> > __________
> > View the list's information and change your settings at
> > http://www.freelists.org/list/jawsscripts
> >
> >
>
>
> --
> When you say "I wrote a program that crashed Windows," people just
> stare at you blankly and say "Hey, I got those with the system, for
> free."
> Linus Torvalds
> __________=A0
> View the list's information and change your settings at
> http://www.freelists.org/list/jawsscripts
>
__________ 
View the list's information and change your settings at 
http://www.freelists.org/list/jawsscripts

Other related posts: