Several ideas on obtaining data from an external edit box

Source: Internet
Author: User
I sorted out the following items:
Findwindow: Find a window
In the enumwindow enumeration window, the callback function determines whether to continue enumeration.
Enumchildwindow refers to a subwindow in a window. For example, you can use findwindow To Go To The logon form of QQ and then use enumchildwindow to find the Password box (in fact, the password box does not directly belong to the logon form)
Windowfrompoint: get the window where the current mouse is located

You can obtain the content through getwindowtext or getdlgitemtext.

Or directly sendmessage

For example, to obtain the QQ account, because the QQ account is a ComboBox, you need to send the cb_getlbtext message to ComboBox to obtain the current QQ account.

In addition, findwindow has two parameters.
The first parameter is the class name such as ComboBox, edit or #32770 (#32770 is the class name of the MFC dialog base)
The second parameter is the title of the Form class.

Also, it is the Edit Control of es_password. To obtain its text, you cannot directly use getwindowtext. Because the operating system after Win98 has made restrictions and cannot be called across processes, the general method is OpenProcess, then virtualallocex some remote process memory, then write a function in this memory, writeprocessmemory, and finally createremotethread to create a remote thread. This technology is called process injection, generally, anti-virus software intercepts functions such as OpenProcess and createremotethread through apihook.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.