Handle to the child 2, traverse the PID
3, SendMessage son of handle text
But it can only get the CALC. EXE full text
Such as Internet explorer, WORD process, there are some financial software content will not be able to get them form
How to obtain, please don't use hook (if not finish window traversal?)
CodePudding user response:
Control of the browser and WORD is not using WINDOWS API to create, control is drawn by oneself, also dispose text display,Such as Internet explorer, you can call the COM components of IE get the content by its interface,
Other software may also have corresponding interface/API,
CodePudding user response:
Why don't hook, what special requirements? To realize reliably function without hookCodePudding user response:
Controls on the web, can also use the hooks for content?CodePudding user response:
General native Windows window, such as buttons, edit box, list boxes, combo boxes, the tree view and list view, such as the content of the window, as long as access to the handle, you can get the content by Windows API, for the content of the IE page (including IE core ma3 jia3 browser), by IHTMLDocument2 interface can be get more rich content, these don't need hooks,But for self-built window (including some of the VCL components), is not so simple, need to inject into the target process, according to some features found window data in the memory address, and then to read and analyze, it is a complex process, of course, don't hook can also be completed,