>>>>> URGENT: PLEASE HELP <<<<< 
Author Message
 >>>>> URGENT: PLEASE HELP <<<<<

I need urgent help in reading text from a textbox into a variable....The
textbox is another porgram's object..which i have no control over.   All I know
is the hWnd of the textbox....I cannot use Sendkeys to copy the text in that
textbox....because sometimes the box is diasaled..so the cursur cannot cannot
go in box....Is there a API call that i can use.....PLease help me in
this...its really urgent.



Fri, 15 Sep 2000 03:00:00 GMT  
 >>>>> URGENT: PLEASE HELP <<<<<

Try these API's.  Just pass the handle of the txtBox, a empty string, and a
length.

Declare Function GetWindowText Lib "user32" Alias "GetWindowTextA" (ByVal
hwnd As Long, ByVal lpString As String, ByVal cch As Long) As Long

Declare Function GetWindowTextLength Lib "user32" Alias
"GetWindowTextLengthA" (ByVal hwnd As Long) As Long

Kevin


Quote:
>I need urgent help in reading text from a textbox into a variable....The
>textbox is another porgram's object..which i have no control over.   All I
know
>is the hWnd of the textbox....I cannot use Sendkeys to copy the text in
that
>textbox....because sometimes the box is diasaled..so the cursur cannot
cannot
>go in box....Is there a API call that i can use.....PLease help me in
>this...its really urgent.



Fri, 15 Sep 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. <<<<<<<<ComboBox>>>>>>>>>>>>

2. HELP >>>>>>WIN API <<<<<<<<<<

3. help me out please!!!!<<<<<<<<<<<<<<<<<<<<<<<thanks>>>>>>>>>>>>>>>>>>>>>>>>

4. <><><>HELP<><><> PCMCIA Motorola Montana 33.6

5. <<<<HELP- OLE container Control>>>>>>>>>

6. >>>>HELP ME WITH DATEVALUE IN UK FORMAT<<<<<<<

7. VB5<->RDO2<->ODBC<->ORACLE Procedure Problem

8. <<<Cneck Box>>>

9. <<<Gif Files>>>

10. <<<CD ROM>>>

11. <<<Win32Api.TXT>>>

12. <<<NetWork Drv>>>

 

 
Powered by phpBB® Forum Software