TJ123 Posted July 24, 2020 Share Posted July 24, 2020 Hi All, Apologies if this has been asked/answered before. I did search the forum but wasn't finding what I was looking for. I have a script that I use on a website. I have found that sometimes if I am trying to execute several clicks in rapid succession the website will not always register all the clicks. As best I can figure this might be related to the MouseClickDelay or MouseClickDownDelay? If there are other settings I should look at please let me know. I am aware that using ControlClick is more reliable, however I cannot get it to work with specific controls on the site in question. I am wondering if anyone can offer some advice as to the optimal MouseClickDelay or MouseClickDownDelay settings to use on a website if you want to improve reliability without sacrificing too much speed. I think the documentation says the default for both of these is 10ms. I am thinking I should just keep increasing both delays until I get it working reliably then maybe play with reducing one or the other to determine which setting is making the difference, or if it is a combination of the two? Is slower always going to be more reliable or are there other factors that could be affecting the website not registering all my clicks? Thanks in advance to anyone who can offer advice on this, TJ. Link to comment Share on other sites More sharing options...
Nine Posted July 24, 2020 Share Posted July 24, 2020 Show your script. What is the website you are trying to automate ? MouseClick is not the best way to interact with the web, you should know that by now after 8 years of being a member of this forum. “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
TJ123 Posted July 24, 2020 Author Share Posted July 24, 2020 Thank you for your reply, Yes, I am aware that MouseClick is not the best way to interact with the web as I stated in my original post, " I am aware that using ControlClick is more reliable, however I cannot get it to work with specific controls on the site in question." My script is several thousand lines long and 99.99% would not be relevant to the question I am asking. If anyone has experience using different settings with MouseClickDelay or MouseClickDownDelay and what kind of delay times resulted in reliable or unreliable operation when interacting with webpages I would very much appreciate any info you are willing to share. One specific questions I would be interested to have the is answer to is, What is the minimum recommended delay time for these settings? I see that the default is 10ms, so I have been going with that and for the most part it has worked without issue. Now that I am having issues I am just looking for some rough numbers to use as a starting point, obviously I will need to do my own testing beyond that to determine what will work best for my specific application. Thanks again for your input and to anyone else willing to share, TJ. Link to comment Share on other sites More sharing options...
jdelaney Posted July 24, 2020 Share Posted July 24, 2020 Every application can handle different speeds. Every browser can handle different speeds. Websites can also vary. Current system utilization probably also matters. IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window. Link to comment Share on other sites More sharing options...
Earthshine Posted July 24, 2020 Share Posted July 24, 2020 Use UIAutomation or the WebDriver stuff for automation of website My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now