Sign in to follow this  
Followers 0
lucius100

How to check the app state and kill it if it stuck ?

6 posts in this topic

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

Share this post


Link to post
Share on other sites



You should really code that functionality into WebScrape script.

Webscrape is not made from autoit, and I am not the maker.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

lucius,

See >this link.

kylomas

 

The app doesn't show not responding or hang, It just stop loading when the connection is lost.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0