AlexTaitson Posted February 11, 2009 Share Posted February 11, 2009 Hi all, I'm in need of help again, this time for something I dont know if it can be done. I'm creating a "Printer installer" program to install multiple printers at once (like 50 printers if needed be). What I want to know is: Is it possible for AutoIt to detect if an error occurs in WINDOWS? (not on the program I wrote, but Windows errors due to vbs commands or rundll32 commands that are executed by my program) I want my program to detect errors and write about it in a Report file that will be created, but I can't find a way to make it detect the errors. I don't have ANYTHING coded about this error detecting so far, as I have no clue. I'll keep searching, but if anyone around can help me, please do =] Thanks a lot in advance, Alexandre Taitson Moreira Link to comment Share on other sites More sharing options...
AlexTaitson Posted February 12, 2009 Author Share Posted February 12, 2009 Up.. Anyone? >.< And I searched for forum rules in the Search engine to see if there is any minimum time for bumping a topic but I couldn't find a Rule topic.. Can someone please answer this as well? So I don't break rules not knowing that I did. Link to comment Share on other sites More sharing options...
KaFu Posted February 12, 2009 Share Posted February 12, 2009 (edited) Intentionally create errors that might occur... and then examine the windows with the au3info (refer to 'Window Titles and Text (Advanced)' in help-file)... and finally add a detection part to you installer script (maybe via adlib), if any of the error windows do exist during your script run (use a 'WinExists()' check). Edited February 12, 2009 by KaFu OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
AlexTaitson Posted February 12, 2009 Author Share Posted February 12, 2009 Intentionally create errors that might occur... and then examine the windows with the au3info (refer to 'Window Titles and Text (Advanced)' in help-file)... and finally add a detection part to you installer script (maybe via adlib), if any of the error windows do exist during your script run (use a 'WinExists()' check).Thanks a lot for the tip, didn't know about this au3info.exe, as I was only coding so far and didn't need it yet.Going go start playing around it now, it really seems fun.I'll post again if I need some more help with it, as I'm not familiar yet.Thanks,Alexandre Taitson Moreira Link to comment Share on other sites More sharing options...
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