AutoIt: При грешка скрипта минава на следващия ред...
Публикувано: 25.07.16, 22:44:54 | Автор: ArMeN | Видяна: 791 | Редактирано: -
$oMyError = ObjEvent("AutoIt.Error","MyErrFunc"); Install a custom error handler
; This is my custom error handler
Func MyErrFunc()
$HexNumber=hex($oMyError.number,8)
Msgbox(0,"","We intercepted a COM Error !" & @CRLF & _
"Number is: " & $HexNumber & @CRLF & _
"Windescription is: " & $oMyError.windescription )
SetError(1); something to check for when this function returns
Endfunc
Източник$oError = ObjEvent("AutoIt.Error","MyErrFunc")
Func MyErrFunc()
;Do Nothing
EndFunc
Няма коментари.