Run to the obj. Click,
Web page dialog box to pop up smoothly,
But the problem is coming,
Here, will not continue to run,
Intend to use findwindow to capture this window below,
But couldn't catch,
Not because can not query handle,
But because of who I am, after the dialog box to pop up, don't run down,
Similar breakpoints, without any Error, just want to VB Msgbox, need to click the pop-up window (page) to determine or cancel button,
VBA code will continue to run down,
Have to say, injection shield JS code popup window can avoid this problem, really can bypass the popup window, but the modal window button click OK send information to the web server should be executed, what method can click on the above web page popup window button, and maintain a procedure to continue running?
CodePudding user response:
1. Multithreading, this a bit more, but this is "normal practice",2. Using the "timer", the "function", before you in the implementation of the first to start the timer, call you again this "function interface,"
In the process of "timer" incident response, realize to find the function of the message window and click ok button "",
If you use in VBA, probably should use associated with "timer" that a few AIP function to do;
The Timer control (VB6) and some of the "Timer" circulated on the Internet may not be suitable for the application environment, they all need to rely on the "form" to complete the incident response,