But in IE6 execution failure
Excuse me, how do I make pwb.document.parentWindow.execScript in ie6 execution
Below are in IE6 executable error report
0x80070005 -Refused to visit
Source: (null)
Description: Refused to visit
HelpFile: C:\WINDOWS\system32\mshtml.hlp
HelpContext: 0
Specifically: execScript
Line#
1636: pwb := ComObjCreate("InternetExplorer.Application")
1637: pwb.Visible := true
1638: pwb.Navigate("www.google.com.hk")
1639: While,pwb.busy
1640: Sleep,100
1642: jscomplete = j_str = location.href
---> 1647: pwb.document.parentWindow.execScript(jscomplete)
1650: j_str := pwb.document.parentWindow.j_str
1651: MsgBox,%j_str%
Continue running the script?
pwb := ComObjCreate("InternetExplorer.Application") pwb.Visible := true pwb.Navigate("www.google.com.hk") while, pwb.busy sleep, 100 jscomplete = ( j_str = location.href ) pwb.document.parentWindow.execScript(jscomplete) j_str := pwb.document.parentWindow.j_str MsgBox, %j_str%