
Reading text in another application...?
Quote:
>Is there some way to get text out of an edit box in another running
>application?
If you can find the hWnd of the text box, you can get the text out of it:
Declare Function GetWindowText% Lib "User" (ByVal hWnd%, ByVal lpString$,
ByVal aint%)
You use this kinda like the INI file functions. Presize a buffer, call
GetWindowText(), and trim it to length:
Dim sbuff as string
sbuff = space$(5000)'must be bigger than contents of textbox
retlen = GetWindowText(hWndOfYourTextBox, sbuff, len(sbuff))
sbuff = Left$(sbuff,retlen)
--
If you think education is expensive, try ignorance.
-- Derek Bok, president of Harvard