Phaner
August 14th, 1999, 03:43 PM
How can i get text of a textbox which belongs to another application????
|
Click to See Complete Forum and Search --> : How to get text of a textbox of another app Phaner August 14th, 1999, 03:43 PM How can i get text of a textbox which belongs to another application???? Dmitriy August 14th, 1999, 06:10 PM 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 cube01 August 15th, 1999, 01:27 AM 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.... Phaner August 15th, 1999, 05:48 AM I just have HWND of the textbox kishk91 August 15th, 1999, 06:32 AM 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? kishk91 August 15th, 1999, 06:34 AM 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.. codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |