Jump to content
Sign in to follow this  

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

Recommended Posts

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)

Share this post

Link to post
Share on other sites

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.

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  

  • Create New...