App Communication

Rossc007
11-11-2002, 02:40 AM
Hello,

Is it possible for me to read data from a text box in an application by using its handle?

Thanks
Ross

Optikal
11-11-2002, 04:28 AM
if you mean its hWnd then yes, you can send the WM_GETTEXT using SemdMessage I believe

Merrion
11-11-2002, 06:01 AM
Declare Function GetWindowTextLength Lib "user32" Alias "GetWindowTextLengthA" (ByVal hwnd As Long) As Long

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


HTH,
Duncan

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum