|
-
August 14th, 1999, 03:43 PM
#1
How to get text of a textbox of another app
How can i get text of a textbox which belongs to another application????
-
August 14th, 1999, 06:10 PM
#2
Re: How to get text of a textbox of another app
What do you have? It means do you have name of your application the textbox belong to or do you know area on the screen where is the textbox?
Dmitriy, MCSE
-
August 15th, 1999, 01:27 AM
#3
Re: How to get text of a textbox of another app
I would use a pre-translate message to get the HWND of the window using the WindowFromPoint function... that will get the HWND of a window you drag the mouse over.. from there, you can call PostMessage and send a WM_GETTEXT message...
ex:
::PostMessage(hWnd, WM_GETTEXT, strBuffer, NULL)
If you have any more q's feel free....
-
August 15th, 1999, 05:48 AM
#4
Re: How to get text of a textbox of another app
I just have HWND of the textbox
-
August 15th, 1999, 06:32 AM
#5
Re: How to get text of a textbox of another app
if you have the hwnd of the window try using the
GetDlgItemText();
it goes like this:
GetDlgItemText(Hwnd,IDC_TEXTBOX,szBuffer,intSizeOfBuffer2Copy);let me know if it helpd you ok?
-
August 15th, 1999, 06:34 AM
#6
Re: How to get text of a textbox of another app
another thing... if you dont have the resource id and i guess youdont.. try using the
GetWindowText. i never tried it on Dialog items but my guess is that when you have an hwnd of a winodow this function will do..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|