Home > Back-end >  How to extract messagebox message content
How to extract messagebox message content

Time:09-20

Have a program that will often pop up in the process of running messagebox dialog box, and let the user to select,
I want to put the dialog content, such as "are you sure?", "whether to continue operating the content such as" extracted, if the user's operation can be if you click ok, cancel, etc were extracted, using DELPHI programming should be how to operate?
Trouble you give a train of thought

CodePudding user response:

Access control and handle, get text messaging WM_GETTEXT, hook function to take action,

CodePudding user response:

Method 1 with thread to monitor window handle and enumeration, this is not too accurate, and the consumption of resources, method 2 with hook the pop-up dialog will inform the main program

CodePudding user response:

http://www.cnblogs.com/linyawen/archive/2011/03/25/1995624.html
  • Related