Jump to content

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


 Share

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)
EndIf
WEnd
Link to comment
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.

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...