xnx Posted July 18, 2015 Posted July 18, 2015 (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 WendAny advice if it is correct or not done proper?One problem still is: it even closes task-manager...Regards,xnx Edited July 18, 2015 by xnx
Moderators JLogan3o13 Posted July 18, 2015 Moderators Posted July 18, 2015 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!
MilesAhead Posted July 19, 2015 Posted July 19, 2015 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. My Freeware Page
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now