Jump to content
xnx

closing windows by class #32770

Recommended Posts

xnx

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
JLogan3o13

WinExists has a second parameter for you to include text from the window you're looking for, as an additional way to differentiate. Have you experimented with adding some text from the pop up window?


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
MilesAhead

In Windows class #32770 is the standard for a dialog.  Just about any dialog can have that class.  So you need to find additional id info from the window, be it text or whatnot.

 

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

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.