Что нового

[Сеть, интернет] Не передается execscript

Luciferkox

Новичок
Сообщения
14
Репутация
0
Здравствуйте,скажите что может значить эта ошибка и как её исправить?
Код:
$Head.document.parentWindow.execScript("msg('test', true);")

На что в ответ он выдает:
Код:
==> The requested action with this object has failed.:
$HuntFrame.document.parentWindow.execScript("msg('test', true);")
$HuntFrame.document.parentWindow^ ERROR
 

alex33

Скриптер
Сообщения
1,457
Репутация
186
В последнее время подобные ошибки я изучал так : включал вначале
Код:
Global $oErrorHandlerGlobal = ObjEvent("AutoIt.Error", "_ErrFunc")
If IsDeclared("__g_oIEErrorHandler") Then Execute('_IEErrorHandlerRegister("_ErrFunc")')
; User's COM error function. Will be called if COM error occurs
Func _ErrFunc($oError)
;~ If IsDeclared("__g_oIEErrorHandler") Then Execute('__IEInternalErrorHandler($' & 'oError)')
; Do anything here.
With $oError
ConsoleWrite(@ScriptName & " (" & .scriptline & ") : ==> COM Error intercepted !" & @CRLF)
If .number Then ConsoleWrite(@TAB & "err.number is: " & @TAB & @TAB & "0x" & Hex(.number) & @CRLF)
If .windescription Then ConsoleWrite(@TAB & "err.windescription:" & @TAB & .windescription & @CRLF)
If .description Then ConsoleWrite(@TAB & "err.description is: " & @TAB & .description & @CRLF)
If .source Then ConsoleWrite(@TAB & "err.source is: " & @TAB & @TAB & .source & @CRLF)
If .helpfile Then ConsoleWrite(@TAB & "err.helpfile is: " & @TAB & .helpfile & @CRLF)
If .helpcontext Then ConsoleWrite(@TAB & "err.helpcontext is: " & @TAB & .helpcontext & @CRLF)
If .lastdllerror Then ConsoleWrite(@TAB & "err.lastdllerror is: " & @TAB & .lastdllerror & @CRLF)
ConsoleWrite(@TAB & "err.scriptline is: " & @TAB & .scriptline & @CRLF)
ConsoleWrite(@TAB & "err.retcode is: " & @TAB & "0x" & Hex(.retcode) & @CRLF)
EndWith
EndFunc   ;==>_ErrFunc
и смотри консоль. Там будет описание ошибки.
 
Верх