Jump to content

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
    If WinExists("[CLASS:#32770]") Then

Any advice if it is correct or not done proper?

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


Edited by xnx

Share this post

Link to post
Share on other sites

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!

How to get your question answered on this forum!

Share this post

Link to post
Share on other sites

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