hi alle,
wenn bei einem kompilierten script ein fehler auftritt wie kann ich die zeilennummer z.b. in einer msgbox oder datei ausgeben lassen ?
habe bisher nur das gefunden
Spoiler anzeigen
$oMyError = ObjEvent("AutoIt.Error","MyErrFunc"); Install a custom error handler
Func MyErrFunc()
$HexNumber=hex($oMyError.number,8)
Msgbox(0,"","We intercepted a COM Error !" & @CRLF & _
"Number is: " & $HexNumber & @CRLF & _
"Linenbr is: " & $oMyError.scriptline & @CRLF & _
"Description is: " & $oMyError.description & @CRLF & _
"Windescription is: " & $oMyError.windescription )
SetError(1); something to check for when this function returns
Endfunc
leider kommt keine msgbox, prog wird zwar fortgesetzt aber mit fehlern
ich suche soetwas wie eine globale error_handling routine die mir die zeilennummer ausgibt oder den art des fehlers mit der variable
bitte um hilfe
thx neon