Jump to content
xnx

closing windows by class #32770

Recommended Posts

Hello fellas!

Trying to solve a problem with my other autoit routines. Sometimes there are error-windows appearing after running the system for about 5-6h long. It's a matter of hardware - i figured out so far.

To solve the problem I want to use a little extra routine by checking for the appearance of the error-window (its class is always #32770 - no title).

 

What i got so far is:
 

While 1
    sleep(500)
    If WinExists("[CLASS:#32770]") Then
        WinKill("[CLASS:#32770]")
    EndIf
Wend

Any advice if it is correct or not done proper?

One problem still is: it even closes task-manager...

Regards,
xnx

Edited by xnx

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

×
×
  • Create New...