[jawsscripts] Re: Getting text in an edit field

  • From: Jamal Mazrui <empower@xxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Thu, 22 May 2008 18:11:20 -0400 (EDT)

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 = GetObjectFromEvent(h, msaa_OBJID_CLIENT, 1, i)
Let sReturn = o.AccValue

Let o= oNull
Return sReturn
EndFunction


__________ 
View the list's information and change your settings at 
http://www.freelists.org/list/jawsscripts

Other related posts: