rajeshontheweb Posted April 4, 2009 Share Posted April 4, 2009 (edited) Inspired by the awesome piece of AutoIT Error Handler by Jennico This piece of modification just gives you an extension box at the bottom of the GUI which will show the error in detail #region;------- Autoit Error Handler launcher ;############################################################################ ; 1st part (launcher) copy in first line of your program ;############################################################################ If StringInStr($cmdlineraw,"*")=0 Then Opt("TrayIconHide",1) If @Compiled Then $x=Run(@ScriptName&" *") Else $x=Run('"Autoit3.exe" "'&@ScriptFullPath&'" *') EndIf ProcessWait($x,5) While ProcessExists($x) If WinActive("AutoIt Error") Then _OnAutoItError(WinGetText("AutoIt Error")) Sleep(20) WEnd Exit EndIf #endregion;-------launcher at the beginning of the script and the _OnAutoITError() function at the end of the script... Customise the _OnAutoITError() function to add your functionality as jennico has designed it...--<Edit> Minor Modifications in code - Event Monitoring now all in one switch statement. (I Felt comfortable with all event handlers in one place :-) )--<edit> Just a minor modification to use few more pixel space which is wasted in above screenshot :-) use v 2.1's code pls.Comments awaited_ErrorHandler_V_2..au3_ErrorHandler_V_2.1.au3_ErrorHandler_V_2.1.1.au3 Edited April 4, 2009 by rajeshontheweb Started late is much better than having never started it!!!!Failure is another step towards success. I've been messing around with: Adding Entry to 'Hosts'File Information Lister (Logger)Yet Another AutoIT Error Handler Yet Another AutoIT Error Handler & Debugger Control your App's TaskBar Button YCurrency Ticker (Latest Release : 16 Apr 2009)_WinInetInternetCheckConnection UDF Symantec Definitions Lister UDF _GetLocalIPAddresses UDF UDF to get Special Folder Information WMI_NetworkAdapterConfiguration2Array WMI_CDRomDriveCapabilities _ScriptExists - Check if your au3 script is running!! Uninstaller UDF Get Version for your application (at script level or compiled stage) Uninstaller Pro - faster alternative to windows application removal applet Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted April 4, 2009 Moderators Share Posted April 4, 2009 Moved to example scripts forum. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
rajeshontheweb Posted April 4, 2009 Author Share Posted April 4, 2009 sorry about that :-( i just noticed i posted it in the wrong place :- Started late is much better than having never started it!!!!Failure is another step towards success. I've been messing around with: Adding Entry to 'Hosts'File Information Lister (Logger)Yet Another AutoIT Error Handler Yet Another AutoIT Error Handler & Debugger Control your App's TaskBar Button YCurrency Ticker (Latest Release : 16 Apr 2009)_WinInetInternetCheckConnection UDF Symantec Definitions Lister UDF _GetLocalIPAddresses UDF UDF to get Special Folder Information WMI_NetworkAdapterConfiguration2Array WMI_CDRomDriveCapabilities _ScriptExists - Check if your au3 script is running!! Uninstaller UDF Get Version for your application (at script level or compiled stage) Uninstaller Pro - faster alternative to windows application removal applet 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