(已解决)如何刷新指定的网页对象,_IEaction($oe,"refresh")
本帖最后由 scorpio1102 于 2013-8-23 17:08 编辑guicreate("form",800,600,10,10)
for i=0 to 4
$tabitem_value=guictrlcreatetabitem($i)
$oIE = _IECreateEmbedded ( )
$GUIActiveX = GUICtrlCreateObj ($oIE, 25, 25,800, 400)
GUISetState()
$oIE.navigate("http://192.168.0.115:81/temp/fusioncharts/myfirstchart/"&$i&".html")
GUICtrlCreateTabItem("")
next
_IEaction($oe,"refresh")
我用以上代码生成5个网页(网页附在选项卡上,代码随便挑的,大概意思),我用_IEaction($oe,"refresh")刷新只能刷新最后创建的网页,如何刷新指定的网页.比如刷新第一个创建的网页. 本帖最后由 scorpio1102 于 2013-8-23 09:09 编辑
代码不搞好点没人帮我吗,我把代码补其了.我想刷新第0个选项卡上的网页,怎么弄.
#include <IE.au3>
#include <GUIConstantsEx.au3>
guicreate("form",800,600,10,10)
$Button=guictrlcreatebutton("refresh",20,500,60,20)
GUISetState()
local $oe
GUICtrlCreateTab(10,10,750,400)
for $i=0 to 2
$tabitem_value=guictrlcreatetabitem($i)
$oIE = _IECreateEmbedded ( )
$GUIActiveX = GUICtrlCreateObj ($oIE, 15, 30,750, 380)
$oIE.navigate("http://www.autoitx.com/index.php")
GUICtrlCreateTabItem("")
next
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
;GUISetState(@SW_ENABLE,$form)
;GUIDelete($form)
ExitLoop
case $button
_IEAction($oie,"refresh")
EndSwitch
WEnd 原来用个数组就行了$oIE = _IECreateEmbedded ( ) 好東西, 推, 謝謝大大~ 不错,学习了,哈哈。
页:
[1]