lucius100 Posted February 16, 2015 Share Posted February 16, 2015 I have a software that scrape information in google search. And it's pretty convenient so I set it to run in time interval. The problem is whenever my connection lost, it stuck at the loading, and can't progressing. So is there anyway to check if it stuck at loading page longer than 10 sec , it automatically kill the process ? I am trying to use imagesearch, but don't know how to kill process if image found and longer than 10 sec. While 1 If ProcessExists ("WebScrape.exe") Then $Search = _ImageSearch('stuck.bmp', 0, $X, $Y, 0) EndIf WEnd Link to comment Share on other sites More sharing options...
JohnOne Posted February 16, 2015 Share Posted February 16, 2015 You should really code that functionality into WebScrape script. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
lucius100 Posted February 16, 2015 Author Share Posted February 16, 2015 You should really code that functionality into WebScrape script. Webscrape is not made from autoit, and I am not the maker. Link to comment Share on other sites More sharing options...
kylomas Posted February 16, 2015 Share Posted February 16, 2015 lucius, See >this link. kylomas Forum Rules Procedure for posting code "I like pigs. Dogs look up to us. Cats look down on us. Pigs treat us as equals." - Sir Winston Churchill Link to comment Share on other sites More sharing options...
lucius100 Posted February 17, 2015 Author Share Posted February 17, 2015 lucius, See >this link. kylomas The app doesn't show not responding or hang, It just stop loading when the connection is lost. Link to comment Share on other sites More sharing options...
JohnOne Posted February 17, 2015 Share Posted February 17, 2015 OK, well the first thing is first. Write code to find your image, there are many examples on the forum. Then Look at TimerInit and TimerDiff which are very basic. Have an attempt and post your code. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. 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