心照不宣 发表于 2010-2-19 22:07:36

[已解决]关于网页粘贴提交不能运行

本帖最后由 心照不宣 于 2010-2-21 23:10 编辑


网页代码是:<SCRIPT language=JavaScript type=text/javascript src="/res/js/prototype1.6.js"></SCRIPT>

<SCRIPT id=__onDOMContentLoaded defer src="//:"></SCRIPT>

<SCRIPT language=JavaScript type=text/javascript src="/res/js/alert.js"></SCRIPT>

<SCRIPT language=JavaScript type=text/javascript src="redemption.js?v=1210"></SCRIPT>

<SCRIPT type=text/javascript src="/fckeditor/fckeditor.js"></SCRIPT>

<SCRIPT>
function FCKeditor_OnComplete(editorInstance){
        oEditer = editorInstance;
}
</SCRIPT><IFRAME style="BACKGROUND-IMAGE: none; BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px; BACKGROUND-COLOR: transparent; MARGIN: 0px; PADDING-LEFT: 0px; WIDTH: 570px; PADDING-RIGHT: 0px; HEIGHT: 250px; BORDER-TOP: 0px; BORDER-RIGHT: 0px; PADDING-TOP: 0px" id=textfield___Frame height=250 src="/fckeditor/editor/fckeditor.html?InstanceName=textfield&amp;Toolbar=ShopGoods" frameBorder=0 width=570 scrolling=no></IFRAME>
最次的操作也不运行。

#include <IE.au3>
$oIE = _IECreate ("ms.htm")
Send("{tab 49}"&"^{V}")
send("^{V}")
WinWait("Internet Explorer")
ControlFocus("Internet Explorer", "", "Button2")
ControlSend("Internet Explorer", "", "Button2", "{a}")
ControlSend("Internet Explorer", "", "Button2", "{a}")
Send("^{V}")

jhwl 发表于 2010-2-19 23:00:52

IE安全设置 不允许访问剪贴板
你可以使用
...
$oFrame = _IEFrameGetCollection($oIE, 1)
$oFrameEdit = _IEFrameGetCollection($oFrame, 0)
_IEBodyWriteHTML($oFrameEdit, "content .")

心照不宣 发表于 2010-2-19 23:26:18

谢谢 管理,ie设置好了,可行。还是不能全懂。继续中。。。
页: [1]
查看完整版本: [已解决]关于网页粘贴提交不能运行