Jump to content

Recommended Posts

Posted (edited)

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
  • Moderators
Posted

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?

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

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
  • Recently Browsing   0 members

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