MFrancisca Posted August 16, 2018 Posted August 16, 2018 Does anyone know which is the class of the Error dialogs from windows? The ones that have only an "Ok" button So far I've found the "MessageBox" class in the windows documentation (https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.messagebox?redirectedfrom=MSDN&view=netframework-4.7.2) I have a script in that waits until a window opens, and what should happen is that if it is an error dialog it should close it or kill it, but I need to leave everything else. The script is for testing another software, so it is good that those errors appear, I don't need to avoid them. I just need to register when did they happen. Thanks!
FrancescoDiMuro Posted August 16, 2018 Posted August 16, 2018 Win* functions is the point where to start Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette
caramen Posted August 16, 2018 Posted August 16, 2018 (edited) You can press Windows + E Type inside the adresse bar "\\\\\\\\lol" wait 15 sec and then you ll get the error box windows with "OK" and work with it. Edited August 16, 2018 by caramen My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki
MFrancisca Posted August 30, 2018 Author Posted August 30, 2018 Thanks! Finally I found it with the AutoIT Win info tool For future reference is DirectUIHWND if someone needs it
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