Letraindusoir 2 Posted January 9 (edited) Quote _IEAttach ( $sString, $sMode = "title" , $iInstance = 1) In the case of the browser has been opened, this function, can be linked to the target web-page, simple and practical. However, instability sometimes occurs, for example, target web-page do exist, sometimes can be attached, sometimes attached failure. What are the main factors affecting reliability and how to ensure stability and reliability? Edited Thursday at 02:23 AM by Letraindusoir Share this post Link to post Share on other sites
Danp2 878 Posted January 9 59 minutes ago, Letraindusoir said: What are the main factors affecting reliability and how to ensure stability and reliability? I would say a lack of error checking in your script. 😏 P.S. Your post makes it sound like you think there's an issue with _IEAttach. I'm hoping that this is not your intent and it's simply due to a language barrier. [UDF] WebDriver Latest version Wiki FAQs Share this post Link to post Share on other sites
Letraindusoir 2 Posted January 10 (edited) On 1/9/2021 at 12:43 PM, Danp2 said: I would say a lack of error checking in your script. 😏 P.S. Your post makes it sound like you think there's an issue with _IEAttach. I'm hoping that this is not your intent and it's simply due to a language barrier. Thanks for attention to this small problem! I am sorry that my english is not good! it Maybe have led to a misunderstanding. I don't think there's an issue with _IEAttach, I mean, I may not have mastered how to use the function. Because in the process of use, the same browser, the same web-page, sometimes can be Attached, sometimes Attach failure. Whether a web-page is out of focus, or a window is deactivated, or a process problem causes the connection to be unstable? error checking : 5 ($_IEStatus_InvalidValue) 7 ($_IEStatus_NoMatch) But it doesn't seem to explain why Edited January 10 by Letraindusoir Share this post Link to post Share on other sites
Nine 921 Posted January 10 Hard to say with no code. Try using hwnd to attach, you cannot be wrong with this method... 1 Letraindusoir reacted to this Not much of a signature, but working on it... Spoiler Block all input without UAC Save/Retrieve Images to/from Text Tool to search content in au3 files Date Range Picker Sudoku Game 2020 Overlapped Named Pipe IPC x64 Bitwise Operations Fast and simple WCD IPC GIF Animation (cached) Share this post Link to post Share on other sites
Danp2 878 Posted January 10 If you can show us a short code snippet that consistently reproduces the issue, then we may be able to offer some suggestions on how to improve your code. [UDF] WebDriver Latest version Wiki FAQs Share this post Link to post Share on other sites
Letraindusoir 2 Posted Thursday at 02:15 AM On 1/10/2021 at 10:42 PM, Nine said: Hard to say with no code. Try using hwnd to attach, you cannot be wrong with this method... Good idea, try to get the handle, use the handle as the attachment target, Maybe more reliable Share this post Link to post Share on other sites
Letraindusoir 2 Posted Thursday at 02:22 AM On 1/10/2021 at 10:43 PM, Danp2 said: If you can show us a short code snippet that consistently reproduces the issue, then we may be able to offer some suggestions on how to improve your code. More thanks,Danp2 The code is similar to the help example. Because sometimes can, sometimes can not, is not sutre which website page appears this kind of situation, therefore feels the code is difficult to explain the problem. Maybe it's more reliable to use a handle, as Nine says Share this post Link to post Share on other sites