Jump to content

How to Know If a Win is Freezed?


timmalos
 Share

Recommended Posts

Hi everybody. I wanted to know if a win is freezed or not.

For example, when i do a _IeCreate("") sometimes Internet Explorer doesn't return the hand.

I tried something like to know if there was enought operations:

$t = TimerInit()
    Dim $1[6]
    While $1[3] <= 10000
        Sleep(100)
        $1 = ProcessGetStats("iexplore.exe",1)
        If TimerDiff($t) >= 30000 Then
            ExitLoop
        EndIf
    WEnd

But the value of $1[3] depends on the computer (i have 3000 on a computer and 100000 on another for example)

Is there another possibility to know if the program is freezed (in order to Exit My AutoitScript and Reload) or not (Continue the script)?

Thx A lot

Tim

Link to comment
Share on other sites

Hi everybody. I wanted to know if a win is freezed or not.

For example, when i do a _IeCreate("") sometimes Internet Explorer doesn't return the hand.

I tried something like to know if there was enought operations:

$t = TimerInit()
    Dim $1[6]
    While $1[3] <= 10000
        Sleep(100)
        $1 = ProcessGetStats("iexplore.exe",1)
        If TimerDiff($t) >= 30000 Then
            ExitLoop
        EndIf
    WEnd

But the value of $1[3] depends on the computer (i have 3000 on a computer and 100000 on another for example)

Is there another possibility to know if the program is freezed (in order to Exit My AutoitScript and Reload) or not (Continue the script)?

Thx A lot

Tim

Maybe... http://www.autoitscript.com/forum/index.php?showtopic=19370&st=40&p=186784&#entry186784

Cheers, FireFox.

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...