Autoit there exists an option to not show any error messages or warnings when errors occur And auto exit ?
Opt("MsgBoxDebug", 0)
Any error like:
undeclared global variable, Array variable has incorrect number of subscripts or subscript dimension range exceeded,............
Agree with water. Anyway just for fun
; Johnmcloud - 2016
;~ #include <WinAPI.au3>
;~ #include <WinAPIProc.au3>
#NoTrayIcon
; COMPILE ME!
_SuppressErrors()
MsgBox(64, "DEBUG_ONLY", "Commandline parameter used: " & _WinAPI_GetProcessCommandLine())
MsgBox(0,0,$NotExistVar) ; variable used without declared
Func _SuppressErrors()
If @Compiled And _WinAPI_GetProcessCommandLine() = "" Then
Exit Run(@ComSpec