Reading text in another application...? 
Author Message
 Reading text in another application...?

Is there some way to get text out of an edit box in another running
application?
-james

****************************************************************
"A Pun is the lowest form of humor, unless you thought
    of it yourself."
                              -Doug Larson

"I know what reality is, i just choose not to participate in it."
                               -Bonnie Smith



Tue, 19 May 1998 03:00:00 GMT  
 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



Wed, 20 May 1998 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Reading Text from another application

2. My compiled application wont read in external text files

3. How to read the text in other application ?

4. Reading other applications text control values

5. Reading Application's ComboBox or TextBox text

6. Text box: read only/read write, how?

7. Reading from a text file and writing toa text file from Vis Bas 6.0

8. How to read partial text in a line of a text file

9. reading a text file to display in text box

10. Reading text from another program's Rich Text Box

11. VB Text Database driver / reading text files

12. Read only and Editable text in Text control

 

 
Powered by phpBB® Forum Software